Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1890)

Unified Diff: chrome/browser/extensions/extension_browsertest.h

Issue 23874006: Add a function to send scripts from a browsertest to an extension's background page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add browsertest_util.cc to other binaries to fix link errors Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_browsertest.h
diff --git a/chrome/browser/extensions/extension_browsertest.h b/chrome/browser/extensions/extension_browsertest.h
index 3c482938c1b03d979be694165960402448527881..967f10d510543c2ce2e346fd743d704e12db7fc0 100644
--- a/chrome/browser/extensions/extension_browsertest.h
+++ b/chrome/browser/extensions/extension_browsertest.h
@@ -230,6 +230,12 @@ class ExtensionBrowserTest : virtual public InProcessBrowserTest,
const std::string& path,
int expected_hosts);
+ // Returns
+ // extensions::browsertest_util::ExecuteScriptInBackgroundPage(profile(),
+ // extension_id, script).
+ std::string ExecuteScriptInBackgroundPage(const std::string& extension_id,
+ const std::string& script);
+
// content::NotificationObserver
virtual void Observe(int type,
const content::NotificationSource& source,

Powered by Google App Engine
This is Rietveld 408576698