| OLD | NEW |
| 1 // Copyright 2013 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/spawned_test_server/base_test_server.h" | 5 #include "net/test/spawned_test_server/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" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 NOTREACHED(); | 52 NOTREACHED(); |
| 53 return ""; | 53 return ""; |
| 54 } | 54 } |
| 55 } | 55 } |
| 56 | 56 |
| 57 void GetKeyExchangesList(int key_exchange, base::ListValue* values) { | 57 void GetKeyExchangesList(int key_exchange, base::ListValue* values) { |
| 58 if (key_exchange & BaseTestServer::SSLOptions::KEY_EXCHANGE_RSA) | 58 if (key_exchange & BaseTestServer::SSLOptions::KEY_EXCHANGE_RSA) |
| 59 values->Append(new base::StringValue("rsa")); | 59 values->Append(new base::StringValue("rsa")); |
| 60 if (key_exchange & BaseTestServer::SSLOptions::KEY_EXCHANGE_DHE_RSA) | 60 if (key_exchange & BaseTestServer::SSLOptions::KEY_EXCHANGE_DHE_RSA) |
| 61 values->Append(new base::StringValue("dhe_rsa")); | 61 values->Append(new base::StringValue("dhe_rsa")); |
| 62 if (key_exchange & BaseTestServer::SSLOptions::KEY_EXCHANGE_ECDHE_RSA) |
| 63 values->Append(new base::StringValue("ecdhe_rsa")); |
| 62 } | 64 } |
| 63 | 65 |
| 64 void GetCiphersList(int cipher, base::ListValue* values) { | 66 void GetCiphersList(int cipher, base::ListValue* values) { |
| 65 if (cipher & BaseTestServer::SSLOptions::BULK_CIPHER_RC4) | 67 if (cipher & BaseTestServer::SSLOptions::BULK_CIPHER_RC4) |
| 66 values->Append(new base::StringValue("rc4")); | 68 values->Append(new base::StringValue("rc4")); |
| 67 if (cipher & BaseTestServer::SSLOptions::BULK_CIPHER_AES128) | 69 if (cipher & BaseTestServer::SSLOptions::BULK_CIPHER_AES128) |
| 68 values->Append(new base::StringValue("aes128")); | 70 values->Append(new base::StringValue("aes128")); |
| 69 if (cipher & BaseTestServer::SSLOptions::BULK_CIPHER_AES256) | 71 if (cipher & BaseTestServer::SSLOptions::BULK_CIPHER_AES256) |
| 70 values->Append(new base::StringValue("aes256")); | 72 values->Append(new base::StringValue("aes256")); |
| 71 if (cipher & BaseTestServer::SSLOptions::BULK_CIPHER_3DES) | 73 if (cipher & BaseTestServer::SSLOptions::BULK_CIPHER_3DES) |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 | 494 |
| 493 return GenerateAdditionalArguments(arguments); | 495 return GenerateAdditionalArguments(arguments); |
| 494 } | 496 } |
| 495 | 497 |
| 496 bool BaseTestServer::GenerateAdditionalArguments( | 498 bool BaseTestServer::GenerateAdditionalArguments( |
| 497 base::DictionaryValue* arguments) const { | 499 base::DictionaryValue* arguments) const { |
| 498 return true; | 500 return true; |
| 499 } | 501 } |
| 500 | 502 |
| 501 } // namespace net | 503 } // namespace net |
| OLD | NEW |