Home
last modified time | relevance | path

Searched refs:MockFoo (Results 1 – 12 of 12) sorted by relevance

/external/googletest/googlemock/test/
Dgmock-nice-strict_test.cc86 class MockFoo : public Foo { class
88 MockFoo() {} in MockFoo() function in testing::gmock_nice_strict_test::MockFoo
96 GTEST_DISALLOW_COPY_AND_ASSIGN_(MockFoo);
146 MockFoo raw_foo; in TEST()
163 MockFoo* const raw_foo = new MockFoo; in TEST()
166 .WillByDefault(Invoke(raw_foo, &MockFoo::Delete)); in TEST()
179 MockFoo raw_foo; in TEST()
192 MockFoo raw_foo; in TEST()
200 NiceMock<MockFoo> nice_foo; in TEST()
211 NiceMock<MockFoo>* const nice_foo = new NiceMock<MockFoo>; in TEST()
[all …]
Dgmock_leak_test_.cc48 class MockFoo : public FooInterface { class
50 MockFoo() {} in MockFoo() function in __anon2af05ee80111::MockFoo
55 GTEST_DISALLOW_COPY_AND_ASSIGN_(MockFoo);
59 MockFoo* foo = new MockFoo; in TEST()
72 MockFoo* foo = new MockFoo; in TEST()
84 MockFoo* foo1 = new MockFoo; in TEST()
85 MockFoo* foo2 = new MockFoo; in TEST()
Dgmock_stress_test.cc50 class MockFoo { class
70 MockFoo foo; in TestConcurrentMockObjects()
95 MockFoo* mock_foo;
120 MockFoo foo; in TestConcurrentCallsOnSameObject()
150 void Helper2(MockFoo* foo) { in Helper2()
159 MockFoo foo; in TestPartiallyOrderedExpectationsWithThreads()
187 ThreadWithParam<MockFoo*>* const t = in TestPartiallyOrderedExpectationsWithThreads()
188 new ThreadWithParam<MockFoo*>(Helper2, &foo, nullptr); in TestPartiallyOrderedExpectationsWithThreads()
Dgmock_output_test_.cc57 class MockFoo { class
59 MockFoo() {} in MockFoo() function in MockFoo
66 GTEST_DISALLOW_COPY_AND_ASSIGN_(MockFoo);
71 NaggyMock<MockFoo> foo_;
261 MockFoo* foo1 = new MockFoo; in TEST_F()
262 MockFoo* foo2 = new MockFoo; in TEST_F()
287 MockFoo* foo = new MockFoo; in TestCatchesLeakedMocksInAdHocTests()
Dgmock_ex_test.cc49 class MockFoo { class
57 MockFoo mock; in TEST()
Dgmock-function-mocker_test.cc139 class MockFoo : public FooInterface { class
141 MockFoo() {} in MockFoo() function in testing::gmock_function_mocker_test::MockFoo
206 GTEST_DISALLOW_COPY_AND_ASSIGN_(MockFoo);
293 using FunctionMockerTestTypes = ::testing::Types<MockFoo, LegacyMockFoo>;
456 MockFoo mock_foo; in TEST()
467 EXPECT_CALL(static_cast<const MockFoo&>(mock_foo), RefQualifiedOverloaded()) in TEST()
469 EXPECT_CALL(static_cast<const MockFoo&&>(mock_foo), RefQualifiedOverloaded()) in TEST()
471 EXPECT_CALL(static_cast<MockFoo&>(mock_foo), RefQualifiedOverloaded()) in TEST()
473 EXPECT_CALL(static_cast<MockFoo&&>(mock_foo), RefQualifiedOverloaded()) in TEST()
Dgmock-cardinalities_test.cc52 class MockFoo { class
54 MockFoo() {} in MockFoo() function in __anon99ae63160111::MockFoo
58 GTEST_DISALLOW_COPY_AND_ASSIGN_(MockFoo);
/external/guice/extensions/throwingproviders/test/com/google/inject/throwingproviders/
DCheckedProviderTest.java93 MockFoo.nextToThrow = null; in setUp()
94 MockFoo.nextToReturn = null; in setUp()
149 .providing(MockFoo.class) in setUp()
156 .providing(MockFoo.class) in setUp()
178 MockFoo.nextToThrow = new BindException("kaboom!"); in tExceptionsThrown()
247 MockFoo.nextToThrow = new RemoteException("A"); in tExceptionsScoped()
256 MockFoo.nextToThrow = new RemoteException("B"); in tExceptionsScoped()
282 MockFoo.nextToThrow = new RemoteException("A"); in tExceptionsNotScopedWhenNotExceptionScoping()
291 MockFoo.nextToThrow = new RemoteException("B"); in tExceptionsNotScopedWhenNotExceptionScoping()
368 .providing(MockFoo.class); in testAnnotations_Cxtor()
[all …]
/external/googletest/docs/
Dgmock_cook_book.md49 class MockFoo {
60 class MockFoo {
74 class MockFoo {
105 class MockFoo : public Foo {
137 class MockFoo : public Foo {
153 class MockFoo : public Foo {
402 Suppose your test uses a mock class `MockFoo`:
406 MockFoo mock_foo;
413 warning. However, if you rewrite your test to use `NiceMock<MockFoo>` instead,
420 NiceMock<MockFoo> mock_foo;
[all …]
Dgmock_cheat_sheet.md25 class MockFoo : public Foo {
43 NiceMock<MockFoo> nice_foo; // The type is a subclass of MockFoo.
44 NaggyMock<MockFoo> naggy_foo; // The type is a subclass of MockFoo.
45 StrictMock<MockFoo> strict_foo; // The type is a subclass of MockFoo.
115 MockFoo foo; // #2
Dgmock_faq.md36 class MockFoo : public Foo {
45 warning C4301: 'MockFoo::Bar': overriding virtual function only differs from 'Foo::Bar' by const/vo…
52 warning C4373: 'MockFoo::Bar': virtual function overrides 'Foo::Bar', previous versions of the comp…
69 recommend to remove it in both `Foo` and `MockFoo`. That should workaround the
Dgmock_for_dummies.md197 tests. If `Foo` ever changes, there is only one copy of `MockFoo` to change, and