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

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

Issue 2494683005: Fix bug where DeterministicDispatcher CHECKed for killed jobs (Closed)
Patch Set: Created 4 years, 1 month 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/fake_managed_dispatch_url_request_job.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/public/util/testing/fake_managed_dispatch_url_request_job.cc
diff --git a/headless/public/util/testing/fake_managed_dispatch_url_request_job.cc b/headless/public/util/testing/fake_managed_dispatch_url_request_job.cc
index 24191d3f0266db5fb41aba145fa72f4055211a1b..a541cb7af6ae2ee88dcfd1617363393e74ba7de3 100644
--- a/headless/public/util/testing/fake_managed_dispatch_url_request_job.cc
+++ b/headless/public/util/testing/fake_managed_dispatch_url_request_job.cc
@@ -4,6 +4,8 @@
#include "headless/public/util/testing/fake_managed_dispatch_url_request_job.h"
+#include "headless/public/util/url_request_dispatcher.h"
+
namespace headless {
void FakeManagedDispatchURLRequestJob::OnHeadersComplete() {
@@ -14,4 +16,8 @@ void FakeManagedDispatchURLRequestJob::OnStartError(net::Error error) {
notifications_->push_back(base::StringPrintf("id: %d err: %d", id_, error));
}
+void FakeManagedDispatchURLRequestJob::Kill() {
+ url_request_dispatcher_->JobKilled(this);
+}
+
} // namespace headless
« no previous file with comments | « headless/public/util/testing/fake_managed_dispatch_url_request_job.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698