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

Side by Side Diff: net/test/local_test_server.cc

Issue 10854139: Use HttpAuthController in SocketStream (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebased and Skipped added browser test on chromeos Created 8 years, 3 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
« no previous file with comments | « net/test/base_test_server.h ('k') | net/tools/testserver/testserver.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/test/local_test_server.h" 5 #include "net/test/local_test_server.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/json/json_reader.h" 8 #include "base/json/json_reader.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 break; 236 break;
237 case TYPE_SYNC: 237 case TYPE_SYNC:
238 command_line->AppendArg("--sync"); 238 command_line->AppendArg("--sync");
239 break; 239 break;
240 case TYPE_TCP_ECHO: 240 case TYPE_TCP_ECHO:
241 command_line->AppendArg("--tcp-echo"); 241 command_line->AppendArg("--tcp-echo");
242 break; 242 break;
243 case TYPE_UDP_ECHO: 243 case TYPE_UDP_ECHO:
244 command_line->AppendArg("--udp-echo"); 244 command_line->AppendArg("--udp-echo");
245 break; 245 break;
246 case TYPE_BASIC_AUTH_PROXY:
247 command_line->AppendArg("--basic-auth-proxy");
248 break;
246 case TYPE_GDATA: 249 case TYPE_GDATA:
247 command_line->AppendArg( 250 command_line->AppendArg(
248 std::string("--auth-token") + "=" + BaseTestServer::kGDataAuthToken); 251 std::string("--auth-token") + "=" + BaseTestServer::kGDataAuthToken);
249 break; 252 break;
250 default: 253 default:
251 NOTREACHED(); 254 NOTREACHED();
252 return false; 255 return false;
253 } 256 }
254 257
255 return true; 258 return true;
256 } 259 }
257 260
258 } // namespace net 261 } // namespace net
OLDNEW
« no previous file with comments | « net/test/base_test_server.h ('k') | net/tools/testserver/testserver.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698