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_session.h" | 5 #include "net/spdy/spdy_session.h" |
6 | 6 |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "net/base/io_buffer.h" | 8 #include "net/base/io_buffer.h" |
9 #include "net/base/ip_endpoint.h" | 9 #include "net/base/ip_endpoint.h" |
10 #include "net/base/net_log_unittest.h" | 10 #include "net/base/net_log_unittest.h" |
11 #include "net/base/request_priority.h" | 11 #include "net/base/request_priority.h" |
12 #include "net/base/test_data_directory.h" | 12 #include "net/base/test_data_directory.h" |
13 #include "net/base/test_data_stream.h" | 13 #include "net/base/test_data_stream.h" |
14 #include "net/dns/host_cache.h" | 14 #include "net/dns/host_cache.h" |
15 #include "net/spdy/spdy_http_utils.h" | 15 #include "net/spdy/spdy_http_utils.h" |
16 #include "net/spdy/spdy_io_buffer.h" | |
17 #include "net/spdy/spdy_session_pool.h" | 16 #include "net/spdy/spdy_session_pool.h" |
18 #include "net/spdy/spdy_session_test_util.h" | 17 #include "net/spdy/spdy_session_test_util.h" |
19 #include "net/spdy/spdy_stream.h" | 18 #include "net/spdy/spdy_stream.h" |
20 #include "net/spdy/spdy_stream_test_util.h" | 19 #include "net/spdy/spdy_stream_test_util.h" |
21 #include "net/spdy/spdy_test_util_common.h" | 20 #include "net/spdy/spdy_test_util_common.h" |
22 #include "net/spdy/spdy_test_util_spdy3.h" | 21 #include "net/spdy/spdy_test_util_spdy3.h" |
23 #include "net/test/cert_test_util.h" | 22 #include "net/test/cert_test_util.h" |
24 #include "testing/platform_test.h" | 23 #include "testing/platform_test.h" |
25 | 24 |
26 using namespace net::test_spdy3; | 25 using namespace net::test_spdy3; |
(...skipping 2947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2974 EXPECT_EQ(0, delegate1.body_data_sent()); | 2973 EXPECT_EQ(0, delegate1.body_data_sent()); |
2975 | 2974 |
2976 EXPECT_TRUE(delegate2.send_headers_completed()); | 2975 EXPECT_TRUE(delegate2.send_headers_completed()); |
2977 EXPECT_EQ("200", delegate2.GetResponseHeaderValue(":status")); | 2976 EXPECT_EQ("200", delegate2.GetResponseHeaderValue(":status")); |
2978 EXPECT_EQ("HTTP/1.1", delegate2.GetResponseHeaderValue(":version")); | 2977 EXPECT_EQ("HTTP/1.1", delegate2.GetResponseHeaderValue(":version")); |
2979 EXPECT_EQ("", delegate2.received_data()); | 2978 EXPECT_EQ("", delegate2.received_data()); |
2980 EXPECT_EQ(0, delegate2.body_data_sent()); | 2979 EXPECT_EQ(0, delegate2.body_data_sent()); |
2981 } | 2980 } |
2982 | 2981 |
2983 } // namespace net | 2982 } // namespace net |
OLD | NEW |