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

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

Issue 375773002: Fixes for re-enabling more MSVC level 4 warnings: net/spdy/ edition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « net/spdy/spdy_protocol_test.cc ('k') | 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 "net/spdy/spdy_proxy_client_socket.h" 5 #include "net/spdy/spdy_proxy_client_socket.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "net/base/address_list.h" 10 #include "net/base/address_list.h"
(...skipping 27 matching lines...) Expand all
38 static const char kOriginHostPort[] = "www.google.com:443"; 38 static const char kOriginHostPort[] = "www.google.com:443";
39 static const char kProxyUrl[] = "https://myproxy:6121/"; 39 static const char kProxyUrl[] = "https://myproxy:6121/";
40 static const char kProxyHost[] = "myproxy"; 40 static const char kProxyHost[] = "myproxy";
41 static const int kProxyPort = 6121; 41 static const int kProxyPort = 6121;
42 static const char kUserAgent[] = "Mozilla/1.0"; 42 static const char kUserAgent[] = "Mozilla/1.0";
43 43
44 static const int kStreamId = 1; 44 static const int kStreamId = 1;
45 45
46 static const char kMsg1[] = "\0hello!\xff"; 46 static const char kMsg1[] = "\0hello!\xff";
47 static const int kLen1 = 8; 47 static const int kLen1 = 8;
48 static const char kMsg2[] = "\00012345678\0"; 48 static const char kMsg2[] = "\0a2345678\0";
49 static const int kLen2 = 10; 49 static const int kLen2 = 10;
50 static const char kMsg3[] = "bye!"; 50 static const char kMsg3[] = "bye!";
51 static const int kLen3 = 4; 51 static const int kLen3 = 4;
52 static const char kMsg33[] = "bye!bye!"; 52 static const char kMsg33[] = "bye!bye!";
53 static const int kLen33 = kLen3 + kLen3; 53 static const int kLen33 = kLen3 + kLen3;
54 static const char kMsg333[] = "bye!bye!bye!"; 54 static const char kMsg333[] = "bye!bye!bye!";
55 static const int kLen333 = kLen3 + kLen3 + kLen3; 55 static const int kLen333 = kLen3 + kLen3 + kLen3;
56 56
57 static const char kRedirectUrl[] = "https://example.com/"; 57 static const char kRedirectUrl[] = "https://example.com/";
58 58
(...skipping 1316 matching lines...) Expand 10 before | Expand all | Expand 10 after
1375 1375
1376 EXPECT_FALSE(sock_.get()); 1376 EXPECT_FALSE(sock_.get());
1377 EXPECT_TRUE(read_callback.have_result()); 1377 EXPECT_TRUE(read_callback.have_result());
1378 EXPECT_FALSE(write_callback_.have_result()); 1378 EXPECT_FALSE(write_callback_.have_result());
1379 1379
1380 // Let the RST_STREAM write while |rst| is in-scope. 1380 // Let the RST_STREAM write while |rst| is in-scope.
1381 base::MessageLoop::current()->RunUntilIdle(); 1381 base::MessageLoop::current()->RunUntilIdle();
1382 } 1382 }
1383 1383
1384 } // namespace net 1384 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/spdy_protocol_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698