diff options
Diffstat (limited to 'chrome/browser/extensions/extension_apitest.h')
-rw-r--r-- | chrome/browser/extensions/extension_apitest.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_apitest.h b/chrome/browser/extensions/extension_apitest.h index 3e2c13c..1c20bab 100644 --- a/chrome/browser/extensions/extension_apitest.h +++ b/chrome/browser/extensions/extension_apitest.h @@ -39,6 +39,8 @@ class ExtensionApiTest : public ExtensionBrowserTest { // succeeded or failed. Returns true if the test succeeded, false otherwise. bool GetNextResult(); + void RestrictToProfile(Profile* profile) { profile_restriction_ = profile; } + const std::string& message() { return message_; } private: @@ -54,6 +56,9 @@ class ExtensionApiTest : public ExtensionBrowserTest { // If it failed, what was the error message? std::deque<std::string> messages_; std::string message_; + + // If non-NULL, we will listen to events from this profile only. + Profile* profile_restriction_; }; // Load |extension_name| and wait for pass / fail notification. |