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

Side by Side Diff: net/spdy/spdy_network_transaction_unittest.cc

Issue 669813003: Update from chromium https://crrev.com/301725/ (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « net/spdy/spdy_http_stream_unittest.cc ('k') | net/spdy/spdy_protocol_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/spdy/spdy_http_stream_unittest.cc ('k') | net/spdy/spdy_protocol_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698