OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |