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" | |
9 #include "net/base/test_completion_callback.h" | 8 #include "net/base/test_completion_callback.h" |
| 9 #include "net/cert/mock_cert_verifier.h" |
10 #include "net/dns/mock_host_resolver.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" |
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 ASSERT_TRUE(response->headers != NULL); | 489 ASSERT_TRUE(response->headers != NULL); |
490 EXPECT_EQ("HTTP/1.1 200 OK", response->headers->GetStatusLine()); | 490 EXPECT_EQ("HTTP/1.1 200 OK", response->headers->GetStatusLine()); |
491 EXPECT_FALSE(response->was_fetched_via_spdy); | 491 EXPECT_FALSE(response->was_fetched_via_spdy); |
492 | 492 |
493 ASSERT_EQ(OK, ReadTransaction(trans.get(), &response_data)); | 493 ASSERT_EQ(OK, ReadTransaction(trans.get(), &response_data)); |
494 EXPECT_EQ("hello!", response_data); | 494 EXPECT_EQ("hello!", response_data); |
495 } | 495 } |
496 | 496 |
497 } // namespace test | 497 } // namespace test |
498 } // namespace net | 498 } // namespace net |
OLD | NEW |