Home
last modified time | relevance | path

Searched refs:callback2 (Results 1 – 25 of 26) sorted by relevance

12

/external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/
DBrowserStartupControllerTest.java133 final TestStartupCallback callback2 = new TestStartupCallback(); in testMultipleAsynchronousStartupRequests() local
151 mController.startBrowserProcessesAsync(callback2); in testMultipleAsynchronousStartupRequests()
174 assertTrue("Callback 2 should have been executed.", callback2.mHasStartupResult); in testMultipleAsynchronousStartupRequests()
175 assertTrue("Callback 2 should have been a success.", callback2.mWasSuccess); in testMultipleAsynchronousStartupRequests()
189 final TestStartupCallback callback2 = new TestStartupCallback(); in testConsecutiveAsynchronousStartupRequests() local
205 mController.addStartupCompletedObserver(callback2); in testConsecutiveAsynchronousStartupRequests()
219 assertTrue("Callback 2 should have been executed.", callback2.mHasStartupResult); in testConsecutiveAsynchronousStartupRequests()
220 assertTrue("Callback 2 should have been a success.", callback2.mWasSuccess); in testConsecutiveAsynchronousStartupRequests()
291 final TestStartupCallback callback2 = new TestStartupCallback(); in testConsecutiveFailedAsynchronousStartupRequests() local
307 mController.addStartupCompletedObserver(callback2); in testConsecutiveFailedAsynchronousStartupRequests()
[all …]
/external/chromium_org/base/android/javatests/src/org/chromium/base/
DAdvancedMockContextTest.java49 Callback2 callback2 = new Callback2(); in testComponentCallbacksForTargetContext() local
51 context.registerComponentCallbacks(callback2); in testComponentCallbacksForTargetContext()
55 assertTrue("onLowMemory should have been called.", callback2.mOnLowMemoryCalled); in testComponentCallbacksForTargetContext()
62 callback2.mConfiguration); in testComponentCallbacksForTargetContext()
66 .TRIM_MEMORY_MODERATE, callback2.mLevel); in testComponentCallbacksForTargetContext()
/external/chromium_org/net/proxy/
Dproxy_service_unittest.cc509 TestCompletionCallback callback2; in TEST_F() local
513 &info, callback2.callback(), NULL, &network_delegate, BoundNetLog()); in TEST_F()
609 TestCompletionCallback callback2; in TEST_F() local
612 &info, callback2.callback(), NULL, in TEST_F()
729 TestCompletionCallback callback2; in TEST_F() local
731 url, net::LOAD_NORMAL, &info, callback2.callback(), NULL, NULL, in TEST_F()
743 EXPECT_EQ(OK, callback2.WaitForResult()); in TEST_F()
785 TestCompletionCallback callback2; in TEST_F() local
787 url, net::LOAD_NORMAL, &info, callback2.callback(), NULL, NULL, in TEST_F()
884 TestCompletionCallback callback2; in TEST_F() local
[all …]
Dmulti_threaded_proxy_resolver_unittest.cc286 TestCompletionCallback callback2; in TEST() local
289 callback2.callback(), NULL, BoundNetLog()); in TEST()
305 rv = callback2.WaitForResult(); in TEST()
353 TestCompletionCallback callback2; in TEST() local
357 callback2.callback(), &request2, log2.bound()); in TEST()
393 EXPECT_EQ(2, callback2.WaitForResult()); in TEST()
448 TestCompletionCallback callback2; in TEST() local
451 callback2.callback(), &request2, BoundNetLog()); in TEST()
482 EXPECT_FALSE(callback2.have_result()); in TEST()
519 TestCompletionCallback callback2; in TEST() local
[all …]
Dproxy_resolver_v8_tracing_unittest.cc366 TestCompletionCallback callback2; in TEST_F() local
388 callback2.callback(), in TEST_F()
393 EXPECT_EQ(OK, callback2.WaitForResult()); in TEST_F()
/external/chromium_org/mojo/public/cpp/environment/tests/
Dasync_waiter_unittest.cc85 TestAsyncWaitCallback callback2; in TEST_F() local
96 &callback2); in TEST_F()
101 EXPECT_EQ(1, callback2.result_count()); in TEST_F()
102 EXPECT_EQ(MOJO_RESULT_OK, callback2.last_result()); in TEST_F()
/external/chromium_org/base/
Dcancelable_callback_unittest.cc57 base::Closure callback2 = cancelable.callback(); in TEST() local
63 callback2.Run(); in TEST()
137 base::Closure callback2 = cancelable.callback(); in TEST() local
138 ASSERT_FALSE(callback2.is_null()); in TEST()
140 callback2.Run(); in TEST()
/external/chromium_org/content/browser/battery_status/
Dbattery_status_service_unittest.cc103 const BatteryStatusService::BatteryUpdateCallback& callback2() const { in callback2() function in content::__anon2e05b0ed0111::BatteryStatusServiceTest
147 scoped_ptr<BatterySubscription> subscription2 = AddCallback(callback2()); in TEST_F()
154 scoped_ptr<BatterySubscription> subscription2 = AddCallback(callback2()); in TEST_F()
174 scoped_ptr<BatterySubscription> subscription2 = AddCallback(callback2()); in TEST_F()
/external/chromium_org/net/ssl/
Dchannel_id_service_unittest.cc274 TestCompletionCallback callback2; in TEST_F() local
285 callback2.callback(), &request_handle2); in TEST_F()
291 error = callback2.WaitForResult(); in TEST_F()
311 TestCompletionCallback callback2; in TEST_F() local
321 host, &private_key_info2, &der_cert2, callback2.callback(), in TEST_F()
328 error = callback2.WaitForResult(); in TEST_F()
485 TestCompletionCallback callback2; in TEST_F() local
504 callback2.callback(), in TEST_F()
522 error = callback2.WaitForResult(); in TEST_F()
740 TestCompletionCallback callback2; in TEST_F() local
[all …]
/external/chromium_org/net/socket/
Dclient_socket_pool_base_unittest.cc1410 TestCompletionCallback callback2; in TEST_F() local
1415 callback2.callback(), in TEST_F()
1419 EXPECT_EQ(OK, callback2.WaitForResult()); in TEST_F()
1788 TestCompletionCallback callback2; in TEST_F() local
1802 callback2.callback(), in TEST_F()
1811 EXPECT_EQ(OK, callback2.WaitForResult()); in TEST_F()
1989 TestCompletionCallback callback2; in TEST_F() local
1993 callback2.callback(), in TEST_F()
2037 TestCompletionCallback callback2; in TEST_F() local
2041 callback2.callback(), in TEST_F()
[all …]
Dssl_client_socket_pool_unittest.cc308 TestCompletionCallback callback2; in TEST_P() local
315 "b", params2, MEDIUM, callback2.callback(), pool_.get(), BoundNetLog()); in TEST_P()
365 TestCompletionCallback callback2; in TEST_P() local
371 "b", params2, MEDIUM, callback2.callback(), pool_.get(), BoundNetLog()); in TEST_P()
395 callback2.WaitForResult(); in TEST_P()
437 TestCompletionCallback callback2; in TEST_P() local
443 "b", params2, MEDIUM, callback2.callback(), pool_.get(), BoundNetLog()); in TEST_P()
505 TestCompletionCallback callback2; in TEST_P() local
511 "b", params2, MEDIUM, callback2.callback(), pool_.get(), BoundNetLog()); in TEST_P()
585 TestCompletionCallback callback2; in TEST_P() local
[all …]
Dtransport_client_socket_pool_unittest.cc351 TestCompletionCallback callback2; in TEST_F() local
357 handle2.Init("a", params_, kDefaultPriority, callback2.callback(), in TEST_F()
362 EXPECT_EQ(OK, callback2.WaitForResult()); in TEST_F()
377 TestCompletionCallback callback2; in TEST_F() local
379 handle.Init("a", params_, kDefaultPriority, callback2.callback(), in TEST_F()
392 EXPECT_EQ(OK, callback2.WaitForResult()); in TEST_F()
Dwebsocket_transport_client_socket_pool_unittest.cc277 TestCompletionCallback callback2; in TEST_F() local
290 callback2.callback(), in TEST_F()
296 EXPECT_EQ(OK, callback2.WaitForResult()); in TEST_F()
315 TestCompletionCallback callback2; in TEST_F() local
320 callback2.callback(), in TEST_F()
334 EXPECT_EQ(OK, callback2.WaitForResult()); in TEST_F()
/external/chromium_org/base/android/jni_generator/
DtestMultipleJNIAdditionalImport.golden30 jobject callback2);
36 jobject callback2) {
54 method_id, callback1, callback2);
/external/chromium_org/net/dns/
Dmapped_host_resolver_unittest.cc233 TestCompletionCallback callback2; in TEST() local
238 callback2.callback(), in TEST()
242 rv = callback2.WaitForResult(); in TEST()
/external/chromium_org/net/http/
Dhttp_network_transaction_unittest.cc1942 TestCompletionCallback callback2; in TEST_P() local
1945 AuthCredentials(kFoo, kBar), callback2.callback()); in TEST_P()
1948 rv = callback2.WaitForResult(); in TEST_P()
2083 TestCompletionCallback callback2; in TEST_P() local
2086 AuthCredentials(kFoo, kBar), callback2.callback()); in TEST_P()
2089 rv = callback2.WaitForResult(); in TEST_P()
2174 TestCompletionCallback callback2; in TEST_P() local
2177 AuthCredentials(kFoo, kBar), callback2.callback()); in TEST_P()
2180 rv = callback2.WaitForResult(); in TEST_P()
2258 TestCompletionCallback callback2; in TEST_P() local
[all …]
/external/chromium_org/dbus/
Dbus_unittest.cc397 Bus::GetServiceOwnerCallback callback2 = in TEST() local
402 bus->ListenForServiceOwnerChange("org.chromium.TestService", callback2); in TEST()
417 bus->UnlistenForServiceOwnerChange("org.chromium.TestService", callback2); in TEST()
/external/chromium_org/net/cert/
Dmulti_threaded_cert_verifier_unittest.cc206 TestCompletionCallback callback2; in TEST_F() local
224 callback2.callback(), in TEST_F()
231 error = callback2.WaitForResult(); in TEST_F()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/tester/android/view/
DTestWindow.java54 @Override public void takeSurface(SurfaceHolder.Callback2 callback2) { in takeSurface() argument
/external/chromium_org/ppapi/tests/
Dtest_file_io.cc468 TestCompletionCallbackWithOutput< std::vector<char> > callback2( in TestReadToArrayWriteSetLength() local
471 callback2.WaitForResult(file_io.Read(0, -1, callback2.GetCallback())); in TestReadToArrayWriteSetLength()
472 CHECK_CALLBACK_BEHAVIOR(callback2); in TestReadToArrayWriteSetLength()
473 ASSERT_EQ(PP_ERROR_FAILED, callback2.result()); in TestReadToArrayWriteSetLength()
/external/chromium_org/net/spdy/
Dspdy_http_stream_unittest.cc262 TestCompletionCallback callback2; in TEST_P() local
291 callback2.callback())); in TEST_P()
295 EXPECT_LE(0, callback2.WaitForResult()); in TEST_P()
Dspdy_network_transaction_unittest.cc908 TestCompletionCallback callback2; in TEST_P() local
917 out.rv = trans2->Start(&httpreq2, callback2.callback(), log); in TEST_P()
993 TestCompletionCallback callback2; in TEST_P() local
1000 out.rv = trans2->Start(&httpreq2, callback2.callback(), log); in TEST_P()
1005 out.rv = callback2.WaitForResult(); in TEST_P()
1082 TestCompletionCallback callback2; in TEST_P() local
1099 out.rv = trans2->Start(&httpreq, callback2.callback(), log); in TEST_P()
1104 out.rv = callback2.WaitForResult(); in TEST_P()
1208 TestCompletionCallback callback2; in TEST_P() local
1222 out.rv = trans2->Start(&httpreq2, callback2.callback(), log); in TEST_P()
[all …]
Dspdy_session_unittest.cc271 TestCompletionCallback callback2; in TEST_P() local
278 callback2.callback())); in TEST_P()
1146 TestCompletionCallback callback2; in TEST_P() local
1153 callback2.callback())); in TEST_P()
1184 EXPECT_EQ(OK, callback2.WaitForResult()); in TEST_P()
2539 TestCompletionCallback callback2; in TEST_P() local
2545 session, url2, LOWEST, BoundNetLog(), callback2.callback())); in TEST_P()
2662 TestCompletionCallback callback2; in TEST_P() local
2668 callback2.callback())); in TEST_P()
2687 EXPECT_EQ(OK, callback2.WaitForResult()); in TEST_P()
[all …]
/external/chromium_org/chrome/browser/resources/google_now/
Dutility_unittest.gtestjs305 'callback2',
364 239, this.mockLocalFunctions.functions().callback2);
371 this.mockLocalFunctions.expects(once()).callback2(237);
/external/chromium_org/net/disk_cache/
Dentry_unittest.cc185 CallbackTest callback2(&helper, false); in InternalAsyncIO() local
222 base::Bind(&CallbackTest::Run, base::Unretained(&callback2)), in InternalAsyncIO()
463 CallbackTest callback2(&helper, false); in ExternalAsyncIO() local
501 base::Bind(&CallbackTest::Run, base::Unretained(&callback2))); in ExternalAsyncIO()
2731 CallbackTest callback2(&helper, false); in TEST_F() local
2762 base::Bind(&CallbackTest::Run, base::Unretained(&callback2)), in TEST_F()
2821 CallbackTest callback2(&helper, false); in TEST_F() local
2835 base::Unretained(&callback2)))); in TEST_F()

12