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

Unified Diff: chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc

Issue 48713008: [sync] Allow FakeURLFetcher to return arbitrary HTTP response codes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 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
Index: chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc
diff --git a/chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc b/chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc
index acfd274fa321738f73964a85817750b16c9ed271..f087ace6287d4fd732cc0a992b1f154a44111277 100644
--- a/chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc
+++ b/chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc
@@ -24,6 +24,7 @@
#include "chrome/browser/policy/external_data_fetcher.h"
#include "chrome/browser/policy/policy_map.h"
#include "chrome/browser/policy/policy_types.h"
+#include "net/http/http_status_code.h"
#include "net/url_request/test_url_fetcher_factory.h"
#include "net/url_request/url_fetcher.h"
#include "net/url_request/url_fetcher_delegate.h"
@@ -237,7 +238,10 @@ void CloudExternalDataManagerBaseTest::SetFakeResponse(
const std::string& url,
const std::string& response_data,
bool success) {
achuithb 2013/11/01 20:57:04 Any reason not to fix this param instead?
Raghu Simha 2013/11/01 21:55:16 I only fixed calls to FakeURLFetcherFactory::SetFa
- fetcher_factory_.SetFakeResponse(GURL(url), response_data, success);
+ fetcher_factory_.SetFakeResponse(GURL(url),
+ response_data,
+ success ? net::HTTP_OK :
+ net::HTTP_INTERNAL_SERVER_ERROR);
}
// Verifies that when no valid external data reference has been set for a

Powered by Google App Engine
This is Rietveld 408576698