OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "net/base/auth.h" | 8 #include "net/base/auth.h" |
9 #include "net/base/net_log_unittest.h" | 9 #include "net/base/net_log_unittest.h" |
10 #include "net/http/http_network_session_peer.h" | 10 #include "net/http/http_network_session_peer.h" |
11 #include "net/http/http_transaction_unittest.h" | 11 #include "net/http/http_transaction_unittest.h" |
12 #include "net/spdy/spdy_http_stream.h" | 12 #include "net/spdy/spdy_http_stream.h" |
13 #include "net/spdy/spdy_session.h" | 13 #include "net/spdy/spdy_session.h" |
14 #include "net/spdy/spdy_session_pool.h" | 14 #include "net/spdy/spdy_session_pool.h" |
15 #include "net/spdy/spdy_test_util.h" | 15 #include "net/spdy/spdy_test_util.h" |
16 #include "net/url_request/url_request_unittest.h" | 16 #include "net/url_request/url_request_test_util.h" |
17 #include "testing/platform_test.h" | 17 #include "testing/platform_test.h" |
18 | 18 |
19 //----------------------------------------------------------------------------- | 19 //----------------------------------------------------------------------------- |
20 | 20 |
21 namespace net { | 21 namespace net { |
22 | 22 |
23 // This is the expected list of advertised protocols from the browser's NPN | 23 // This is the expected list of advertised protocols from the browser's NPN |
24 // list. | 24 // list. |
25 static const char kExpectedNPNString[] = "\x08http/1.1\x06spdy/2"; | 25 static const char kExpectedNPNString[] = "\x08http/1.1\x06spdy/2"; |
26 | 26 |
(...skipping 5379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5406 | 5406 |
5407 VerifyStreamsClosed(helper); | 5407 VerifyStreamsClosed(helper); |
5408 | 5408 |
5409 // Verify the SYN_REPLY. | 5409 // Verify the SYN_REPLY. |
5410 EXPECT_TRUE(response.headers != NULL); | 5410 EXPECT_TRUE(response.headers != NULL); |
5411 EXPECT_EQ("HTTP/1.1 200 OK", response.headers->GetStatusLine()); | 5411 EXPECT_EQ("HTTP/1.1 200 OK", response.headers->GetStatusLine()); |
5412 } | 5412 } |
5413 } | 5413 } |
5414 | 5414 |
5415 } // namespace net | 5415 } // namespace net |
OLD | NEW |