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

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

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.h
diff --git a/chrome/browser/extensions/webstore_installer_test.h b/chrome/browser/extensions/webstore_installer_test.h
index 4c67ef2bd7a24bbe99b9d61a9de8a22f82c5bb98..5f6f98a156fa3a35b5815e481b337daae42ecc08 100644
--- a/chrome/browser/extensions/webstore_installer_test.h
+++ b/chrome/browser/extensions/webstore_installer_test.h
@@ -21,6 +21,12 @@ namespace contents {
class WebContents;
}
+namespace net {
+namespace test_server {
+struct HttpRequest;
+}
+}
+
class WebstoreInstallerTest : public ExtensionBrowserTest {
public:
WebstoreInstallerTest(const std::string& webstore_domain,
@@ -54,6 +60,10 @@ class WebstoreInstallerTest : public ExtensionBrowserTest {
// Runs a test without waiting for any results from the renderer.
void RunTestAsync(const std::string& test_function_name);
+ // Can be overridden to inspect requests to the embedded test server.
+ virtual void ProcessServerRequest(
+ const net::test_server::HttpRequest& request);
+
// Configures command line switches to simulate a user accepting the install
// prompt.
void AutoAcceptInstall();

Powered by Google App Engine
This is Rietveld 408576698