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

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: Add browser test. Created 8 years, 4 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
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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 break; 231 break;
232 case TYPE_SYNC: 232 case TYPE_SYNC:
233 command_line->AppendArg("--sync"); 233 command_line->AppendArg("--sync");
234 break; 234 break;
235 case TYPE_TCP_ECHO: 235 case TYPE_TCP_ECHO:
236 command_line->AppendArg("--tcp-echo"); 236 command_line->AppendArg("--tcp-echo");
237 break; 237 break;
238 case TYPE_UDP_ECHO: 238 case TYPE_UDP_ECHO:
239 command_line->AppendArg("--udp-echo"); 239 command_line->AppendArg("--udp-echo");
240 break; 240 break;
241 case TYPE_BASIC_AUTH_PROXY:
242 command_line->AppendArg("--basic-auth-proxy");
243 break;
241 case TYPE_GDATA: 244 case TYPE_GDATA:
242 command_line->AppendArg( 245 command_line->AppendArg(
243 std::string("--auth-token") + "=" + BaseTestServer::kGDataAuthToken); 246 std::string("--auth-token") + "=" + BaseTestServer::kGDataAuthToken);
244 break; 247 break;
245 default: 248 default:
246 NOTREACHED(); 249 NOTREACHED();
247 return false; 250 return false;
248 } 251 }
249 252
250 return true; 253 return true;
251 } 254 }
252 255
253 } // namespace net 256 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698