summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_browsertest.h
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-10 09:26:16 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-10 09:26:16 +0000
commit1eb175082bf16c5f7d92972f5d20277cb665d8e8 (patch)
tree3dedbb89b997b8a9fc37b001a911371468d848b8 /chrome/browser/extensions/extension_browsertest.h
parent31584b27d7956971710d50ffba70f00f5ea9433e (diff)
downloadchromium_src-1eb175082bf16c5f7d92972f5d20277cb665d8e8.zip
chromium_src-1eb175082bf16c5f7d92972f5d20277cb665d8e8.tar.gz
chromium_src-1eb175082bf16c5f7d92972f5d20277cb665d8e8.tar.bz2
Add basic tests for extension crash recovery.
Also update the test infrastructure to support the required features. TEST=browser_tests BUG=30405 Review URL: http://codereview.chromium.org/572038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38604 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_browsertest.h')
-rw-r--r--chrome/browser/extensions/extension_browsertest.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_browsertest.h b/chrome/browser/extensions/extension_browsertest.h
index 65fb889..c0534d1 100644
--- a/chrome/browser/extensions/extension_browsertest.h
+++ b/chrome/browser/extensions/extension_browsertest.h
@@ -63,6 +63,13 @@ class ExtensionBrowserTest
// error was raised.
bool WaitForExtensionInstallError();
+ // Waits until an extension is loaded.
+ void WaitForExtensionLoad();
+
+ // Wait for the specified extension to crash. Returns true if it really
+ // crashed.
+ bool WaitForExtensionCrash(const std::string& extension_id);
+
// NotificationObserver
virtual void Observe(NotificationType type,
const NotificationSource& source,