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