summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_browsertest.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/extension_browsertest.h')
-rw-r--r--chrome/browser/extensions/extension_browsertest.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_browsertest.h b/chrome/browser/extensions/extension_browsertest.h
index 5e2b882..938ffe1 100644
--- a/chrome/browser/extensions/extension_browsertest.h
+++ b/chrome/browser/extensions/extension_browsertest.h
@@ -48,6 +48,14 @@ class ExtensionBrowserTest
// Wait for the number of visible page actions to change to |count|.
bool WaitForPageActionVisibilityChangeTo(int count);
+ // Waits until an extension is installed and loaded. Returns true if an
+ // install happened before timeout.
+ bool WaitForExtensionInstall();
+
+ // Wait for an extension install error to be raised. Returns true if an
+ // error was raised.
+ bool WaitForExtensionInstallError();
+
// NotificationObserver
virtual void Observe(NotificationType type,
const NotificationSource& source,
@@ -57,6 +65,7 @@ class ExtensionBrowserTest
bool installed_;
FilePath test_data_dir_;
std::string last_loaded_extension_id_;
+ int extension_installs_observed_;
private:
bool InstallOrUpdateExtension(const std::string& id, const FilePath& path,