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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
6 #include "base/compiler_specific.h" | 6 #include "base/compiler_specific.h" |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "net/base/mock_cert_verifier.h" | 8 #include "net/base/mock_cert_verifier.h" |
9 #include "net/base/mock_host_resolver.h" | |
10 #include "net/base/test_completion_callback.h" | 9 #include "net/base/test_completion_callback.h" |
| 10 #include "net/dns/mock_host_resolver.h" |
11 #include "net/http/http_auth_handler_factory.h" | 11 #include "net/http/http_auth_handler_factory.h" |
12 #include "net/http/http_network_session.h" | 12 #include "net/http/http_network_session.h" |
13 #include "net/http/http_network_transaction.h" | 13 #include "net/http/http_network_transaction.h" |
14 #include "net/http/http_server_properties_impl.h" | 14 #include "net/http/http_server_properties_impl.h" |
15 #include "net/http/http_stream.h" | 15 #include "net/http/http_stream.h" |
16 #include "net/http/http_stream_factory.h" | 16 #include "net/http/http_stream_factory.h" |
17 #include "net/http/http_transaction_unittest.h" | 17 #include "net/http/http_transaction_unittest.h" |
18 #include "net/proxy/proxy_config_service_fixed.h" | 18 #include "net/proxy/proxy_config_service_fixed.h" |
19 #include "net/proxy/proxy_resolver.h" | 19 #include "net/proxy/proxy_resolver.h" |
20 #include "net/proxy/proxy_service.h" | 20 #include "net/proxy/proxy_service.h" |
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 ASSERT_TRUE(response->headers != NULL); | 518 ASSERT_TRUE(response->headers != NULL); |
519 EXPECT_EQ("HTTP/1.1 200 OK", response->headers->GetStatusLine()); | 519 EXPECT_EQ("HTTP/1.1 200 OK", response->headers->GetStatusLine()); |
520 EXPECT_FALSE(response->was_fetched_via_spdy); | 520 EXPECT_FALSE(response->was_fetched_via_spdy); |
521 | 521 |
522 ASSERT_EQ(OK, ReadTransaction(trans.get(), &response_data)); | 522 ASSERT_EQ(OK, ReadTransaction(trans.get(), &response_data)); |
523 EXPECT_EQ("hello!", response_data); | 523 EXPECT_EQ("hello!", response_data); |
524 } | 524 } |
525 | 525 |
526 } // namespace test | 526 } // namespace test |
527 } // namespace net | 527 } // namespace net |
OLD | NEW |