/external/chromium_org/ash/system/tray/ |
D | system_tray_notifier.cc | 23 AccessibilityObserver* observer) { in AddAccessibilityObserver() argument 24 accessibility_observers_.AddObserver(observer); in AddAccessibilityObserver() 28 AccessibilityObserver* observer) { in RemoveAccessibilityObserver() argument 29 accessibility_observers_.RemoveObserver(observer); in RemoveAccessibilityObserver() 32 void SystemTrayNotifier::AddAudioObserver(AudioObserver* observer) { in AddAudioObserver() argument 33 audio_observers_.AddObserver(observer); in AddAudioObserver() 36 void SystemTrayNotifier::RemoveAudioObserver(AudioObserver* observer) { in RemoveAudioObserver() argument 37 audio_observers_.RemoveObserver(observer); in RemoveAudioObserver() 40 void SystemTrayNotifier::AddBluetoothObserver(BluetoothObserver* observer) { in AddBluetoothObserver() argument 41 bluetooth_observers_.AddObserver(observer); in AddBluetoothObserver() [all …]
|
D | system_tray_notifier.h | 47 void AddAccessibilityObserver(AccessibilityObserver* observer); 48 void RemoveAccessibilityObserver(AccessibilityObserver* observer); 50 void AddAudioObserver(AudioObserver* observer); 51 void RemoveAudioObserver(AudioObserver* observer); 53 void AddBluetoothObserver(BluetoothObserver* observer); 54 void RemoveBluetoothObserver(BluetoothObserver* observer); 56 void AddClockObserver(ClockObserver* observer); 57 void RemoveClockObserver(ClockObserver* observer); 59 void AddIMEObserver(IMEObserver* observer); 60 void RemoveIMEObserver(IMEObserver* observer); [all …]
|
/external/chromium_org/ui/gfx/ |
D | display_change_notifier_unittest.cc | 65 MockDisplayObserver observer; in TEST() local 69 EXPECT_EQ(0, observer.display_added()); in TEST() 71 change_notifier.AddObserver(&observer); in TEST() 74 EXPECT_EQ(1, observer.display_added()); in TEST() 86 MockDisplayObserver observer; in TEST() local 90 EXPECT_EQ(0, observer.display_added()); in TEST() 92 change_notifier.AddObserver(&observer); in TEST() 93 change_notifier.RemoveObserver(&observer); in TEST() 97 EXPECT_EQ(0, observer.display_added()); in TEST() 109 MockDisplayObserver observer; in TEST() local [all …]
|
/external/chromium_org/components/policy/core/common/ |
D | schema_registry_unittest.cc | 67 MockSchemaRegistryObserver observer; in TEST() local 69 registry.AddObserver(&observer); in TEST() 75 EXPECT_CALL(observer, OnSchemaRegistryUpdated(true)); in TEST() 78 Mock::VerifyAndClearExpectations(&observer); in TEST() 82 EXPECT_CALL(observer, OnSchemaRegistryUpdated(true)); in TEST() 85 Mock::VerifyAndClearExpectations(&observer); in TEST() 90 EXPECT_CALL(observer, OnSchemaRegistryUpdated(false)); in TEST() 93 Mock::VerifyAndClearExpectations(&observer); in TEST() 103 EXPECT_CALL(observer, OnSchemaRegistryUpdated(true)); in TEST() 105 Mock::VerifyAndClearExpectations(&observer); in TEST() [all …]
|
D | async_policy_provider_unittest.cc | 134 MockConfigurationPolicyObserver observer; in TEST_F() local 135 provider_->AddObserver(&observer); in TEST_F() 136 EXPECT_CALL(observer, OnUpdatePolicy(provider_.get())).Times(1); in TEST_F() 141 provider_->RemoveObserver(&observer); in TEST_F() 149 MockConfigurationPolicyObserver observer; in TEST_F() local 150 provider_->AddObserver(&observer); in TEST_F() 151 EXPECT_CALL(observer, OnUpdatePolicy(provider_.get())).Times(0); in TEST_F() 154 Mock::VerifyAndClearExpectations(&observer); in TEST_F() 157 EXPECT_CALL(observer, OnUpdatePolicy(provider_.get())).Times(0); in TEST_F() 159 Mock::VerifyAndClearExpectations(&observer); in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/chromeos/file_system_provider/ |
D | request_manager_unittest.cc | 326 RequestObserver observer; in TEST_F() local 327 request_manager_->AddObserver(&observer); in TEST_F() 338 EXPECT_EQ(1u, observer.created().size()); in TEST_F() 339 EXPECT_EQ(TESTING, observer.created()[0].type()); in TEST_F() 340 EXPECT_EQ(1u, observer.destroyed().size()); in TEST_F() 341 EXPECT_EQ(0u, observer.executed().size()); in TEST_F() 347 request_manager_->RemoveObserver(&observer); in TEST_F() 352 RequestObserver observer; in TEST_F() local 353 request_manager_->AddObserver(&observer); in TEST_F() 364 ASSERT_EQ(1u, observer.created().size()); in TEST_F() [all …]
|
D | service_unittest.cc | 159 LoggingObserver observer; in TEST_F() local 160 service_->AddObserver(&observer); in TEST_F() 165 ASSERT_EQ(1u, observer.mounts.size()); in TEST_F() 166 EXPECT_EQ(kExtensionId, observer.mounts[0].file_system_info().extension_id()); in TEST_F() 168 observer.mounts[0].file_system_info().file_system_id()); in TEST_F() 172 observer.mounts[0].file_system_info().mount_path().AsUTF8Unsafe()); in TEST_F() 173 EXPECT_EQ(kDisplayName, observer.mounts[0].file_system_info().display_name()); in TEST_F() 174 EXPECT_FALSE(observer.mounts[0].file_system_info().writable()); in TEST_F() 175 EXPECT_EQ(base::File::FILE_OK, observer.mounts[0].error()); in TEST_F() 176 ASSERT_EQ(0u, observer.unmounts.size()); in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/chromeos/file_manager/ |
D | volume_manager_unittest.cc | 192 LoggingObserver observer; in TEST_F() local 193 volume_manager()->AddObserver(&observer); in TEST_F() 197 ASSERT_EQ(1U, observer.events().size()); in TEST_F() 198 LoggingObserver::Event event = observer.events()[0]; in TEST_F() 206 ASSERT_EQ(2U, observer.events().size()); in TEST_F() 207 event = observer.events()[1]; in TEST_F() 213 volume_manager()->RemoveObserver(&observer); in TEST_F() 217 LoggingObserver observer; in TEST_F() local 218 volume_manager()->AddObserver(&observer); in TEST_F() 222 ASSERT_EQ(0U, observer.events().size()); in TEST_F() [all …]
|
/external/chromium_org/sync/internal_api/ |
D | sync_encryption_handler_impl_unittest.cc | 133 SyncEncryptionHandlerObserverMock* observer() { return &observer_; } in observer() function in syncer::SyncEncryptionHandlerImplTest 251 EXPECT_CALL(*observer(), in InitKeystoreMigratedNigori() 253 EXPECT_CALL(*observer(), in InitKeystoreMigratedNigori() 255 EXPECT_CALL(*observer(), in InitKeystoreMigratedNigori() 257 EXPECT_CALL(*observer(), in InitKeystoreMigratedNigori() 259 EXPECT_CALL(*observer(), in InitKeystoreMigratedNigori() 265 Mock::VerifyAndClearExpectations(observer()); in InitKeystoreMigratedNigori() 284 EXPECT_CALL(*observer(), in InitCustomPassMigratedNigori() 286 EXPECT_CALL(*observer(), in InitCustomPassMigratedNigori() 288 EXPECT_CALL(*observer(), in InitCustomPassMigratedNigori() [all …]
|
/external/chromium_org/v8/test/mjsunit/es7/ |
D | object-observe.js | 33 allObservers.forEach(function(observer) { observer.reset(); }); argument 47 var observer = { variable 77 observer.callback = function(r) { 81 observer.records = r; 82 observer.callbackCount++; 85 observer.reset(); 86 allObservers.push(observer); 87 return observer; 90 var observer = createObserver(); variable 93 assertEquals("function", typeof observer.callback); [all …]
|
/external/chromium_org/chrome/renderer/ |
D | content_settings_observer_browsertest.cc | 57 MockContentSettingsObserver observer(view_->GetMainRenderFrame()); in TEST_F() local 58 EXPECT_CALL(observer, in TEST_F() 60 observer.DidBlockContentType(CONTENT_SETTINGS_TYPE_COOKIES); in TEST_F() 63 observer.DidBlockContentType(CONTENT_SETTINGS_TYPE_COOKIES); in TEST_F() 64 ::testing::Mock::VerifyAndClearExpectations(&observer); in TEST_F() 72 MockContentSettingsObserver observer(view_->GetMainRenderFrame()); in TEST_F() local 73 ON_CALL(observer, in TEST_F() 75 EXPECT_CALL(observer, in TEST_F() 77 observer.allowStorage(true); in TEST_F() 81 observer.allowStorage(true); in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/resources/net_internals/ |
D | browser_bridge.js | 459 addProxySettingsObserver: function(observer, ignoreWhenUnchanged) { argument 460 this.pollableDataHelpers_.proxySettings.addObserver(observer, 475 addBadProxiesObserver: function(observer, ignoreWhenUnchanged) { argument 476 this.pollableDataHelpers_.badProxies.addObserver(observer, 486 addHostResolverInfoObserver: function(observer, ignoreWhenUnchanged) { argument 488 observer, ignoreWhenUnchanged); 497 addSocketPoolInfoObserver: function(observer, ignoreWhenUnchanged) { argument 498 this.pollableDataHelpers_.socketPoolInfo.addObserver(observer, 508 addSessionNetworkStatsObserver: function(observer, ignoreWhenUnchanged) { argument 510 observer, ignoreWhenUnchanged); [all …]
|
/external/chromium_org/device/bluetooth/ |
D | bluetooth_gatt_chromeos_unittest.cc | 483 TestObserver observer(adapter_); in TEST_F() local 485 EXPECT_EQ(0, observer.gatt_service_added_count_); in TEST_F() 486 EXPECT_EQ(0, observer.gatt_service_removed_count_); in TEST_F() 487 EXPECT_TRUE(observer.last_gatt_service_id_.empty()); in TEST_F() 488 EXPECT_FALSE(observer.last_gatt_service_uuid_.IsValid()); in TEST_F() 494 EXPECT_EQ(1, observer.gatt_service_added_count_); in TEST_F() 495 EXPECT_EQ(0, observer.gatt_service_removed_count_); in TEST_F() 496 EXPECT_FALSE(observer.last_gatt_service_id_.empty()); in TEST_F() 500 observer.last_gatt_service_uuid_); in TEST_F() 503 device->GetGattService(observer.last_gatt_service_id_); in TEST_F() [all …]
|
D | bluetooth_chromeos_unittest.cc | 334 TestObserver observer(adapter_); in DiscoverDevice() local 357 while (!observer.device_removed_count_ && in DiscoverDevice() 358 observer.last_device_address_ != address) in DiscoverDevice() 428 TestObserver observer(adapter_); in TEST_F() local 432 EXPECT_EQ(1, observer.present_changed_count_); in TEST_F() 433 EXPECT_TRUE(observer.last_present_); in TEST_F() 438 EXPECT_EQ(1, observer.device_added_count_); in TEST_F() 440 observer.last_device_address_); in TEST_F() 443 EXPECT_EQ(0, observer.powered_changed_count_); in TEST_F() 444 EXPECT_EQ(0, observer.discovering_changed_count_); in TEST_F() [all …]
|
/external/chromium_org/content/browser/media/ |
D | webrtc_internals_unittest.cc | 97 scoped_ptr<MockWebRTCInternalsProxy> observer( in TEST_F() local 99 WebRTCInternals::GetInstance()->AddObserver(observer.get()); in TEST_F() 100 WebRTCInternals::GetInstance()->RemoveObserver(observer.get()); in TEST_F() 103 EXPECT_EQ("", observer->command()); in TEST_F() 109 scoped_ptr<MockWebRTCInternalsProxy> observer( in TEST_F() local 111 WebRTCInternals::GetInstance()->AddObserver(observer.get()); in TEST_F() 114 EXPECT_EQ("addPeerConnection", observer->command()); in TEST_F() 117 EXPECT_TRUE(observer->value()->GetAsDictionary(&dict)); in TEST_F() 125 WebRTCInternals::GetInstance()->RemoveObserver(observer.get()); in TEST_F() 130 scoped_ptr<MockWebRTCInternalsProxy> observer( in TEST_F() local [all …]
|
/external/chromium_org/chrome/browser/ui/login/ |
D | login_prompt_browsertest.cc | 117 InterstitialObserver observer( in WaitForInterstitialAttach() local 176 LoginPromptBrowserTestObserver observer; in IN_PROC_BROWSER_TEST_F() local 178 observer.Register(content::Source<NavigationController>(controller)); in IN_PROC_BROWSER_TEST_F() 186 EXPECT_TRUE(observer.handlers().empty()); in IN_PROC_BROWSER_TEST_F() 198 LoginPromptBrowserTestObserver observer; in IN_PROC_BROWSER_TEST_F() local 200 observer.Register(content::Source<NavigationController>(controller)); in IN_PROC_BROWSER_TEST_F() 210 ASSERT_FALSE(observer.handlers().empty()); in IN_PROC_BROWSER_TEST_F() 214 LoginHandler* handler = *observer.handlers().begin(); in IN_PROC_BROWSER_TEST_F() 227 ASSERT_EQ(1u, observer.handlers().size()); in IN_PROC_BROWSER_TEST_F() 229 LoginHandler* handler = *observer.handlers().begin(); in IN_PROC_BROWSER_TEST_F() [all …]
|
/external/chromium_org/net/base/ |
D | net_log_unittest.cc | 251 CountingObserver observer; in TEST() local 254 EXPECT_EQ(0, observer.count()); in TEST() 255 EXPECT_EQ(NULL, observer.net_log()); in TEST() 259 net_log.AddThreadSafeObserver(&observer, NetLog::LOG_ALL_BUT_BYTES); in TEST() 260 EXPECT_EQ(&net_log, observer.net_log()); in TEST() 261 EXPECT_EQ(NetLog::LOG_ALL_BUT_BYTES, observer.log_level()); in TEST() 265 EXPECT_EQ(1, observer.count()); in TEST() 268 net_log.SetObserverLogLevel(&observer, NetLog::LOG_ALL); in TEST() 269 EXPECT_EQ(&net_log, observer.net_log()); in TEST() 270 EXPECT_EQ(NetLog::LOG_ALL, observer.log_level()); in TEST() [all …]
|
/external/chromium_org/chrome/browser/prefs/ |
D | synced_pref_change_registrar_browsertest.cc | 138 TestSyncedPrefObserver* observer, in TestPrefChangeCallback() argument 141 observer->last_seen_value = prefs->GetBoolean(path.c_str()); in TestPrefChangeCallback() 142 observer->last_update_is_from_sync = from_sync; in TestPrefChangeCallback() 143 observer->has_been_notified = true; in TestPrefChangeCallback() 150 TestSyncedPrefObserver observer = {}; in IN_PROC_BROWSER_TEST_F() local 152 base::Bind(&TestPrefChangeCallback, prefs(), &observer)); in IN_PROC_BROWSER_TEST_F() 154 EXPECT_FALSE(observer.has_been_notified); in IN_PROC_BROWSER_TEST_F() 157 EXPECT_TRUE(observer.has_been_notified); in IN_PROC_BROWSER_TEST_F() 159 EXPECT_TRUE(observer.last_update_is_from_sync); in IN_PROC_BROWSER_TEST_F() 160 EXPECT_TRUE(observer.last_seen_value); in IN_PROC_BROWSER_TEST_F() [all …]
|
/external/chromium_org/components/storage_monitor/ |
D | storage_monitor_chromeos_unittest.cc | 127 MockRemovableStorageObserver& observer() { in observer() function in storage_monitor::__anon8ccc5e900111::StorageMonitorCrosTest 279 EXPECT_EQ(1, observer().attach_calls()); in TEST_F() 280 EXPECT_EQ(0, observer().detach_calls()); in TEST_F() 282 observer().last_attached().device_id()); in TEST_F() 283 EXPECT_EQ(mount_path1.value(), observer().last_attached().location()); in TEST_F() 286 EXPECT_EQ(1, observer().attach_calls()); in TEST_F() 287 EXPECT_EQ(1, observer().detach_calls()); in TEST_F() 289 observer().last_detached().device_id()); in TEST_F() 306 EXPECT_EQ(2, observer().attach_calls()); in TEST_F() 307 EXPECT_EQ(1, observer().detach_calls()); in TEST_F() [all …]
|
D | storage_monitor_linux_unittest.cc | 235 MockRemovableStorageObserver& observer() { in observer() function in storage_monitor::__anond9febea00111::StorageMonitorLinuxTest 327 EXPECT_EQ(1, observer().attach_calls()); in TEST_F() 328 EXPECT_EQ(0, observer().detach_calls()); in TEST_F() 329 EXPECT_EQ(GetDeviceId(kDeviceDCIM2), observer().last_attached().device_id()); in TEST_F() 330 EXPECT_EQ(test_path.value(), observer().last_attached().location()); in TEST_F() 334 EXPECT_EQ(1, observer().attach_calls()); in TEST_F() 335 EXPECT_EQ(1, observer().detach_calls()); in TEST_F() 336 EXPECT_EQ(GetDeviceId(kDeviceDCIM2), observer().last_detached().device_id()); in TEST_F() 349 EXPECT_EQ(1, observer().attach_calls()); in TEST_F() 350 EXPECT_EQ(0, observer().detach_calls()); in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/chromeos/accessibility/ |
D | accessibility_manager_browsertest.cc | 440 MockAccessibilityObserver observer; in IN_PROC_BROWSER_TEST_F() local 447 EXPECT_FALSE(observer.observed()); in IN_PROC_BROWSER_TEST_F() 448 observer.reset(); in IN_PROC_BROWSER_TEST_F() 451 EXPECT_TRUE(observer.observed()); in IN_PROC_BROWSER_TEST_F() 452 EXPECT_TRUE(observer.observed_enabled()); in IN_PROC_BROWSER_TEST_F() 453 EXPECT_EQ(observer.observed_type(), in IN_PROC_BROWSER_TEST_F() 457 observer.reset(); in IN_PROC_BROWSER_TEST_F() 459 EXPECT_TRUE(observer.observed()); in IN_PROC_BROWSER_TEST_F() 460 EXPECT_FALSE(observer.observed_enabled()); in IN_PROC_BROWSER_TEST_F() 461 EXPECT_EQ(observer.observed_type(), in IN_PROC_BROWSER_TEST_F() [all …]
|
/external/chromium_org/chrome/browser/ui/cocoa/location_bar/ |
D | autocomplete_text_field_editor.mm | 78 AutocompleteTextFieldObserver* observer = [self observer]; 79 DCHECK(observer); 80 if (observer && observer->CanCopy()) { 82 observer->CopyToPasteboard(pboard); 102 AutocompleteTextFieldObserver* observer = [self observer]; 103 DCHECK(observer); 104 if (observer && observer->CanCopy()) 105 observer->CopyToPasteboard([NSPasteboard generalPasteboard]); 114 AutocompleteTextFieldObserver* observer = [self observer]; 115 DCHECK(observer); [all …]
|
/external/chromium_org/ash/wm/ |
D | session_state_animator_impl.cc | 66 ui::LayerAnimationObserver* observer) { in StartSlowCloseAnimationForWindow() argument 74 if (observer) in StartSlowCloseAnimationForWindow() 75 sequence->AddObserver(observer); in StartSlowCloseAnimationForWindow() 83 ui::LayerAnimationObserver* observer) { in StartUndoSlowCloseAnimationForWindow() argument 91 if (observer) in StartUndoSlowCloseAnimationForWindow() 92 sequence->AddObserver(observer); in StartUndoSlowCloseAnimationForWindow() 100 ui::LayerAnimationObserver* observer) { in StartFastCloseAnimationForWindow() argument 110 if (observer) in StartFastCloseAnimationForWindow() 111 sequence->AddObserver(observer); in StartFastCloseAnimationForWindow() 119 ui::LayerAnimationObserver* observer) { in StartPartialFadeAnimation() argument [all …]
|
/external/chromium_org/third_party/WebKit/Source/platform/ |
D | LifecycleContextTest.cpp | 43 template<> void observerContext(DummyContext* context, LifecycleObserver<DummyContext>* observer) in observerContext() argument 45 context->wasObservedBy(observer); in observerContext() 48 template<> void unobserverContext(DummyContext* context, LifecycleObserver<DummyContext>* observer) in unobserverContext() argument 50 context->wasUnobservedBy(observer); in unobserverContext() 79 OwnPtr<TestingObserver> observer = adoptPtr(new TestingObserver(context.get())); in TEST() local 81 EXPECT_EQ(observer->lifecycleContext(), context.get()); in TEST() 82 EXPECT_FALSE(observer->m_contextDestroyedCalled); in TEST() 85 EXPECT_EQ(observer->lifecycleContext(), static_cast<DummyContext*>(0)); in TEST() 86 EXPECT_TRUE(observer->m_contextDestroyedCalled); in TEST() 92 OwnPtr<TestingObserver> observer = adoptPtr(new TestingObserver(context.get())); in TEST() local [all …]
|
/external/chromium_org/ash/display/ |
D | display_controller_unittest.cc | 404 TestObserver observer; in TEST_F() local 406 EXPECT_EQ(1, observer.CountAndReset()); // resize and add in TEST_F() 407 EXPECT_EQ(1, observer.GetBoundsChangedCountAndReset()); in TEST_F() 408 EXPECT_EQ(1, observer.GetWorkareaChangedCountAndReset()); in TEST_F() 409 EXPECT_EQ(0, observer.GetFocusChangedCountAndReset()); in TEST_F() 410 EXPECT_EQ(0, observer.GetActivationChangedCountAndReset()); in TEST_F() 420 EXPECT_EQ(0, observer.GetFocusChangedCountAndReset()); in TEST_F() 421 EXPECT_EQ(0, observer.GetActivationChangedCountAndReset()); in TEST_F() 425 EXPECT_EQ(1, observer.CountAndReset()); in TEST_F() 426 EXPECT_EQ(1, observer.GetBoundsChangedCountAndReset()); in TEST_F() [all …]
|