Home
last modified time | relevance | path

Searched refs:observer2 (Results 1 – 23 of 23) sorted by relevance

/external/chromium_org/chrome/browser/storage_monitor/
Dstorage_monitor_unittest.cc41 MockRemovableStorageObserver observer2; in TEST() local
44 monitor.AddObserver(&observer2); in TEST()
54 EXPECT_EQ(kDeviceId1, observer2.last_attached().device_id()); in TEST()
55 EXPECT_EQ(kDeviceName, observer2.last_attached().name()); in TEST()
56 EXPECT_EQ(FILE_PATH_LITERAL("path"), observer2.last_attached().location()); in TEST()
67 EXPECT_EQ(kDeviceId1, observer2.last_detached().device_id()); in TEST()
68 EXPECT_EQ(kDeviceName, observer2.last_detached().name()); in TEST()
69 EXPECT_EQ(FILE_PATH_LITERAL("path"), observer2.last_detached().location()); in TEST()
72 EXPECT_EQ(1, observer2.attach_calls()); in TEST()
76 EXPECT_EQ(1, observer2.detach_calls()); in TEST()
[all …]
/external/chromium_org/chrome/browser/component_updater/test/
Dcomponent_updater_service_unittest.cc397 MockComponentObserver observer2; in TEST_F() local
400 EXPECT_CALL(observer2, in TEST_F()
403 EXPECT_CALL(observer2, in TEST_F()
406 EXPECT_CALL(observer2, in TEST_F()
409 EXPECT_CALL(observer2, in TEST_F()
412 EXPECT_CALL(observer2, in TEST_F()
433 com2.observer = &observer2; in TEST_F()
568 MockComponentObserver observer2; in TEST_F() local
571 EXPECT_CALL(observer2, in TEST_F()
574 EXPECT_CALL(observer2, in TEST_F()
[all …]
/external/chromium/chrome/browser/status_icons/
Dstatus_icon_unittest.cc29 MockStatusIconObserver observer, observer2; in TEST() local
31 EXPECT_CALL(observer2, OnClicked()); in TEST()
34 icon.AddObserver(&observer2); in TEST()
37 icon.RemoveObserver(&observer2); in TEST()
/external/chromium_org/chrome/browser/status_icons/
Dstatus_icon_unittest.cc34 MockStatusIconObserver observer, observer2; in TEST() local
36 EXPECT_CALL(observer2, OnStatusIconClicked()); in TEST()
39 icon.AddObserver(&observer2); in TEST()
42 icon.RemoveObserver(&observer2); in TEST()
/external/chromium_org/chrome/browser/chromeos/imageburner/
Dburn_manager_unittest.cc244 MockStateMachineObserver observer1, observer2; in TEST() local
248 EXPECT_CALL(observer2, OnBurnStateChanged(_)) in TEST()
252 EXPECT_CALL(observer2, OnError(_)) in TEST()
259 state_machine->AddObserver(&observer2); in TEST()
262 EXPECT_CALL(observer2, OnBurnStateChanged(_)) in TEST()
266 EXPECT_CALL(observer2, OnError(_)) in TEST()
275 EXPECT_CALL(observer2, OnBurnStateChanged(_)) in TEST()
279 EXPECT_CALL(observer2, OnError(_)) in TEST()
/external/chromium_org/cc/layers/
Ddelegated_frame_provider_unittest.cc154 scoped_refptr<DelegatedRendererLayer> observer2 = in TEST_F() local
162 frame_provider_->GetFrameDataAndRefResources(observer2, &damage); in TEST_F()
169 frame_provider_->GetFrameDataAndRefResources(observer2, &damage); in TEST_F()
212 scoped_refptr<DelegatedRendererLayer> observer2 = in TEST_F() local
219 frame_provider_->GetFrameDataAndRefResources(observer2, &damage); in TEST_F()
254 scoped_refptr<DelegatedRendererLayer> observer2 = in TEST_F() local
261 frame_provider_->GetFrameDataAndRefResources(observer2, &damage); in TEST_F()
274 observer2 = NULL; in TEST_F()
298 scoped_refptr<DelegatedRendererLayer> observer2 = in TEST_F() local
306 frame_provider_->GetFrameDataAndRefResources(observer2, &damage); in TEST_F()
[all …]
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
DObservableTest.java170 DeleteTestObserver observer1, observer2; in test_notifyObservers() local
173 observable.addObserver(observer2 = new DeleteTestObserver(false)); in test_notifyObservers()
177 && observer2.updateCount() == 1); in test_notifyObservers()
181 observable.addObserver(observer2 = new DeleteTestObserver(false)); in test_notifyObservers()
185 && observer2.updateCount() == 1); in test_notifyObservers()
/external/chromium_org/ui/views/corewm/
Dfocus_controller_unittest.cc426 ScopedTargetFocusNotificationObserver observer2(root_window(), 2); in FocusEvents() local
430 observer2.ExpectCounts(0, 0); in FocusEvents()
435 observer2.ExpectCounts(0, 0); in FocusEvents()
440 observer2.ExpectCounts(1, 1); in FocusEvents()
463 ScopedTargetFocusNotificationObserver observer2(root_window(), 2); in ActivationEvents() local
467 observer2.ExpectCounts(0, 0); in ActivationEvents()
472 observer2.ExpectCounts(1, 1); in ActivationEvents()
494 ScopedTargetFocusNotificationObserver observer2(root_window(), 2); in DuplicateActivationEvents() local
498 observer2.ExpectCounts(0, 0); in DuplicateActivationEvents()
503 observer2.ExpectCounts(1, 1); in DuplicateActivationEvents()
[all …]
/external/chromium_org/v8/test/mjsunit/harmony/
Dobject-observe.js91 var observer2 = createObserver(); variable
94 assertEquals("function", typeof observer2.callback);
583 Thingy.observe(thingy, observer2.callback);
591 Object.deliverChangeRecords(observer2.callback);
604 observer2.assertCallbackRecords([
719 RecursiveThingy.observe(thingy, observer2.callback);
723 Object.deliverChangeRecords(observer2.callback);
729 observer2.assertCallbackRecords([
775 DeckSuit.observe(deck, observer2.callback);
778 Object.deliverChangeRecords(observer2.callback);
[all …]
/external/chromium_org/chrome/browser/tab_contents/
Dview_source_browsertest.cc127 content::WindowedNotificationObserver observer2( in IN_PROC_BROWSER_TEST_F() local
130 observer2.Wait(); in IN_PROC_BROWSER_TEST_F()
/external/chromium_org/chrome/browser/renderer_host/
Drender_process_host_chrome_browsertest.cc124 ui_test_utils::WindowedTabAddedNotificationObserver observer2( in TestProcessOverflow() local
127 observer2.Wait(); in TestProcessOverflow()
208 ui_test_utils::WindowedTabAddedNotificationObserver observer2( in IN_PROC_BROWSER_TEST_F() local
211 observer2.Wait(); in IN_PROC_BROWSER_TEST_F()
/external/chromium_org/third_party/libjingle/source/talk/app/webrtc/
Dpeerconnectioninterface_unittest.cc786 talk_base::scoped_ptr<MockDataChannelObserver> observer2( local
797 EXPECT_TRUE_WAIT(observer2->IsOpen(), kTimeout);
805 EXPECT_EQ_WAIT(data_to_send2, observer2->last_message(), kTimeout);
812 EXPECT_TRUE(observer2->IsOpen());
817 EXPECT_EQ_WAIT(data_to_send2, observer2->last_message(), kTimeout);
839 talk_base::scoped_ptr<MockDataChannelObserver> observer2( local
847 EXPECT_TRUE_WAIT(observer2->IsOpen(), kTimeout);
1039 talk_base::scoped_ptr<MockDataChannelObserver> observer2( local
1044 EXPECT_TRUE_WAIT(observer2->IsOpen(), kTimeout);
/external/chromium_org/webkit/browser/database/
Ddatabase_tracker_unittest.cc324 TestObserver observer2; in TestDatabaseTracker() local
326 tracker->AddObserver(&observer2); in TestDatabaseTracker()
374 CheckNotificationReceived(&observer2, kOrigin1, kDB1, 1); in TestDatabaseTracker()
377 CheckNotificationReceived(&observer2, kOrigin2, kDB2, 2); in TestDatabaseTracker()
380 CheckNotificationReceived(&observer2, kOrigin1, kDB3, 4); in TestDatabaseTracker()
394 tracker->RemoveObserver(&observer2); in TestDatabaseTracker()
/external/chromium_org/content/browser/renderer_host/media/
Dweb_contents_video_capture_device_unittest.cc700 StubClientObserver observer2; in TEST_F() local
701 device()->AllocateAndStart(capture_params, observer2.PassClient()); in TEST_F()
704 ASSERT_NO_FATAL_FAILURE(observer2.WaitForNextColor(SK_ColorBLUE)); in TEST_F()
707 ASSERT_NO_FATAL_FAILURE(observer2.WaitForNextColor(SK_ColorYELLOW)); in TEST_F()
/external/chromium_org/chrome/browser/media_galleries/
Dmedia_galleries_preferences_unittest.cc762 MockGalleryChangeObserver observer2(gallery_prefs()); in TEST_F() local
763 gallery_prefs()->AddGalleryChangeObserver(&observer2); in TEST_F()
776 EXPECT_EQ(1, observer2.notifications()); in TEST_F()
787 EXPECT_EQ(2, observer2.notifications()); in TEST_F()
795 EXPECT_EQ(3, observer2.notifications()); in TEST_F()
/external/chromium_org/chrome/browser/captive_portal/
Dcaptive_portal_service_unittest.cc288 CaptivePortalObserver observer2(&profile2, service2.get()); in TEST_F() local
291 EXPECT_EQ(0, observer2.num_results_received()); in TEST_F()
/external/chromium_org/ash/
Droot_window_controller_unittest.cc536 DestroyedWindowObserver observer2; in TEST_F() local
539 observer2.SetWindow(window2); in TEST_F()
548 ASSERT_FALSE(observer2.destroyed()); in TEST_F()
/external/chromium_org/chrome/browser/spellchecker/
Dspellcheck_custom_dictionary_unittest.cc967 DictionaryObserverCounter observer2; in TEST_F() local
968 custom_dictionary2->AddObserver(&observer2); in TEST_F()
982 EXPECT_EQ(1, observer2.changes()); in TEST_F()
985 custom_dictionary2->RemoveObserver(&observer2); in TEST_F()
/external/chromium_org/sync/internal_api/
Dsync_encryption_handler_impl_unittest.cc348 StrictMock<SyncEncryptionHandlerObserverMock> observer2; in TEST_F() local
353 handler2.AddObserver(&observer2); in TEST_F()
373 Mock::VerifyAndClearExpectations(&observer2); in TEST_F()
380 EXPECT_CALL(observer2, in TEST_F()
403 Mock::VerifyAndClearExpectations(&observer2); in TEST_F()
/external/chromium_org/content/browser/download/
Ddownload_browsertest.cc764 scoped_ptr<DownloadTestObserver> observer2(CreateWaiter(shell(), 1)); in IN_PROC_BROWSER_TEST_F() local
766 observer2->WaitForFinished(); // Wait for the third request. in IN_PROC_BROWSER_TEST_F()
767 EXPECT_EQ(1u, observer2->NumDownloadsSeenInState(DownloadItem::COMPLETE)); in IN_PROC_BROWSER_TEST_F()
Ddownload_item_impl_unittest.cc363 MockObserver observer2(system_cancel); in TEST_F() local
366 ASSERT_TRUE(observer2.CheckUpdated()); in TEST_F()
/external/chromium_org/chrome/browser/apps/
Dweb_view_browsertest.cc341 ui_test_utils::UrlLoadObserver observer2( in NavigateAndOpenAppForIsolation() local
355 observer2.Wait(); in NavigateAndOpenAppForIsolation()
364 content::Source<content::NavigationController> source2 = observer2.source(); in NavigateAndOpenAppForIsolation()
/external/chromium_org/chrome/browser/extensions/
Dextension_service_unittest.cc1915 content::WindowedNotificationObserver observer2( in TEST_F() local
1921 observer2.Wait(); in TEST_F()
1948 content::WindowedNotificationObserver observer2( in TEST_F() local
1954 observer2.Wait(); in TEST_F()
6506 content::WindowedNotificationObserver observer2( in TEST_F() local
6510 observer2.Wait(); in TEST_F()