diff options
| author | jgm <jgm@google.com> | 2012-04-10 16:02:11 +0000 | 
|---|---|---|
| committer | jgm <jgm@google.com> | 2012-04-10 16:02:11 +0000 | 
| commit | 79a367eb217fcd47e2beaf8c0f87fe6d5926f739 (patch) | |
| tree | 148e73f4c3b6354f900cae94be5e9495e04d7efa /test/gmock_link_test.h | |
| parent | 9bcb5f9146db42bc38b6bb744fb0cf518a0205be (diff) | |
| download | googletest-79a367eb217fcd47e2beaf8c0f87fe6d5926f739.tar.gz googletest-79a367eb217fcd47e2beaf8c0f87fe6d5926f739.tar.bz2 googletest-79a367eb217fcd47e2beaf8c0f87fe6d5926f739.zip | |
Reduced template instantiation depth for the AllOf and AnyOf matchers. Also some formatting changes.
Diffstat (limited to 'test/gmock_link_test.h')
| -rw-r--r-- | test/gmock_link_test.h | 16 | 
1 files changed, 8 insertions, 8 deletions
| diff --git a/test/gmock_link_test.h b/test/gmock_link_test.h index ab5af4b4..1f55f5bd 100644 --- a/test/gmock_link_test.h +++ b/test/gmock_link_test.h @@ -195,8 +195,8 @@ class Interface {    virtual char* StringFromString(char* str) = 0;    virtual int IntFromString(char* str) = 0;    virtual int& IntRefFromString(char* str) = 0; -  virtual void VoidFromFunc(void(*)(char*)) = 0; -  virtual void VoidFromIntRef(int& n) = 0; +  virtual void VoidFromFunc(void(*func)(char* str)) = 0; +  virtual void VoidFromIntRef(int& n) = 0;  // NOLINT    virtual void VoidFromFloat(float n) = 0;    virtual void VoidFromDouble(double n) = 0;    virtual void VoidFromVector(const std::vector<int>& v) = 0; @@ -211,7 +211,7 @@ class Mock: public Interface {    MOCK_METHOD1(IntFromString, int(char* str));    MOCK_METHOD1(IntRefFromString, int&(char* str));    MOCK_METHOD1(VoidFromFunc, void(void(*func)(char* str))); -  MOCK_METHOD1(VoidFromIntRef, void(int& n)); +  MOCK_METHOD1(VoidFromIntRef, void(int& n));  // NOLINT    MOCK_METHOD1(VoidFromFloat, void(float n));    MOCK_METHOD1(VoidFromDouble, void(double n));    MOCK_METHOD1(VoidFromVector, void(const std::vector<int>& v)); @@ -224,15 +224,15 @@ class InvokeHelper {   public:    static void StaticVoidFromVoid() {}    void VoidFromVoid() {} -  static void StaticVoidFromString(char*) {} -  void VoidFromString(char*) {} -  static int StaticIntFromString(char*) { return 1; } -  static bool StaticBoolFromString(const char*) { return true; } +  static void StaticVoidFromString(char* /* str */) {} +  void VoidFromString(char* /* str */) {} +  static int StaticIntFromString(char* /* str */) { return 1; } +  static bool StaticBoolFromString(const char* /* str */) { return true; }  };  class FieldHelper {   public: -  FieldHelper(int a_field) : field_(a_field) {} +  explicit FieldHelper(int a_field) : field_(a_field) {}    int field() const { return field_; }    int field_;  // NOLINT -- need external access to field_ to test                 //           the Field matcher. | 
