| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |