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

Side by Side Diff: net/http/http_proxy_client_socket_pool_unittest.cc

Issue 723343002: Update from https://crrev.com/304121 (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/http/http_network_transaction_unittest.cc ('k') | net/http/http_response_info.h » ('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 "net/http/http_proxy_client_socket_pool.h" 5 #include "net/http/http_proxy_client_socket_pool.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 ::testing::Values( 344 ::testing::Values(
345 HttpProxyClientSocketPoolTestParams(HTTP, kProtoDeprecatedSPDY2), 345 HttpProxyClientSocketPoolTestParams(HTTP, kProtoDeprecatedSPDY2),
346 HttpProxyClientSocketPoolTestParams(HTTPS, kProtoDeprecatedSPDY2), 346 HttpProxyClientSocketPoolTestParams(HTTPS, kProtoDeprecatedSPDY2),
347 HttpProxyClientSocketPoolTestParams(SPDY, kProtoDeprecatedSPDY2), 347 HttpProxyClientSocketPoolTestParams(SPDY, kProtoDeprecatedSPDY2),
348 HttpProxyClientSocketPoolTestParams(HTTP, kProtoSPDY3), 348 HttpProxyClientSocketPoolTestParams(HTTP, kProtoSPDY3),
349 HttpProxyClientSocketPoolTestParams(HTTPS, kProtoSPDY3), 349 HttpProxyClientSocketPoolTestParams(HTTPS, kProtoSPDY3),
350 HttpProxyClientSocketPoolTestParams(SPDY, kProtoSPDY3), 350 HttpProxyClientSocketPoolTestParams(SPDY, kProtoSPDY3),
351 HttpProxyClientSocketPoolTestParams(HTTP, kProtoSPDY31), 351 HttpProxyClientSocketPoolTestParams(HTTP, kProtoSPDY31),
352 HttpProxyClientSocketPoolTestParams(HTTPS, kProtoSPDY31), 352 HttpProxyClientSocketPoolTestParams(HTTPS, kProtoSPDY31),
353 HttpProxyClientSocketPoolTestParams(SPDY, kProtoSPDY31), 353 HttpProxyClientSocketPoolTestParams(SPDY, kProtoSPDY31),
354 HttpProxyClientSocketPoolTestParams(HTTP, kProtoSPDY4), 354 HttpProxyClientSocketPoolTestParams(HTTP, kProtoSPDY4_14),
355 HttpProxyClientSocketPoolTestParams(HTTPS, kProtoSPDY4), 355 HttpProxyClientSocketPoolTestParams(HTTPS, kProtoSPDY4_14),
356 HttpProxyClientSocketPoolTestParams(SPDY, kProtoSPDY4))); 356 HttpProxyClientSocketPoolTestParams(SPDY, kProtoSPDY4_14),
357 HttpProxyClientSocketPoolTestParams(HTTP, kProtoSPDY4_15),
358 HttpProxyClientSocketPoolTestParams(HTTPS, kProtoSPDY4_15),
359 HttpProxyClientSocketPoolTestParams(SPDY, kProtoSPDY4_15)));
357 360
358 TEST_P(HttpProxyClientSocketPoolTest, NoTunnel) { 361 TEST_P(HttpProxyClientSocketPoolTest, NoTunnel) {
359 Initialize(NULL, 0, NULL, 0, NULL, 0, NULL, 0); 362 Initialize(NULL, 0, NULL, 0, NULL, 0, NULL, 0);
360 363
361 scoped_ptr<TestProxyDelegate> proxy_delegate(new TestProxyDelegate()); 364 scoped_ptr<TestProxyDelegate> proxy_delegate(new TestProxyDelegate());
362 int rv = handle_.Init("a", CreateNoTunnelParams(proxy_delegate.get()), LOW, 365 int rv = handle_.Init("a", CreateNoTunnelParams(proxy_delegate.get()), LOW,
363 CompletionCallback(), &pool_, BoundNetLog()); 366 CompletionCallback(), &pool_, BoundNetLog());
364 EXPECT_EQ(OK, rv); 367 EXPECT_EQ(OK, rv);
365 EXPECT_TRUE(handle_.is_initialized()); 368 EXPECT_TRUE(handle_.is_initialized());
366 ASSERT_TRUE(handle_.socket()); 369 ASSERT_TRUE(handle_.socket());
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
844 EXPECT_TRUE(headers->IsRedirect(&location)); 847 EXPECT_TRUE(headers->IsRedirect(&location));
845 EXPECT_EQ(location, redirectTarget); 848 EXPECT_EQ(location, redirectTarget);
846 } 849 }
847 } 850 }
848 851
849 // It would be nice to also test the timeouts in HttpProxyClientSocketPool. 852 // It would be nice to also test the timeouts in HttpProxyClientSocketPool.
850 853
851 } // namespace 854 } // namespace
852 855
853 } // namespace net 856 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_network_transaction_unittest.cc ('k') | net/http/http_response_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698