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

Side by Side Diff: net/url_request/url_request_test_util.cc

Issue 12463021: Stop sending Accept-Charset HTTP header. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comment Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/url_request/url_request_test_util.h" 5 #include "net/url_request/url_request_test_util.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/threading/thread.h" 10 #include "base/threading/thread.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 context_storage_.set_cookie_store(new CookieMonster(NULL, NULL)); 117 context_storage_.set_cookie_store(new CookieMonster(NULL, NULL));
118 // In-memory origin bound cert service. 118 // In-memory origin bound cert service.
119 if (!server_bound_cert_service()) { 119 if (!server_bound_cert_service()) {
120 context_storage_.set_server_bound_cert_service( 120 context_storage_.set_server_bound_cert_service(
121 new ServerBoundCertService( 121 new ServerBoundCertService(
122 new DefaultServerBoundCertStore(NULL), 122 new DefaultServerBoundCertStore(NULL),
123 base::WorkerPool::GetTaskRunner(true))); 123 base::WorkerPool::GetTaskRunner(true)));
124 } 124 }
125 if (!http_user_agent_settings()) { 125 if (!http_user_agent_settings()) {
126 context_storage_.set_http_user_agent_settings( 126 context_storage_.set_http_user_agent_settings(
127 new StaticHttpUserAgentSettings( 127 new StaticHttpUserAgentSettings("en-us,fr", EmptyString()));
128 "en-us,fr", "iso-8859-1,*,utf-8", EmptyString()));
129 } 128 }
130 if (!job_factory()) 129 if (!job_factory())
131 context_storage_.set_job_factory(new URLRequestJobFactoryImpl); 130 context_storage_.set_job_factory(new URLRequestJobFactoryImpl);
132 } 131 }
133 132
134 TestURLRequest::TestURLRequest(const GURL& url, 133 TestURLRequest::TestURLRequest(const GURL& url,
135 Delegate* delegate, 134 Delegate* delegate,
136 TestURLRequestContext* context) 135 TestURLRequestContext* context)
137 : URLRequest(url, delegate, context) { 136 : URLRequest(url, delegate, context) {
138 } 137 }
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 URLRequestJob* job = main_intercept_job_; 585 URLRequestJob* job = main_intercept_job_;
587 main_intercept_job_ = NULL; 586 main_intercept_job_ = NULL;
588 return job; 587 return job;
589 } 588 }
590 589
591 void TestJobInterceptor::set_main_intercept_job(URLRequestJob* job) { 590 void TestJobInterceptor::set_main_intercept_job(URLRequestJob* job) {
592 main_intercept_job_ = job; 591 main_intercept_job_ = job;
593 } 592 }
594 593
595 } // namespace net 594 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698