From 1eb175082bf16c5f7d92972f5d20277cb665d8e8 Mon Sep 17 00:00:00 2001 From: "phajdan.jr@chromium.org" Date: Wed, 10 Feb 2010 09:26:16 +0000 Subject: 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 --- chrome/browser/extensions/extension_browsertest.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'chrome/browser/extensions/extension_browsertest.h') 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, -- cgit v1.1