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/proxy/proxy_service.h" | 5 #include "net/proxy/proxy_service.h" |
6 | 6 |
7 #include <cstdarg> | 7 #include <cstdarg> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/format_macros.h" | 10 #include "base/format_macros.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/macros.h" |
12 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
13 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
14 #include "net/base/load_flags.h" | 15 #include "net/base/load_flags.h" |
15 #include "net/base/net_errors.h" | 16 #include "net/base/net_errors.h" |
16 #include "net/base/network_delegate_impl.h" | 17 #include "net/base/network_delegate_impl.h" |
17 #include "net/base/test_completion_callback.h" | 18 #include "net/base/test_completion_callback.h" |
18 #include "net/log/net_log.h" | 19 #include "net/log/net_log.h" |
19 #include "net/log/test_net_log.h" | 20 #include "net/log/test_net_log.h" |
20 #include "net/log/test_net_log_entry.h" | 21 #include "net/log/test_net_log_entry.h" |
21 #include "net/log/test_net_log_util.h" | 22 #include "net/log/test_net_log_util.h" |
(...skipping 3354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3376 url, LOAD_NORMAL, &info, NULL, log.bound()); | 3377 url, LOAD_NORMAL, &info, NULL, log.bound()); |
3377 EXPECT_TRUE(synchronous_success); | 3378 EXPECT_TRUE(synchronous_success); |
3378 EXPECT_FALSE(info.is_direct()); | 3379 EXPECT_FALSE(info.is_direct()); |
3379 EXPECT_EQ("foopy1", info.proxy_server().host_port_pair().host()); | 3380 EXPECT_EQ("foopy1", info.proxy_server().host_port_pair().host()); |
3380 | 3381 |
3381 // No request should have been queued. | 3382 // No request should have been queued. |
3382 EXPECT_EQ(0u, factory->pending_requests().size()); | 3383 EXPECT_EQ(0u, factory->pending_requests().size()); |
3383 } | 3384 } |
3384 | 3385 |
3385 } // namespace net | 3386 } // namespace net |
OLD | NEW |