| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 SpdyNetworkTransactionTest() : spdy_util_(GetParam().protocol) { | 120 SpdyNetworkTransactionTest() : spdy_util_(GetParam().protocol) { |
| 121 } | 121 } |
| 122 | 122 |
| 123 virtual ~SpdyNetworkTransactionTest() { | 123 virtual ~SpdyNetworkTransactionTest() { |
| 124 // UploadDataStream may post a deletion tasks back to the message loop on | 124 // UploadDataStream may post a deletion tasks back to the message loop on |
| 125 // destruction. | 125 // destruction. |
| 126 upload_data_stream_.reset(); | 126 upload_data_stream_.reset(); |
| 127 base::RunLoop().RunUntilIdle(); | 127 base::RunLoop().RunUntilIdle(); |
| 128 } | 128 } |
| 129 | 129 |
| 130 virtual void SetUp() { | 130 void SetUp() override { |
| 131 google_get_request_initialized_ = false; | 131 google_get_request_initialized_ = false; |
| 132 google_post_request_initialized_ = false; | 132 google_post_request_initialized_ = false; |
| 133 google_chunked_post_request_initialized_ = false; | 133 google_chunked_post_request_initialized_ = false; |
| 134 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); | 134 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); |
| 135 } | 135 } |
| 136 | 136 |
| 137 struct TransactionHelperResult { | 137 struct TransactionHelperResult { |
| 138 int rv; | 138 int rv; |
| 139 std::string status_line; | 139 std::string status_line; |
| 140 std::string response_data; | 140 std::string response_data; |
| (...skipping 6472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6613 TEST_P(SpdyNetworkTransactionTLSUsageCheckTest, TLSCipherSuiteSucky) { | 6613 TEST_P(SpdyNetworkTransactionTLSUsageCheckTest, TLSCipherSuiteSucky) { |
| 6614 scoped_ptr<SSLSocketDataProvider> ssl_provider( | 6614 scoped_ptr<SSLSocketDataProvider> ssl_provider( |
| 6615 new SSLSocketDataProvider(ASYNC, OK)); | 6615 new SSLSocketDataProvider(ASYNC, OK)); |
| 6616 // Set to TLS_RSA_WITH_NULL_MD5 | 6616 // Set to TLS_RSA_WITH_NULL_MD5 |
| 6617 SSLConnectionStatusSetCipherSuite(0x1, &ssl_provider->connection_status); | 6617 SSLConnectionStatusSetCipherSuite(0x1, &ssl_provider->connection_status); |
| 6618 | 6618 |
| 6619 RunTLSUsageCheckTest(ssl_provider.Pass()); | 6619 RunTLSUsageCheckTest(ssl_provider.Pass()); |
| 6620 } | 6620 } |
| 6621 | 6621 |
| 6622 } // namespace net | 6622 } // namespace net |
| OLD | NEW |