Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Side by Side Diff: chrome/browser/extensions/extension_browsertest.h

Issue 475813004: Clean up NOTIFICATION_EXTENSION_PAGE_ACTION_[ COUNT | VISIBILITY ]_CHANGED (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master for CQ Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_test_notification_observer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 void ReloadExtension(const std::string extension_id); 225 void ReloadExtension(const std::string extension_id);
226 226
227 void UnloadExtension(const std::string& extension_id); 227 void UnloadExtension(const std::string& extension_id);
228 228
229 void UninstallExtension(const std::string& extension_id); 229 void UninstallExtension(const std::string& extension_id);
230 230
231 void DisableExtension(const std::string& extension_id); 231 void DisableExtension(const std::string& extension_id);
232 232
233 void EnableExtension(const std::string& extension_id); 233 void EnableExtension(const std::string& extension_id);
234 234
235 // Wait for the total number of page actions to change to |count|.
236 bool WaitForPageActionCountChangeTo(int count) {
237 return observer_->WaitForPageActionCountChangeTo(count);
238 }
239
240 // Wait for the number of visible page actions to change to |count|. 235 // Wait for the number of visible page actions to change to |count|.
241 bool WaitForPageActionVisibilityChangeTo(int count) { 236 bool WaitForPageActionVisibilityChangeTo(int count) {
242 return observer_->WaitForPageActionVisibilityChangeTo(count); 237 return observer_->WaitForPageActionVisibilityChangeTo(count);
243 } 238 }
244 239
245 // Waits until an extension is installed and loaded. Returns true if an 240 // Waits until an extension is installed and loaded. Returns true if an
246 // install happened before timeout. 241 // install happened before timeout.
247 bool WaitForExtensionInstall() { 242 bool WaitForExtensionInstall() {
248 return observer_->WaitForExtensionInstall(); 243 return observer_->WaitForExtensionInstall();
249 } 244 }
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 override_prompt_for_external_extensions_; 376 override_prompt_for_external_extensions_;
382 377
383 // The default profile to be used. 378 // The default profile to be used.
384 Profile* profile_; 379 Profile* profile_;
385 380
386 // Cache cache implementation. 381 // Cache cache implementation.
387 scoped_ptr<extensions::ExtensionCacheFake> test_extension_cache_; 382 scoped_ptr<extensions::ExtensionCacheFake> test_extension_cache_;
388 }; 383 };
389 384
390 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ 385 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_test_notification_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698