diff options
Diffstat (limited to 'testing/gmock/test/gmock-cardinalities_test.cc')
-rw-r--r-- | testing/gmock/test/gmock-cardinalities_test.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/testing/gmock/test/gmock-cardinalities_test.cc b/testing/gmock/test/gmock-cardinalities_test.cc index f3f1e10..f6a9491 100644 --- a/testing/gmock/test/gmock-cardinalities_test.cc +++ b/testing/gmock/test/gmock-cardinalities_test.cc @@ -52,7 +52,11 @@ using testing::MakeCardinality; class MockFoo { public: + MockFoo() {} MOCK_METHOD0(Bar, int()); // NOLINT + + private: + GTEST_DISALLOW_COPY_AND_ASSIGN_(MockFoo); }; // Tests that Cardinality objects can be default constructed. @@ -398,7 +402,9 @@ class EvenCardinality : public CardinalityInterface { } // Returns true iff call_count calls will saturate this cardinality. - virtual bool IsSaturatedByCallCount(int call_count) const { return false; } + virtual bool IsSaturatedByCallCount(int /* call_count */) const { + return false; + } // Describes self to an ostream. virtual void DescribeTo(::std::ostream* ss) const { |