Home
last modified time | relevance | path

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

12

/external/googletest/googlemock/test/
Dgmock-nice-strict_test.cc75 class MockFoo : public Foo { class
77 MockFoo() {} in MockFoo() function in testing::gmock_nice_strict_test::MockFoo
84 GTEST_DISALLOW_COPY_AND_ASSIGN_(MockFoo);
117 MockFoo raw_foo; in TEST()
134 MockFoo* const raw_foo = new MockFoo; in TEST()
137 .WillByDefault(Invoke(raw_foo, &MockFoo::Delete)); in TEST()
150 MockFoo raw_foo; in TEST()
164 NiceMock<MockFoo> nice_foo; in TEST()
175 NiceMock<MockFoo>* const nice_foo = new NiceMock<MockFoo>; in TEST()
178 .WillByDefault(Invoke(nice_foo, &MockFoo::Delete)); in TEST()
[all …]
Dgmock_leak_test_.cc49 class MockFoo : public FooInterface { class
51 MockFoo() {} in MockFoo() function in __anon3524ff000111::MockFoo
56 GTEST_DISALLOW_COPY_AND_ASSIGN_(MockFoo);
60 MockFoo* foo = new MockFoo; in TEST()
73 MockFoo* foo = new MockFoo; in TEST()
85 MockFoo* foo1 = new MockFoo; in TEST()
86 MockFoo* foo2 = new MockFoo; in TEST()
Dgmock_output_test_.cc51 class MockFoo { class
53 MockFoo() {} in MockFoo() function in MockFoo
60 GTEST_DISALLOW_COPY_AND_ASSIGN_(MockFoo);
65 NaggyMock<MockFoo> foo_;
255 MockFoo* foo1 = new MockFoo; in TEST_F()
256 MockFoo* foo2 = new MockFoo; in TEST_F()
272 MockFoo* foo = new MockFoo; in TestCatchesLeakedMocksInAdHocTests()
Dgmock_stress_test.cc51 class MockFoo { class
150 MockFoo foo; in TestConcurrentMockObjects()
175 MockFoo* mock_foo;
200 MockFoo foo; in TestConcurrentCallsOnSameObject()
230 void Helper2(MockFoo* foo) { in Helper2()
239 MockFoo foo; in TestPartiallyOrderedExpectationsWithThreads()
267 ThreadWithParam<MockFoo*>* const t = in TestPartiallyOrderedExpectationsWithThreads()
268 new ThreadWithParam<MockFoo*>(Helper2, &foo, NULL); in TestPartiallyOrderedExpectationsWithThreads()
Dgmock_ex_test.cc48 class MockFoo { class
58 MockFoo mock; in TEST()
Dgmock-cardinalities_test.cc53 class MockFoo { class
55 MockFoo() {} in MockFoo() function in __anon4a2d9b2e0111::MockFoo
59 GTEST_DISALLOW_COPY_AND_ASSIGN_(MockFoo);
/external/v8/testing/gmock/test/
Dgmock-nice-strict_test.cc76 class MockFoo : public Foo { class
78 MockFoo() {} in MockFoo() function in testing::gmock_nice_strict_test::MockFoo
85 GTEST_DISALLOW_COPY_AND_ASSIGN_(MockFoo);
118 MockFoo raw_foo; in TEST()
135 MockFoo* const raw_foo = new MockFoo; in TEST()
138 .WillByDefault(Invoke(raw_foo, &MockFoo::Delete)); in TEST()
151 MockFoo raw_foo; in TEST()
165 NiceMock<MockFoo> nice_foo; in TEST()
176 NiceMock<MockFoo>* const nice_foo = new NiceMock<MockFoo>; in TEST()
179 .WillByDefault(Invoke(nice_foo, &MockFoo::Delete)); in TEST()
[all …]
Dgmock_leak_test_.cc49 class MockFoo : public FooInterface { class
51 MockFoo() {} in MockFoo() function in __anonff5a05680111::MockFoo
56 GTEST_DISALLOW_COPY_AND_ASSIGN_(MockFoo);
60 MockFoo* foo = new MockFoo; in TEST()
73 MockFoo* foo = new MockFoo; in TEST()
85 MockFoo* foo1 = new MockFoo; in TEST()
86 MockFoo* foo2 = new MockFoo; in TEST()
Dgmock_output_test_.cc51 class MockFoo { class
53 MockFoo() {} in MockFoo() function in MockFoo
60 GTEST_DISALLOW_COPY_AND_ASSIGN_(MockFoo);
65 NaggyMock<MockFoo> foo_;
255 MockFoo* foo1 = new MockFoo; in TEST_F()
256 MockFoo* foo2 = new MockFoo; in TEST_F()
272 MockFoo* foo = new MockFoo; in TestCatchesLeakedMocksInAdHocTests()
Dgmock_stress_test.cc51 class MockFoo { class
150 MockFoo foo; in TestConcurrentMockObjects()
175 MockFoo* mock_foo;
200 MockFoo foo; in TestConcurrentCallsOnSameObject()
230 void Helper2(MockFoo* foo) { in Helper2()
239 MockFoo foo; in TestPartiallyOrderedExpectationsWithThreads()
267 ThreadWithParam<MockFoo*>* const t = in TestPartiallyOrderedExpectationsWithThreads()
268 new ThreadWithParam<MockFoo*>(Helper2, &foo, NULL); in TestPartiallyOrderedExpectationsWithThreads()
Dgmock_ex_test.cc48 class MockFoo { class
58 MockFoo mock; in TEST()
Dgmock-cardinalities_test.cc53 class MockFoo { class
55 MockFoo() {} in MockFoo() function in __anonb69689960111::MockFoo
59 GTEST_DISALLOW_COPY_AND_ASSIGN_(MockFoo);
/external/google-breakpad/src/testing/test/
Dgmock_leak_test_.cc49 class MockFoo : public FooInterface { class
51 MockFoo() {} in MockFoo() function in __anonfe348cb50111::MockFoo
56 GTEST_DISALLOW_COPY_AND_ASSIGN_(MockFoo);
60 MockFoo* foo = new MockFoo; in TEST()
73 MockFoo* foo = new MockFoo; in TEST()
85 MockFoo* foo1 = new MockFoo; in TEST()
86 MockFoo* foo2 = new MockFoo; in TEST()
Dgmock-nice-strict_test.cc75 class MockFoo : public Foo { class
77 MockFoo() {} in MockFoo() function in testing::gmock_nice_strict_test::MockFoo
84 GTEST_DISALLOW_COPY_AND_ASSIGN_(MockFoo);
114 NiceMock<MockFoo> nice_foo; in TEST()
125 NiceMock<MockFoo>* const nice_foo = new NiceMock<MockFoo>; in TEST()
128 .WillByDefault(Invoke(nice_foo, &MockFoo::Delete)); in TEST()
138 NiceMock<MockFoo> nice_foo; in TEST()
158 NiceMock<MockFoo> nice_foo; in TEST()
166 NiceMock<MockFoo> nice_foo; in TEST()
211 StrictMock<MockFoo> strict_foo; in TEST()
[all …]
Dgmock_output_test_.cc50 class MockFoo { class
52 MockFoo() {} in MockFoo() function in MockFoo
59 GTEST_DISALLOW_COPY_AND_ASSIGN_(MockFoo);
64 MockFoo foo_;
254 MockFoo* foo1 = new MockFoo; in TEST_F()
255 MockFoo* foo2 = new MockFoo; in TEST_F()
271 MockFoo* foo = new MockFoo; in TestCatchesLeakedMocksInAdHocTests()
Dgmock_stress_test.cc51 class MockFoo { class
150 MockFoo foo; in TestConcurrentMockObjects()
175 MockFoo* mock_foo;
200 MockFoo foo; in TestConcurrentCallsOnSameObject()
230 void Helper2(MockFoo* foo) { in Helper2()
239 MockFoo foo; in TestPartiallyOrderedExpectationsWithThreads()
267 ThreadWithParam<MockFoo*>* const t = in TestPartiallyOrderedExpectationsWithThreads()
268 new ThreadWithParam<MockFoo*>(Helper2, &foo, NULL); in TestPartiallyOrderedExpectationsWithThreads()
Dgmock-generated-function-mockers_test.cc115 class MockFoo : public FooInterface { class
117 MockFoo() {} in MockFoo() function in testing::gmock_generated_function_mockers_test::MockFoo
156 GTEST_DISALLOW_COPY_AND_ASSIGN_(MockFoo);
164 MockFoo mock_foo_;
/external/googletest/googlemock/include/gmock/
Dgmock-generated-nice-strict.h.pump39 // Given a mock class MockFoo that is created using Google Mock,
40 // NiceMock<MockFoo> is a subclass of MockFoo that allows
42 // EXPECT_CALL specs), NaggyMock<MockFoo> is a subclass of MockFoo
44 // StrictMock<MockFoo> is a subclass of MockFoo that treats all
47 // Currently a mock is naggy by default, so MockFoo and
48 // NaggyMock<MockFoo> behave like the same. However, we will soon
50 // leads to more maintainable tests. When that happens, MockFoo will
51 // stop behaving like NaggyMock<MockFoo> and start behaving like
52 // NiceMock<MockFoo>.
56 // you can write NiceMock<MockFoo>(5, "a") to construct a nice mock
[all …]
/external/v8/testing/gmock/include/gmock/
Dgmock-generated-nice-strict.h.pump39 // Given a mock class MockFoo that is created using Google Mock,
40 // NiceMock<MockFoo> is a subclass of MockFoo that allows
42 // EXPECT_CALL specs), NaggyMock<MockFoo> is a subclass of MockFoo
44 // StrictMock<MockFoo> is a subclass of MockFoo that treats all
47 // Currently a mock is naggy by default, so MockFoo and
48 // NaggyMock<MockFoo> behave like the same. However, we will soon
50 // leads to more maintainable tests. When that happens, MockFoo will
51 // stop behaving like NaggyMock<MockFoo> and start behaving like
52 // NiceMock<MockFoo>.
56 // you can write NiceMock<MockFoo>(5, "a") to construct a nice mock
[all …]
/external/google-breakpad/src/testing/include/gmock/
Dgmock-generated-nice-strict.h.pump39 // Given a mock class MockFoo that is created using Google Mock,
40 // NiceMock<MockFoo> is a subclass of MockFoo that allows
42 // EXPECT_CALL specs), and StrictMock<MockFoo> is a subclass of
43 // MockFoo that treats all uninteresting calls as errors.
47 // write NiceMock<MockFoo>(5, "a") to construct a nice mock where
48 // MockFoo has a constructor that accepts (int, const char*), for
51 // A known limitation is that NiceMock<MockFoo> and
52 // StrictMock<MockFoo> only works for mock methods defined using the
53 // MOCK_METHOD* family of macros DIRECTLY in the MockFoo class. If a
54 // mock method is defined in a base class of MockFoo, the "nice" or
/external/guice/extensions/throwingproviders/test/com/google/inject/throwingproviders/
DCheckedProviderTest.java93 MockFoo.nextToThrow = null; in setUp()
94 MockFoo.nextToReturn = null; in setUp()
145 .providing(MockFoo.class) in setUp()
152 .providing(MockFoo.class) in setUp()
176 MockFoo.nextToThrow = new BindException("kaboom!"); in tExceptionsThrown()
246 MockFoo.nextToThrow = new RemoteException("A"); in tExceptionsScoped()
255 MockFoo.nextToThrow = new RemoteException("B"); in tExceptionsScoped()
281 MockFoo.nextToThrow = new RemoteException("A"); in tExceptionsNotScopedWhenNotExceptionScoping()
290 MockFoo.nextToThrow = new RemoteException("B"); in tExceptionsNotScopedWhenNotExceptionScoping()
361 .providing(MockFoo.class); in testAnnotations_Cxtor()
[all …]
/external/googletest/googlemock/docs/v1_6/
DCookBook.md37 class MockFoo : public Foo {
69 class MockFoo : public Foo {
84 class MockFoo : public Foo {
236 Suppose your test uses a mock class `MockFoo`:
240 MockFoo mock_foo;
248 test to use `NiceMock<MockFoo>` instead, the warning will be gone,
255 NiceMock<MockFoo> mock_foo;
261 `NiceMock<MockFoo>` is a subclass of `MockFoo`, so it can be used
262 wherever `MockFoo` is accepted.
264 It also works if `MockFoo`'s constructor takes some arguments, as
[all …]
/external/googletest/googlemock/docs/v1_7/
DCookBook.md37 class MockFoo : public Foo {
69 class MockFoo : public Foo {
84 class MockFoo : public Foo {
236 Suppose your test uses a mock class `MockFoo`:
240 MockFoo mock_foo;
248 test to use `NiceMock<MockFoo>` instead, the warning will be gone,
255 NiceMock<MockFoo> mock_foo;
261 `NiceMock<MockFoo>` is a subclass of `MockFoo`, so it can be used
262 wherever `MockFoo` is accepted.
264 It also works if `MockFoo`'s constructor takes some arguments, as
[all …]
/external/googletest/googlemock/docs/
DCookBook.md37 class MockFoo : public Foo {
69 class MockFoo : public Foo {
84 class MockFoo : public Foo {
236 Suppose your test uses a mock class `MockFoo`:
240 MockFoo mock_foo;
248 test to use `NiceMock<MockFoo>` instead, the warning will be gone,
255 NiceMock<MockFoo> mock_foo;
261 `NiceMock<MockFoo>` is a subclass of `MockFoo`, so it can be used
262 wherever `MockFoo` is accepted.
264 It also works if `MockFoo`'s constructor takes some arguments, as
[all …]
/external/googletest/googlemock/docs/v1_5/
DCookBook.md37 class MockFoo : public Foo {
69 class MockFoo : public Foo {
84 class MockFoo : public Foo {
236 Suppose your test uses a mock class `MockFoo`:
240 MockFoo mock_foo;
248 test to use `NiceMock<MockFoo>` instead, the warning will be gone,
255 NiceMock<MockFoo> mock_foo;
261 `NiceMock<MockFoo>` is a subclass of `MockFoo`, so it can be used
262 wherever `MockFoo` is accepted.
264 It also works if `MockFoo`'s constructor takes some arguments, as
[all …]

12