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

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

Issue 2260793002: Headless utility classes for making deterministic protocol handlers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing comments 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/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
new file mode 100644
index 0000000000000000000000000000000000000000..24191d3f0266db5fb41aba145fa72f4055211a1b
--- /dev/null
+++ b/headless/public/util/testing/fake_managed_dispatch_url_request_job.cc
@@ -0,0 +1,17 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "headless/public/util/testing/fake_managed_dispatch_url_request_job.h"
+
+namespace headless {
+
+void FakeManagedDispatchURLRequestJob::OnHeadersComplete() {
+ notifications_->push_back(base::StringPrintf("id: %d OK", id_));
+}
+
+void FakeManagedDispatchURLRequestJob::OnStartError(net::Error error) {
+ notifications_->push_back(base::StringPrintf("id: %d err: %d", id_, error));
+}
+
+} // namespace headless

Powered by Google App Engine
This is Rietveld 408576698