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_config_service_linux.h" | 5 #include "net/proxy/proxy_config_service_linux.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/file_path.h" | 13 #include "base/file_path.h" |
14 #include "base/file_util.h" | 14 #include "base/file_util.h" |
15 #include "base/format_macros.h" | 15 #include "base/format_macros.h" |
16 #include "base/logging.h" | 16 #include "base/logging.h" |
17 #include "base/string_util.h" | 17 #include "base/string_util.h" |
18 #include "base/stringprintf.h" | 18 #include "base/stringprintf.h" |
19 #include "base/synchronization/waitable_event.h" | 19 #include "base/synchronization/waitable_event.h" |
20 #include "base/task.h" | |
21 #include "base/threading/thread.h" | 20 #include "base/threading/thread.h" |
22 #include "net/proxy/proxy_config.h" | 21 #include "net/proxy/proxy_config.h" |
23 #include "net/proxy/proxy_config_service_common_unittest.h" | 22 #include "net/proxy/proxy_config_service_common_unittest.h" |
24 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
25 #include "testing/platform_test.h" | 24 #include "testing/platform_test.h" |
26 | 25 |
27 namespace net { | 26 namespace net { |
28 namespace { | 27 namespace { |
29 | 28 |
30 // Set of values for all environment variables that we might | 29 // Set of values for all environment variables that we might |
(...skipping 1511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1542 ProxyConfig config; | 1541 ProxyConfig config; |
1543 sync_config_getter.SetupAndInitialFetch(); | 1542 sync_config_getter.SetupAndInitialFetch(); |
1544 EXPECT_EQ(ProxyConfigService::CONFIG_VALID, | 1543 EXPECT_EQ(ProxyConfigService::CONFIG_VALID, |
1545 sync_config_getter.SyncGetLatestProxyConfig(&config)); | 1544 sync_config_getter.SyncGetLatestProxyConfig(&config)); |
1546 EXPECT_TRUE(config.auto_detect()); | 1545 EXPECT_TRUE(config.auto_detect()); |
1547 EXPECT_EQ(GURL(), config.pac_url()); | 1546 EXPECT_EQ(GURL(), config.pac_url()); |
1548 } | 1547 } |
1549 } | 1548 } |
1550 | 1549 |
1551 } // namespace net | 1550 } // namespace net |
OLD | NEW |