/external/libchrome/base/test/ |
D | mock_callback.h | 38 class MockCallback; variable 41 class MockCallback<Callback<R()>> { 43 MockCallback() = default; 47 return Bind(&MockCallback::Run, Unretained(this)); in Get() 51 DISALLOW_COPY_AND_ASSIGN(MockCallback); 55 class MockCallback<OnceCallback<R()>> { 57 MockCallback() = default; 61 return BindOnce(&MockCallback::Run, Unretained(this)); in Get() 65 DISALLOW_COPY_AND_ASSIGN(MockCallback); 69 class MockCallback<Callback<R(A1)>> { [all …]
|
D | mock_callback.h.pump | 7 $$ MAX_ARITY controls the number of arguments that MockCallback supports. 23 // base::MockCallback<FooCallback> callback; 44 class MockCallback; 52 class MockCallback<Callback<$run_type>> { 54 MockCallback() = default; 58 return Bind(&MockCallback::Run, Unretained(this)); 62 DISALLOW_COPY_AND_ASSIGN(MockCallback); 66 class MockCallback<OnceCallback<$run_type>> { 68 MockCallback() = default; 72 return BindOnce(&MockCallback::Run, Unretained(this)); [all …]
|
D | mock_callback_unittest.cc | 17 MockCallback<Closure> mock_closure; in TEST() 21 MockCallback<Callback<int()>> mock_int_callback; in TEST() 32 MockCallback<Callback<int(int, int)>> mock_two_int_callback; in TEST() 42 MockCallback<OnceClosure> mock_closure; in TEST() 46 MockCallback<OnceCallback<int()>> mock_int_callback; in TEST() 52 MockCallback<OnceCallback<int(int, int)>> mock_two_int_callback; in TEST()
|
/external/libwebm/webm_parser/test_utils/ |
D | mock_callback.h | 24 class MockCallback : public Callback { 26 MockCallback() { in MockCallback() function 31 .WillByDefault(Invoke(this, &MockCallback::OnElementBeginConcrete)); in MockCallback() 33 .WillByDefault(Invoke(this, &MockCallback::OnUnknownElementConcrete)); in MockCallback() 35 .WillByDefault(Invoke(this, &MockCallback::OnEbmlConcrete)); in MockCallback() 37 .WillByDefault(Invoke(this, &MockCallback::OnVoidConcrete)); in MockCallback() 39 .WillByDefault(Invoke(this, &MockCallback::OnSegmentBeginConcrete)); in MockCallback() 41 .WillByDefault(Invoke(this, &MockCallback::OnSeekConcrete)); in MockCallback() 43 .WillByDefault(Invoke(this, &MockCallback::OnInfoConcrete)); in MockCallback() 45 .WillByDefault(Invoke(this, &MockCallback::OnClusterBeginConcrete)); in MockCallback() [all …]
|
D | parser_test.h | 100 testing::NiceMock<MockCallback> callback_;
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
D | FutureCallbackTest.java | 40 MockCallback callback = new MockCallback("foo"); in testSameThreadSuccess() 48 MockCallback callback = new MockCallback("foo"); in testExecutorSuccess() 58 MockCallback callback = new MockCallback(e); in testSameThreadExecutionException() 88 MockCallback callback = new MockCallback(error); in testThrowErrorFromGet() 95 MockCallback callback = new MockCallback(e); in testRuntimeExeceptionFromGet() 159 private final class MockCallback implements FutureCallback<String> { class in FutureCallbackTest 164 MockCallback(String expectedValue) { in MockCallback() method in FutureCallbackTest.MockCallback 168 public MockCallback(Throwable expectedFailure) { in MockCallback() method in FutureCallbackTest.MockCallback
|
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/ |
D | FutureCallbackTest.java | 40 MockCallback callback = new MockCallback("foo"); in testSameThreadSuccess() 48 MockCallback callback = new MockCallback("foo"); in testExecutorSuccess() 58 MockCallback callback = new MockCallback(e); in testSameThreadExecutionException() 88 MockCallback callback = new MockCallback(error); in testThrowErrorFromGet() 95 MockCallback callback = new MockCallback(e); in testRuntimeExeceptionFromGet() 159 private final class MockCallback implements FutureCallback<String> { class in FutureCallbackTest 164 MockCallback(String expectedValue) { in MockCallback() method in FutureCallbackTest.MockCallback 168 public MockCallback(Throwable expectedFailure) { in MockCallback() method in FutureCallbackTest.MockCallback
|
/external/webrtc/pc/ |
D | video_rtp_track_source_unittest.cc | 20 class MockCallback : public VideoRtpTrackSource::Callback { class 43 MockCallback mock_callback; in TEST() 52 MockCallback mock_callback; in TEST() 63 MockCallback mock_callback; in TEST() 76 MockCallback mock_callback; in TEST() 91 MockCallback mock_callback; in TEST() 98 testing::StrictMock<MockCallback> mock_callback; in TEST()
|
/external/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/ |
D | ServiceTest.java | 82 MockCallback<Message> fooCallback = new MockCallback<Message>(); in testCallMethod() 83 MockCallback<Message> barCallback = new MockCallback<Message>(); in testCallMethod() 117 MockCallback<FooResponse> fooCallback = new MockCallback<FooResponse>(); in testStub() 118 MockCallback<BarResponse> barCallback = new MockCallback<BarResponse>(); in testStub() 281 MockCallback<?> callback) { in wrapsCallback() 287 private static class MockCallback<Type extends Message> class in ServiceTest 299 private MockCallback<?> callback; 301 public WrapsCallback(MockCallback<?> callback) { in WrapsCallback()
|
/external/libwebm/webm_parser/tests/ |
D | webm_parser_test.cc | 31 using webm::MockCallback; 44 MockCallback callback; in TEST_F() 65 MockCallback callback; in TEST_F() 89 MockCallback callback; in TEST_F() 115 MockCallback callback; in TEST_F() 140 MockCallback callback; in TEST_F() 169 MockCallback callback; in TEST_F() 203 MockCallback callback; in TEST_F() 241 MockCallback callback; in TEST_F() 271 MockCallback expect_nothing; in TEST_F() [all …]
|
/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | ServiceTest.java | 78 MockCallback<Message> fooCallback = new MockCallback<Message>(); in testCallMethod() 79 MockCallback<Message> barCallback = new MockCallback<Message>(); in testCallMethod() 115 MockCallback<FooResponse> fooCallback = new MockCallback<FooResponse>(); in testStub() 116 MockCallback<BarResponse> barCallback = new MockCallback<BarResponse>(); in testStub() 274 private <T extends Message> RpcCallback<T> wrapsCallback(MockCallback<?> callback) { in wrapsCallback() 280 private static class MockCallback<T extends Message> implements RpcCallback<T> { class in ServiceTest 299 private MockCallback<?> callback; 301 public WrapsCallback(MockCallback<?> callback) { in WrapsCallback()
|
/external/webrtc/modules/pacing/ |
D | paced_sender_unittest.cc | 40 class MockCallback : public PacketRouter { class 116 MockCallback callback_;
|
/external/openscreen/discovery/dnssd/impl/ |
D | querier_impl_unittest.cc | 31 class MockCallback : public DnsSdQuerier::Callback { class 173 MockCallback* cb) { in CreateServiceInstance() 215 StrictMock<MockCallback> callback; 249 StrictMock<MockCallback> callback2; in TEST_F() 266 StrictMock<MockCallback> callback2; in TEST_F() 298 StrictMock<MockCallback> callback2; in TEST_F()
|
/external/python/cpython3/Lib/test/test_asyncio/ |
D | utils.py | 289 dct[name] = MockCallback(return_value=None) 477 def MockCallback(**kwargs): function
|
D | test_tasks.py | 3230 cb = test_utils.MockCallback() 3252 cb = test_utils.MockCallback() 3271 cb = test_utils.MockCallback() 3363 cb = test_utils.MockCallback() 3382 cb = test_utils.MockCallback() 3578 callback = test_utils.MockCallback()
|