43 # pragma warning(push)
44 # pragma warning(disable:4100)
50 using testing::InSequence;
54 using testing::Sequence;
138 .RetiresOnSaturation();
155 foo_.Bar(
"Hi", 0, 0);
171 foo_.Bar(
"Hi", 0, 0);
189 const std::string s =
"Hi";
192 foo_.Bar(
"Ho", 0, -0.1);
214 .WillByDefault(
Return(
true));
216 .WillByDefault(
Return(
false));
226 .WillByDefault(
Return(
true));
228 .WillByDefault(
Return(
false));
241 .WillByDefault(
Return(
true));
243 .WillByDefault(
Return(
false));
251 .WillByDefault(
Return(
true));
261 MockFoo* foo1 =
new MockFoo;
262 MockFoo* foo2 =
new MockFoo;
278 return Value(arg.first, first) && Value(arg.second, second);
283 EXPECT_THAT((std::pair<int, bool>(42,
true)), IsPair(m1,
true));
287 MockFoo*
foo =
new MockFoo;
296 int main(
int argc,
char **argv) {
308 # pragma warning(pop)
GTEST_API_ void InitGoogleMock(int *argc, char **argv)
#define TEST_F(test_fixture, test_name)
void TestCatchesLeakedMocksInAdHocTests()
#define ON_CALL(obj, call)
MATCHER_P2(IsPair, first, second,"")
#define MOCK_METHOD2(m,...)
ADVar foo(double d, ADVar x, ADVar y)
#define MOCK_METHOD3(m,...)
#define EXPECT_THAT(value, matcher)
GTEST_API_ Cardinality AnyNumber()
internal::ReturnAction< R > Return(R value)
#define EXPECT_CALL(obj, call)
NaggyMock< MockFoo > foo_
#define GTEST_DISALLOW_COPY_AND_ASSIGN_(type)
int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_