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

Unified Diff: chrome/browser/policy/cloud/test_request_interceptor.h

Issue 2705213002: Show different error message if ARC is disabled. (Closed)
Patch Set: Rebase Created 3 years, 9 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/policy/cloud/test_request_interceptor.h
diff --git a/chrome/browser/policy/cloud/test_request_interceptor.h b/chrome/browser/policy/cloud/test_request_interceptor.h
index 17d47e50572c1aaaaa7b47efeba2fd8c4684fbd7..952a8bcd293a0521a63bfcf8e169432b53f03619 100644
--- a/chrome/browser/policy/cloud/test_request_interceptor.h
+++ b/chrome/browser/policy/cloud/test_request_interceptor.h
@@ -60,6 +60,10 @@ class TestRequestInterceptor {
// Returns a JobCallback that will fail with HTTP 400 Bad Request.
static JobCallback BadRequestJob();
+ // Returns a JobCallback that will fail with the specified HTTP error (e.g.
+ // "404 Not Found").
+ static JobCallback HttpErrorJob(std::string error);
+
// Returns a JobCallback that will process a policy register request that
// should succeed. The request parameters are validated, and an appropriate
// response is sent back.

Powered by Google App Engine
This is Rietveld 408576698