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

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

Issue 2664753002: Remove base::StringValue (Closed)
Patch Set: Rebase Created 3 years, 9 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
OLDNEW
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 <stdint.h> 7 #include <stdint.h>
8 #include <limits> 8 #include <limits>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 if (cipher & BaseTestServer::SSLOptions::BULK_CIPHER_AES128) 77 if (cipher & BaseTestServer::SSLOptions::BULK_CIPHER_AES128)
78 values->AppendString("aes128"); 78 values->AppendString("aes128");
79 if (cipher & BaseTestServer::SSLOptions::BULK_CIPHER_AES256) 79 if (cipher & BaseTestServer::SSLOptions::BULK_CIPHER_AES256)
80 values->AppendString("aes256"); 80 values->AppendString("aes256");
81 if (cipher & BaseTestServer::SSLOptions::BULK_CIPHER_3DES) 81 if (cipher & BaseTestServer::SSLOptions::BULK_CIPHER_3DES)
82 values->AppendString("3des"); 82 values->AppendString("3des");
83 if (cipher & BaseTestServer::SSLOptions::BULK_CIPHER_AES128GCM) 83 if (cipher & BaseTestServer::SSLOptions::BULK_CIPHER_AES128GCM)
84 values->AppendString("aes128gcm"); 84 values->AppendString("aes128gcm");
85 } 85 }
86 86
87 base::StringValue* GetTLSIntoleranceType( 87 base::Value* GetTLSIntoleranceType(
88 BaseTestServer::SSLOptions::TLSIntoleranceType type) { 88 BaseTestServer::SSLOptions::TLSIntoleranceType type) {
89 switch (type) { 89 switch (type) {
90 case BaseTestServer::SSLOptions::TLS_INTOLERANCE_ALERT: 90 case BaseTestServer::SSLOptions::TLS_INTOLERANCE_ALERT:
91 return new base::StringValue("alert"); 91 return new base::Value("alert");
92 case BaseTestServer::SSLOptions::TLS_INTOLERANCE_CLOSE: 92 case BaseTestServer::SSLOptions::TLS_INTOLERANCE_CLOSE:
93 return new base::StringValue("close"); 93 return new base::Value("close");
94 case BaseTestServer::SSLOptions::TLS_INTOLERANCE_RESET: 94 case BaseTestServer::SSLOptions::TLS_INTOLERANCE_RESET:
95 return new base::StringValue("reset"); 95 return new base::Value("reset");
96 default: 96 default:
97 NOTREACHED(); 97 NOTREACHED();
98 return new base::StringValue(""); 98 return new base::Value("");
99 } 99 }
100 } 100 }
101 101
102 bool GetLocalCertificatesDir(const base::FilePath& certificates_dir, 102 bool GetLocalCertificatesDir(const base::FilePath& certificates_dir,
103 base::FilePath* local_certificates_dir) { 103 base::FilePath* local_certificates_dir) {
104 if (certificates_dir.IsAbsolute()) { 104 if (certificates_dir.IsAbsolute()) {
105 *local_certificates_dir = certificates_dir; 105 *local_certificates_dir = certificates_dir;
106 return true; 106 return true;
107 } 107 }
108 108
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 678
679 return GenerateAdditionalArguments(arguments); 679 return GenerateAdditionalArguments(arguments);
680 } 680 }
681 681
682 bool BaseTestServer::GenerateAdditionalArguments( 682 bool BaseTestServer::GenerateAdditionalArguments(
683 base::DictionaryValue* arguments) const { 683 base::DictionaryValue* arguments) const {
684 return true; 684 return true;
685 } 685 }
686 686
687 } // namespace net 687 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/spdy_network_transaction_unittest.cc ('k') | rlz/chromeos/lib/rlz_value_store_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698