OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <string> | 5 #include <string> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 scoped_refptr<HttpNetworkSession> session_; | 410 scoped_refptr<HttpNetworkSession> session_; |
411 TransactionHelperResult output_; | 411 TransactionHelperResult output_; |
412 scoped_ptr<StaticSocketDataProvider> first_transaction_; | 412 scoped_ptr<StaticSocketDataProvider> first_transaction_; |
413 SSLVector ssl_vector_; | 413 SSLVector ssl_vector_; |
414 TestCompletionCallback callback_; | 414 TestCompletionCallback callback_; |
415 scoped_ptr<HttpNetworkTransaction> trans_; | 415 scoped_ptr<HttpNetworkTransaction> trans_; |
416 scoped_ptr<HttpNetworkTransaction> trans_http_; | 416 scoped_ptr<HttpNetworkTransaction> trans_http_; |
417 DataVector data_vector_; | 417 DataVector data_vector_; |
418 AlternateVector alternate_vector_; | 418 AlternateVector alternate_vector_; |
419 AlternateDeterministicVector alternate_deterministic_vector_; | 419 AlternateDeterministicVector alternate_deterministic_vector_; |
420 const BoundNetLog& log_; | 420 const BoundNetLog log_; |
421 SpdyNetworkTransactionTestParams test_params_; | 421 SpdyNetworkTransactionTestParams test_params_; |
422 int port_; | 422 int port_; |
423 bool deterministic_; | 423 bool deterministic_; |
424 bool spdy_enabled_; | 424 bool spdy_enabled_; |
425 }; | 425 }; |
426 | 426 |
427 void ConnectStatusHelperWithExpectedStatus(const MockRead& status, | 427 void ConnectStatusHelperWithExpectedStatus(const MockRead& status, |
428 int expected_status); | 428 int expected_status); |
429 | 429 |
430 void ConnectStatusHelper(const MockRead& status); | 430 void ConnectStatusHelper(const MockRead& status); |
(...skipping 6368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6799 TEST_P(SpdyNetworkTransactionTLSUsageCheckTest, TLSCipherSuiteSucky) { | 6799 TEST_P(SpdyNetworkTransactionTLSUsageCheckTest, TLSCipherSuiteSucky) { |
6800 scoped_ptr<SSLSocketDataProvider> ssl_provider( | 6800 scoped_ptr<SSLSocketDataProvider> ssl_provider( |
6801 new SSLSocketDataProvider(ASYNC, OK)); | 6801 new SSLSocketDataProvider(ASYNC, OK)); |
6802 // Set to TLS_RSA_WITH_NULL_MD5 | 6802 // Set to TLS_RSA_WITH_NULL_MD5 |
6803 SSLConnectionStatusSetCipherSuite(0x1, &ssl_provider->connection_status); | 6803 SSLConnectionStatusSetCipherSuite(0x1, &ssl_provider->connection_status); |
6804 | 6804 |
6805 RunTLSUsageCheckTest(ssl_provider.Pass()); | 6805 RunTLSUsageCheckTest(ssl_provider.Pass()); |
6806 } | 6806 } |
6807 | 6807 |
6808 } // namespace net | 6808 } // namespace net |
OLD | NEW |