Home
last modified time | relevance | path

Searched refs:mock_observer (Results 1 – 15 of 15) sorted by relevance

/external/chromium_org/chrome/browser/ui/search/
Dsearch_model_unittest.cc72 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/
Dautomation_tab_helper_browsertest.cc115 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/
Dcontent_settings_observer_browsertest.cc172 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/
Dprofile_manager_unittest.cc168 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/
Djson_pref_store_unittest.cc190 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/
Dprofile_manager_unittest.cc117 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/
Dautofill_helper.cc80 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/
Dbrowser_state_monitor_unittest.cc53 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/
Dcontent_settings_policy_provider_unittest.cc114 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()
Dcontent_settings_default_provider_unittest.cc122 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()
Dcontent_settings_pref_provider_unittest.cc111 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()
Dtab_specific_content_settings_unittest.cc350 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/
Dmock_ie_event_sink_actions.h289 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/
Dgeolocation_provider_unittest.cc238 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/
Dbrowser_browsertest.cc1911 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()