OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "components/proxy_config/pref_proxy_config_tracker_impl.h" | 5 #include "components/proxy_config/pref_proxy_config_tracker_impl.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
12 #include "base/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
13 #include "components/prefs/pref_registry_simple.h" | 13 #include "components/prefs/pref_registry_simple.h" |
14 #include "components/prefs/testing_pref_service.h" | 14 #include "components/prefs/testing_pref_service.h" |
15 #include "components/proxy_config/proxy_config_dictionary.h" | 15 #include "components/proxy_config/proxy_config_dictionary.h" |
16 #include "components/proxy_config/proxy_config_pref_names.h" | 16 #include "components/proxy_config/proxy_config_pref_names.h" |
17 #include "net/proxy/proxy_info.h" | 17 #include "net/proxy/proxy_info.h" |
18 #include "net/proxy/proxy_list.h" | 18 #include "net/proxy/proxy_list.h" |
19 #include "testing/gmock/include/gmock/gmock.h" | 19 #include "testing/gmock/include/gmock/gmock.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
21 #include "url/gurl.h" | 21 #include "url/gurl.h" |
22 | 22 |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 loop_.RunUntilIdle(); | 263 loop_.RunUntilIdle(); |
264 | 264 |
265 // Test if we actually use the system setting, which is |kFixedPacUrl|. | 265 // Test if we actually use the system setting, which is |kFixedPacUrl|. |
266 net::ProxyConfig actual_config; | 266 net::ProxyConfig actual_config; |
267 EXPECT_EQ(net::ProxyConfigService::CONFIG_VALID, | 267 EXPECT_EQ(net::ProxyConfigService::CONFIG_VALID, |
268 proxy_config_service_->GetLatestProxyConfig(&actual_config)); | 268 proxy_config_service_->GetLatestProxyConfig(&actual_config)); |
269 EXPECT_EQ(GURL(kFixedPacUrl), actual_config.pac_url()); | 269 EXPECT_EQ(GURL(kFixedPacUrl), actual_config.pac_url()); |
270 } | 270 } |
271 | 271 |
272 } // namespace | 272 } // namespace |
OLD | NEW |