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

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

Issue 852053002: Fix dangling reference in NormalSpdyTransactionHelper. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | no next file » | 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 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698