| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |