45# pragma warning(disable:4100)
76 testing::GMOCK_FLAG(verbose) =
"info";
81 testing::GMOCK_FLAG(verbose) =
"warning";
85 testing::GMOCK_FLAG(verbose) =
"info";
90 testing::GMOCK_FLAG(verbose) =
"warning";
96 .WillOnce(Return(
false));
139 .RetiresOnSaturation();
156 foo_.Bar(
"Hi", 0, 0);
172 foo_.Bar(
"Hi", 0, 0);
190 const std::string
s =
"Hi";
193 foo_.Bar(
"Ho", 0, -0.1);
215 .WillByDefault(Return(
true));
217 .WillByDefault(Return(
false));
227 .WillByDefault(Return(
true));
229 .WillByDefault(Return(
false));
242 .WillByDefault(Return(
true));
244 .WillByDefault(Return(
false));
252 .WillByDefault(Return(
true));
256 .WillOnce(Return(
false));
262 MockFoo* foo1 =
new MockFoo;
263 MockFoo* foo2 =
new MockFoo;
266 ON_CALL(*foo1, Bar(_, _, _)).WillByDefault(Return(
'a'));
279 return Value(arg.first, first) &&
Value(arg.second, second);
284 EXPECT_THAT((std::pair<int, bool>(42,
true)), IsPair(m1,
true));
288 MockFoo*
foo =
new MockFoo;
301 testing::GMOCK_FLAG(catch_leaked_mocks) =
true;
302 testing::GMOCK_FLAG(verbose) =
"warning";
NaggyMock< MockFoo > foo_
MOCK_METHOD3(Bar, char(const std::string &s, int i, double x))
MOCK_METHOD2(Bar2, bool(int x, int y))
MOCK_METHOD2(Bar3, void(int x, int y))
GenericValue< UTF8<> > Value
GenericValue with UTF8 encoding.
#define MATCHER_P2(name, p0, p1, description)
#define EXPECT_THAT(value, matcher)
#define EXPECT_CALL(obj, call)
#define ON_CALL(obj, call)
void TestCatchesLeakedMocksInAdHocTests()
#define GTEST_DISALLOW_COPY_AND_ASSIGN_(type)
#define TEST_F(test_fixture, test_name)
int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_
GTEST_API_ void InitGoogleMock(int *argc, char **argv)
PolymorphicAction< internal::ReturnVoidAction > Return()
const internal::AnythingMatcher _
internal::Ge2Matcher Ge()
GTEST_API_ Cardinality AnyNumber()
bool Value(const T &value, M matcher)
internal::RefMatcher< T & > Ref(T &x)