/external/googletest/googlemock/test/ |
D | gmock-nice-strict_test.cc | 86 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 …]
|
D | gmock_leak_test_.cc | 48 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()
|
D | gmock_stress_test.cc | 50 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()
|
D | gmock_output_test_.cc | 57 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()
|
D | gmock_ex_test.cc | 49 class MockFoo { class 57 MockFoo mock; in TEST()
|
D | gmock-function-mocker_test.cc | 139 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()
|
D | gmock-cardinalities_test.cc | 52 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/ |
D | CheckedProviderTest.java | 93 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/ |
D | gmock_cook_book.md | 49 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 …]
|
D | gmock_cheat_sheet.md | 25 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
|
D | gmock_faq.md | 36 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
|
D | gmock_for_dummies.md | 197 tests. If `Foo` ever changes, there is only one copy of `MockFoo` to change, and
|