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

Unified Diff: headless/public/util/testing/generic_url_request_mocks.cc

Issue 2352663003: Adds a --deterministic-fetch flag to headless_shell (Closed)
Patch Set: Changes for Sami Created 4 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 | « headless/public/util/testing/generic_url_request_mocks.h ('k') | headless/public/util/url_fetcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/public/util/testing/generic_url_request_mocks.cc
diff --git a/headless/public/util/testing/generic_url_request_mocks.cc b/headless/public/util/testing/generic_url_request_mocks.cc
index 4060950e122d886af2c6710d5145a881271251bf..08ff33d4b07e9d7664e44c94c34cdc142419e5b2 100644
--- a/headless/public/util/testing/generic_url_request_mocks.cc
+++ b/headless/public/util/testing/generic_url_request_mocks.cc
@@ -19,16 +19,18 @@ MockGenericURLRequestJobDelegate::~MockGenericURLRequestJobDelegate() {}
bool MockGenericURLRequestJobDelegate::BlockOrRewriteRequest(
const GURL& url,
+ const std::string& method,
const std::string& referrer,
GenericURLRequestJob::RewriteCallback callback) {
if (should_block_)
- callback(GenericURLRequestJob::RewriteResult::kDeny, GURL());
+ callback(GenericURLRequestJob::RewriteResult::kDeny, GURL(), method);
return should_block_;
}
const GenericURLRequestJob::HttpResponse*
MockGenericURLRequestJobDelegate::MaybeMatchResource(
const GURL& url,
+ const std::string& method,
const net::HttpRequestHeaders& request_headers) {
return nullptr;
}
« no previous file with comments | « headless/public/util/testing/generic_url_request_mocks.h ('k') | headless/public/util/url_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698