/external/chromium_org/chrome/browser/ui/search/ |
D | search_model_unittest.cc | 72 MockSearchModelObserver mock_observer; member in SearchModelTest 83 model->AddObserver(&mock_observer); in SetUp() 87 model->RemoveObserver(&mock_observer); in TearDown() 92 mock_observer.VerifyNotificationCount(0); in TEST_F() 99 mock_observer.VerifySearchModelStates(expected_old_state, expected_new_state); in TEST_F() 100 mock_observer.VerifyNotificationCount(1); in TEST_F() 106 mock_observer.VerifySearchModelStates(expected_old_state, expected_new_state); in TEST_F() 107 mock_observer.VerifyNotificationCount(2); in TEST_F() 113 mock_observer.VerifyNotificationCount(2); in TEST_F() 117 mock_observer.VerifyNotificationCount(0); in TEST_F() [all …]
|
/external/chromium/chrome/browser/automation/ |
D | automation_tab_helper_browsertest.cc | 115 MockTabEventObserver mock_observer(tab_helper()); in IN_PROC_BROWSER_TEST_F() local 117 ExpectClientRedirectAndBreak(&mock_observer, &mock_notification_observer); in IN_PROC_BROWSER_TEST_F() 129 MockTabEventObserver mock_observer(tab_helper()); in IN_PROC_BROWSER_TEST_F() local 132 EXPECT_CALL(mock_observer, OnFirstPendingLoad(_)).Times(0); in IN_PROC_BROWSER_TEST_F() 143 MockTabEventObserver mock_observer(tab_helper()); in IN_PROC_BROWSER_TEST_F() local 145 ExpectClientRedirectAndBreak(&mock_observer, &mock_notification_observer); in IN_PROC_BROWSER_TEST_F() 157 MockTabEventObserver mock_observer(tab_helper()); in IN_PROC_BROWSER_TEST_F() local 159 ExpectClientRedirectAndBreak(&mock_observer, &mock_notification_observer); in IN_PROC_BROWSER_TEST_F() 167 MockTabEventObserver mock_observer(tab_helper()); in IN_PROC_BROWSER_TEST_F() local 170 EXPECT_CALL(mock_observer, OnFirstPendingLoad(_)); in IN_PROC_BROWSER_TEST_F() [all …]
|
/external/chromium_org/chrome/renderer/ |
D | content_settings_observer_browsertest.cc | 172 MockContentSettingsObserver mock_observer(view_); in TEST_F() local 190 EXPECT_CALL(mock_observer, in TEST_F() 193 true, mock_observer.image_url_)); in TEST_F() 201 ContentSettingsPattern::FromString(mock_observer.image_origin_), in TEST_F() 207 mock_observer, in TEST_F() 210 mock_observer.image_url_)); in TEST_F() 215 MockContentSettingsObserver mock_observer(view_); in TEST_F() local 234 mock_observer, in TEST_F() 237 mock_observer.image_url_)); in TEST_F() 245 ContentSettingsPattern::FromString(mock_observer.image_origin_), in TEST_F() [all …]
|
/external/chromium/chrome/browser/profiles/ |
D | profile_manager_unittest.cc | 168 MockObserver mock_observer; in TEST_F() local 169 EXPECT_CALL(mock_observer, OnProfileCreated(testing::NotNull())).Times(1); in TEST_F() 171 profile_manager_->CreateProfileAsync(dest_path, &mock_observer); in TEST_F() 208 MockObserver mock_observer; in TEST_F() local 209 EXPECT_CALL(mock_observer, OnProfileCreated(testing::NotNull())).Times(2); in TEST_F() 211 profile_manager_->CreateProfileAsync(dest_path1, &mock_observer); in TEST_F() 212 profile_manager_->CreateProfileAsync(dest_path2, &mock_observer); in TEST_F()
|
/external/chromium_org/base/prefs/ |
D | json_pref_store_unittest.cc | 190 MockPrefStoreObserver mock_observer; in TEST_F() local 191 pref_store->AddObserver(&mock_observer); in TEST_F() 196 EXPECT_CALL(mock_observer, OnInitializationCompleted(true)).Times(1); in TEST_F() 200 pref_store->RemoveObserver(&mock_observer); in TEST_F() 252 MockPrefStoreObserver mock_observer; in TEST_F() local 253 pref_store->AddObserver(&mock_observer); in TEST_F() 258 EXPECT_CALL(mock_observer, OnInitializationCompleted(true)).Times(1); in TEST_F() 262 pref_store->RemoveObserver(&mock_observer); in TEST_F()
|
/external/chromium_org/chrome/browser/profiles/ |
D | profile_manager_unittest.cc | 117 MockObserver* mock_observer) { in CreateProfileAsync() argument 121 base::Unretained(mock_observer)), in CreateProfileAsync() 242 MockObserver mock_observer; in TEST_F() local 243 EXPECT_CALL(mock_observer, OnProfileCreated( in TEST_F() 247 "New Profile", &mock_observer); in TEST_F() 284 MockObserver mock_observer; in TEST_F() local 285 EXPECT_CALL(mock_observer, OnProfileCreated( in TEST_F() 290 CreateProfileAsync(profile_manager, profile_name1, &mock_observer); in TEST_F() 291 CreateProfileAsync(profile_manager, profile_name2, &mock_observer); in TEST_F() 738 MockObserver mock_observer; in TEST_F() local [all …]
|
/external/chromium_org/chrome/browser/sync/test/integration/ |
D | autofill_helper.cc | 80 MockWebDataServiceObserver mock_observer; in RemoveKeyDontBlockForSync() local 81 EXPECT_CALL(mock_observer, AutofillEntriesChanged(_)) in RemoveKeyDontBlockForSync() 90 RunOnDBThreadAndBlock(Bind(add_observer_func, wds, &mock_observer)); in RemoveKeyDontBlockForSync() 98 RunOnDBThreadAndBlock(Bind(remove_observer_func, wds, &mock_observer)); in RemoveKeyDontBlockForSync() 189 MockWebDataServiceObserver mock_observer; in AddKeys() local 190 EXPECT_CALL(mock_observer, AutofillEntriesChanged(_)) in AddKeys() 198 RunOnDBThreadAndBlock(Bind(add_observer_func, wds, &mock_observer)); in AddKeys() 207 RunOnDBThreadAndBlock(Bind(remove_observer_func, wds, &mock_observer)); in AddKeys()
|
/external/chromium_org/chrome/browser/chromeos/input_method/ |
D | browser_state_monitor_unittest.cc | 53 MockObserver mock_observer; in TEST() local 54 BrowserStateMonitor monitor(mock_observer.AsCallback()); in TEST() 57 EXPECT_EQ(1, mock_observer.update_state_count()); in TEST() 58 EXPECT_EQ(InputMethodManager::STATE_LOGIN_SCREEN, mock_observer.state()); in TEST()
|
/external/chromium_org/chrome/browser/content_settings/ |
D | content_settings_policy_provider_unittest.cc | 114 MockObserver mock_observer; in TEST_F() local 115 EXPECT_CALL(mock_observer, in TEST_F() 120 provider.AddObserver(&mock_observer); in TEST_F() 125 ::testing::Mock::VerifyAndClearExpectations(&mock_observer); in TEST_F() 126 EXPECT_CALL(mock_observer, in TEST_F()
|
D | content_settings_default_provider_unittest.cc | 122 content_settings::MockObserver mock_observer; in TEST_F() local 123 EXPECT_CALL(mock_observer, in TEST_F() 126 provider_.AddObserver(&mock_observer); in TEST_F() 134 EXPECT_CALL(mock_observer, in TEST_F()
|
D | content_settings_pref_provider_unittest.cc | 111 content_settings::MockObserver mock_observer; in TEST_F() local 112 EXPECT_CALL(mock_observer, in TEST_F() 118 pref_content_settings_provider.AddObserver(&mock_observer); in TEST_F()
|
D | tab_specific_content_settings_unittest.cc | 350 MockSiteDataObserver mock_observer(content_settings); in TEST_F() local 351 EXPECT_CALL(mock_observer, OnSiteDataAccessed()).Times(6); in TEST_F()
|
/external/chromium_org/chrome_frame/test/ |
D | mock_ie_event_sink_actions.h | 289 ACTION_P(WatchWindowProcess, mock_observer) { in ACTION_P() argument 290 mock_observer->WatchProcessForHwnd(arg0); in ACTION_P() 293 ACTION_P2(WatchBrowserProcess, mock_observer, mock) { in ACTION_P2() argument 294 AccInWindow<void>(WatchWindowProcess(mock_observer), in ACTION_P2() 298 ACTION_P2(WatchRendererProcess, mock_observer, mock) { in ACTION_P2() argument 299 AccInWindow<void>(WatchWindowProcess(mock_observer), in ACTION_P2()
|
/external/chromium_org/content/browser/geolocation/ |
D | geolocation_provider_unittest.cc | 238 MockGeolocationObserver mock_observer; in TEST_F() local 239 EXPECT_CALL(mock_observer, OnLocationUpdate(GeopositionEq(position))); in TEST_F() 242 base::Unretained(&mock_observer)); in TEST_F()
|
/external/chromium_org/chrome/browser/ui/ |
D | browser_browsertest.cc | 1911 MockWebContentsObserver mock_observer(web_contents); in IN_PROC_BROWSER_TEST_F() local 1917 EXPECT_TRUE(mock_observer.got_user_gesture()); in IN_PROC_BROWSER_TEST_F() 1919 mock_observer.set_got_user_gesture(false); in IN_PROC_BROWSER_TEST_F() 1921 EXPECT_TRUE(mock_observer.got_user_gesture()); in IN_PROC_BROWSER_TEST_F()
|