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

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

Issue 2655823002: Include referrer chain with inline install requests. (Closed)
Patch Set: Add missing comment. Created 3 years, 11 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/webstore_installer_test.cc
diff --git a/chrome/browser/extensions/webstore_installer_test.cc b/chrome/browser/extensions/webstore_installer_test.cc
index 1cd03980c2267557a2b8cdb6050e2d703143fad0..967a5254d336d3f7fdc55ec4503cc3769a24152b 100644
--- a/chrome/browser/extensions/webstore_installer_test.cc
+++ b/chrome/browser/extensions/webstore_installer_test.cc
@@ -37,6 +37,8 @@ using extensions::WebstoreInlineInstaller;
using extensions::WebstoreInlineInstallerFactory;
using extensions::WebstoreStandaloneInstaller;
+using net::test_server::HttpRequest;
+
WebstoreInstallerTest::WebstoreInstallerTest(
const std::string& webstore_domain,
const std::string& test_data_path,
@@ -54,6 +56,9 @@ WebstoreInstallerTest::~WebstoreInstallerTest() {}
void WebstoreInstallerTest::SetUpCommandLine(base::CommandLine* command_line) {
ExtensionBrowserTest::SetUpCommandLine(command_line);
+
+ embedded_test_server()->RegisterRequestMonitor(base::Bind(
+ &WebstoreInstallerTest::ProcessServerRequest, base::Unretained(this)));
// We start the test server now instead of in
// SetUpInProcessBrowserTestFixture so that we can get its port number.
ASSERT_TRUE(embedded_test_server()->Start());
@@ -137,6 +142,8 @@ void WebstoreInstallerTest::RunTestAsync(
ExecuteJavaScriptWithUserGestureForTests(base::UTF8ToUTF16(script));
}
+void WebstoreInstallerTest::ProcessServerRequest(const HttpRequest& request) {}
+
void WebstoreInstallerTest::AutoAcceptInstall() {
install_auto_confirm_.reset(); // Destroy any old override first.
install_auto_confirm_.reset(new extensions::ScopedTestDialogAutoConfirm(
« no previous file with comments | « chrome/browser/extensions/webstore_installer_test.h ('k') | chrome/browser/extensions/webstore_standalone_installer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698