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

Side by Side Diff: net/test/remote_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/local_test_server.cc ('k') | net/tools/testserver/OWNERS » ('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/remote_test_server.h" 5 #include "net/test/remote_test_server.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/base_paths.h" 9 #include "base/base_paths.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
11 #include "base/file_util.h" 11 #include "base/file_util.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 std::string GetServerTypeString(BaseTestServer::Type type) { 45 std::string GetServerTypeString(BaseTestServer::Type type) {
46 switch (type) { 46 switch (type) {
47 case BaseTestServer::TYPE_FTP: 47 case BaseTestServer::TYPE_FTP:
48 return "ftp"; 48 return "ftp";
49 case BaseTestServer::TYPE_HTTP: 49 case BaseTestServer::TYPE_HTTP:
50 case BaseTestServer::TYPE_HTTPS: 50 case BaseTestServer::TYPE_HTTPS:
51 return "http"; 51 return "http";
52 case BaseTestServer::TYPE_WS: 52 case BaseTestServer::TYPE_WS:
53 case BaseTestServer::TYPE_WSS: 53 case BaseTestServer::TYPE_WSS:
54 return "ws"; 54 return "ws";
55 case BaseTestServer::TYPE_SYNC:
56 return "sync";
57 case BaseTestServer::TYPE_TCP_ECHO: 55 case BaseTestServer::TYPE_TCP_ECHO:
58 return "tcpecho"; 56 return "tcpecho";
59 case BaseTestServer::TYPE_UDP_ECHO: 57 case BaseTestServer::TYPE_UDP_ECHO:
60 return "udpecho"; 58 return "udpecho";
61 default: 59 default:
62 NOTREACHED(); 60 NOTREACHED();
63 } 61 }
64 return std::string(); 62 return std::string();
65 } 63 }
66 64
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 185
188 SetResourcePath(document_root, FilePath().AppendASCII("net") 186 SetResourcePath(document_root, FilePath().AppendASCII("net")
189 .AppendASCII("data") 187 .AppendASCII("data")
190 .AppendASCII("ssl") 188 .AppendASCII("ssl")
191 .AppendASCII("certificates")); 189 .AppendASCII("certificates"));
192 return true; 190 return true;
193 } 191 }
194 192
195 } // namespace net 193 } // namespace net
196 194
OLDNEW
« no previous file with comments | « net/test/local_test_server.cc ('k') | net/tools/testserver/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698