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

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

Issue 2248283008: Fix recursion bug in blocking a fetch and add a test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unintentional change Created 4 years, 4 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: headless/public/util/testing/generic_url_request_mocks.h
diff --git a/headless/public/util/testing/generic_url_request_mocks.h b/headless/public/util/testing/generic_url_request_mocks.h
index 922b2f91ef3ff4b82542f3acc7ec3699524e23f6..0af68d08f242326820410b3c9a2561a236f8672e 100644
--- a/headless/public/util/testing/generic_url_request_mocks.h
+++ b/headless/public/util/testing/generic_url_request_mocks.h
@@ -44,7 +44,11 @@ class MockGenericURLRequestJobDelegate : public GenericURLRequestJob::Delegate {
const std::string& mime_type,
int http_response_code) override;
+ void SetShouldBlock(bool should_block) { should_block_ = should_block; }
+
private:
+ bool should_block_;
+
DISALLOW_COPY_AND_ASSIGN(MockGenericURLRequestJobDelegate);
};
« no previous file with comments | « headless/public/util/managed_dispatch_url_request_job.h ('k') | headless/public/util/testing/generic_url_request_mocks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698