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

Unified Diff: chrome/browser/extensions/webstore_inline_installer_browsertest.cc

Issue 175263003: Add chrome.webstore API methods to allow sites to see progress of installation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master Created 6 years, 9 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/tab_helper.cc ('k') | chrome/browser/extensions/webstore_installer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/webstore_inline_installer_browsertest.cc
diff --git a/chrome/browser/extensions/webstore_inline_installer_browsertest.cc b/chrome/browser/extensions/webstore_inline_installer_browsertest.cc
index 60b6aab73f0664c08de49d19c28c6447ff8e3991..921cb61e71caa983f4c470001f9d8404c9a251d4 100644
--- a/chrome/browser/extensions/webstore_inline_installer_browsertest.cc
+++ b/chrome/browser/extensions/webstore_inline_installer_browsertest.cc
@@ -167,4 +167,33 @@ IN_PROC_BROWSER_TEST_F(WebstoreInlineInstallerTest,
ASSERT_TRUE(extension_service->IsExtensionEnabled(kTestExtensionId));
}
+class WebstoreInlineInstallerListenerTest : public WebstoreInlineInstallerTest {
+ public:
+ WebstoreInlineInstallerListenerTest() {}
+ virtual ~WebstoreInlineInstallerListenerTest() {}
+
+ protected:
+ void RunTest(const std::string& file_name) {
+ CommandLine::ForCurrentProcess()->AppendSwitchASCII(
+ switches::kAppsGalleryInstallAutoConfirmForTests, "accept");
+ ui_test_utils::NavigateToURL(browser(),
+ GenerateTestServerUrl(kAppDomain, file_name));
+ WebstoreInstallerTest::RunTest("runTest");
+ }
+};
+
+IN_PROC_BROWSER_TEST_F(WebstoreInlineInstallerListenerTest,
+ InstallStageListenerTest) {
+ RunTest("install_stage_listener.html");
+}
+
+IN_PROC_BROWSER_TEST_F(WebstoreInlineInstallerListenerTest,
+ DownloadProgressListenerTest) {
+ RunTest("download_progress_listener.html");
+}
+
+IN_PROC_BROWSER_TEST_F(WebstoreInlineInstallerListenerTest, BothListenersTest) {
+ RunTest("both_listeners.html");
+}
+
} // namespace extensions
« no previous file with comments | « chrome/browser/extensions/tab_helper.cc ('k') | chrome/browser/extensions/webstore_installer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698