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

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

Issue 11971025: [sync] Divorce python sync test server chromiumsync.py from testserver.py (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 11 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
« no previous file with comments | « net/test/base_test_server.h ('k') | net/test/local_sync_test_server.h » ('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 2013 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/base_test_server.h" 5 #include "net/test/base_test_server.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/base64.h" 10 #include "base/base64.h"
11 #include "base/file_util.h" 11 #include "base/file_util.h"
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 DCHECK(started_); 140 DCHECK(started_);
141 DCHECK(server_data_.get()); 141 DCHECK(server_data_.get());
142 return *server_data_; 142 return *server_data_;
143 } 143 }
144 144
145 std::string BaseTestServer::GetScheme() const { 145 std::string BaseTestServer::GetScheme() const {
146 switch (type_) { 146 switch (type_) {
147 case TYPE_FTP: 147 case TYPE_FTP:
148 return "ftp"; 148 return "ftp";
149 case TYPE_HTTP: 149 case TYPE_HTTP:
150 case TYPE_SYNC:
151 return "http"; 150 return "http";
152 case TYPE_HTTPS: 151 case TYPE_HTTPS:
153 return "https"; 152 return "https";
154 case TYPE_WS: 153 case TYPE_WS:
155 return "ws"; 154 return "ws";
156 case TYPE_WSS: 155 case TYPE_WSS:
157 return "wss"; 156 return "wss";
158 case TYPE_TCP_ECHO: 157 case TYPE_TCP_ECHO:
159 case TYPE_UDP_ECHO: 158 case TYPE_UDP_ECHO:
160 default: 159 default:
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 390
392 return GenerateAdditionalArguments(arguments); 391 return GenerateAdditionalArguments(arguments);
393 } 392 }
394 393
395 bool BaseTestServer::GenerateAdditionalArguments( 394 bool BaseTestServer::GenerateAdditionalArguments(
396 base::DictionaryValue* arguments) const { 395 base::DictionaryValue* arguments) const {
397 return true; 396 return true;
398 } 397 }
399 398
400 } // namespace net 399 } // namespace net
OLDNEW
« no previous file with comments | « net/test/base_test_server.h ('k') | net/test/local_sync_test_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698