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

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

Issue 2503993002: Change unique_ptr::reset() for std::move (Closed)
Patch Set: Change unique_ptr::reset() for std::move Created 4 years 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/socket/udp_socket_win.cc ('k') | net/spdy/spdy_session_unittest.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 <cmath> 5 #include <cmath>
6 #include <memory> 6 #include <memory>
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 4695 matching lines...) Expand 10 before | Expand all | Expand 10 after
4706 request.method = "GET"; 4706 request.method = "GET";
4707 request.url = GURL(url_to_fetch); 4707 request.url = GURL(url_to_fetch);
4708 request.load_flags = 0; 4708 request.load_flags = 0;
4709 4709
4710 // Enable cross-origin push. Since we are not using a proxy, this should 4710 // Enable cross-origin push. Since we are not using a proxy, this should
4711 // not actually enable cross-origin SPDY push. 4711 // not actually enable cross-origin SPDY push.
4712 auto session_deps = base::MakeUnique<SpdySessionDependencies>(); 4712 auto session_deps = base::MakeUnique<SpdySessionDependencies>();
4713 std::unique_ptr<TestProxyDelegate> proxy_delegate(new TestProxyDelegate()); 4713 std::unique_ptr<TestProxyDelegate> proxy_delegate(new TestProxyDelegate());
4714 proxy_delegate->set_trusted_spdy_proxy(net::ProxyServer::FromURI( 4714 proxy_delegate->set_trusted_spdy_proxy(net::ProxyServer::FromURI(
4715 "https://123.45.67.89:443", net::ProxyServer::SCHEME_HTTP)); 4715 "https://123.45.67.89:443", net::ProxyServer::SCHEME_HTTP));
4716 session_deps->proxy_delegate.reset(proxy_delegate.release()); 4716 session_deps->proxy_delegate = std::move(proxy_delegate);
4717 NormalSpdyTransactionHelper helper( 4717 NormalSpdyTransactionHelper helper(
4718 request, DEFAULT_PRIORITY, NetLogWithSource(), std::move(session_deps)); 4718 request, DEFAULT_PRIORITY, NetLogWithSource(), std::move(session_deps));
4719 helper.RunPreTestSetup(); 4719 helper.RunPreTestSetup();
4720 helper.AddData(&data); 4720 helper.AddData(&data);
4721 4721
4722 HttpNetworkTransaction* trans = helper.trans(); 4722 HttpNetworkTransaction* trans = helper.trans();
4723 4723
4724 // Start the transaction with basic parameters. 4724 // Start the transaction with basic parameters.
4725 TestCompletionCallback callback; 4725 TestCompletionCallback callback;
4726 4726
(...skipping 1494 matching lines...) Expand 10 before | Expand all | Expand 10 after
6221 TEST_F(SpdyNetworkTransactionTLSUsageCheckTest, TLSCipherSuiteSucky) { 6221 TEST_F(SpdyNetworkTransactionTLSUsageCheckTest, TLSCipherSuiteSucky) {
6222 std::unique_ptr<SSLSocketDataProvider> ssl_provider( 6222 std::unique_ptr<SSLSocketDataProvider> ssl_provider(
6223 new SSLSocketDataProvider(ASYNC, OK)); 6223 new SSLSocketDataProvider(ASYNC, OK));
6224 // Set to TLS_RSA_WITH_NULL_MD5 6224 // Set to TLS_RSA_WITH_NULL_MD5
6225 SSLConnectionStatusSetCipherSuite(0x1, &ssl_provider->connection_status); 6225 SSLConnectionStatusSetCipherSuite(0x1, &ssl_provider->connection_status);
6226 6226
6227 RunTLSUsageCheckTest(std::move(ssl_provider)); 6227 RunTLSUsageCheckTest(std::move(ssl_provider));
6228 } 6228 }
6229 6229
6230 } // namespace net 6230 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/udp_socket_win.cc ('k') | net/spdy/spdy_session_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698