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

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

Issue 3353015: Implement gallery install API (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: erik comments Created 10 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
« no previous file with comments | « chrome/browser/extensions/crx_installer.cc ('k') | chrome/browser/extensions/extension_apitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_apitest.h
diff --git a/chrome/browser/extensions/extension_apitest.h b/chrome/browser/extensions/extension_apitest.h
index dd56a10585b14b022407161e4e5a3245cbf10221..638131ccabf348a39b3c69fe2e66bd3ea8349fcb 100644
--- a/chrome/browser/extensions/extension_apitest.h
+++ b/chrome/browser/extensions/extension_apitest.h
@@ -69,11 +69,17 @@ class ExtensionApiTest : public ExtensionBrowserTest {
// |extension_name| is a directory in "test/data/extensions/api_test".
bool RunExtensionTest(const char* extension_name);
- // Load |extension_name|, load page at path |subtest_page| under the
- // extension, and wait for pass / fail notification. |extension_name|
- // is a directory in "test/data/extensions/api_test".
+ // If not empty, Load |extension_name|, load |page_url| and wait for pass /
+ // fail notification from the extension API on the page. Note that if
+ // |page_url| is not a valid url, it will be treated as a resource within
+ // the extension. |extension_name| is a directory in
+ // "test/data/extensions/api_test".
bool RunExtensionSubtest(const char* extension_name,
- const std::string& subtest_page);
+ const std::string& page_url);
+
+ // Load |page_url| and wait for pass / fail notification from the extension
+ // API on the page.
+ bool RunPageTest(const std::string& page_url);
// Test that exactly one extension loaded. If so, return a pointer to
// the extension. If not, return NULL and set message_.
« no previous file with comments | « chrome/browser/extensions/crx_installer.cc ('k') | chrome/browser/extensions/extension_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698