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

Unified Diff: content/browser/loader/resource_dispatcher_host_unittest.cc

Issue 1414983002: Make URLRequestTestJob accept \n terminated header lines. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments mmenke Created 5 years, 2 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: content/browser/loader/resource_dispatcher_host_unittest.cc
diff --git a/content/browser/loader/resource_dispatcher_host_unittest.cc b/content/browser/loader/resource_dispatcher_host_unittest.cc
index ca8dc4ce5082cde6b56cdd0b1b4d14ecfda223b0..e50248df76322d671ab30a5e938c3df761002c71 100644
--- a/content/browser/loader/resource_dispatcher_host_unittest.cc
+++ b/content/browser/loader/resource_dispatcher_host_unittest.cc
@@ -977,11 +977,10 @@ class ResourceDispatcherHostTest : public testing::Test,
}
// Sets a particular response for any request from now on. To switch back to
- // the default bahavior, pass an empty |headers|. |headers| should be raw-
- // formatted (NULLs instead of EOLs).
+ // the default bahavior, pass an empty |headers|. |headers| should be CR[LF]
+ // terminated.
void SetResponse(const std::string& headers, const std::string& data) {
- response_headers_ = net::HttpUtil::AssembleRawHeaders(headers.data(),
- headers.size());
+ response_headers_ = headers;
response_data_ = data;
}
void SetResponse(const std::string& headers) {
« no previous file with comments | « content/browser/appcache/appcache_update_job_unittest.cc ('k') | content/browser/loader/resource_loader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698