| 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 "chrome/browser/chromeos/proxy_config_service_impl.h" | 5 #include "chrome/browser/chromeos/proxy_config_service_impl.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/format_macros.h" | 9 #include "base/format_macros.h" |
| 10 #include "base/json/json_writer.h" | 10 #include "base/json/json_writer.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
| 13 #include "base/prefs/testing_pref_service.h" | 13 #include "base/prefs/testing_pref_service.h" |
| 14 #include "base/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
| 15 #include "chrome/browser/chromeos/settings/cros_settings.h" | 15 #include "chrome/browser/chromeos/settings/cros_settings.h" |
| 16 #include "chrome/browser/chromeos/settings/device_settings_service.h" | 16 #include "chrome/browser/chromeos/settings/device_settings_service.h" |
| 17 #include "chrome/browser/chromeos/ui_proxy_config.h" | 17 #include "chrome/browser/chromeos/ui_proxy_config.h" |
| 18 #include "chrome/common/pref_names.h" | 18 #include "chrome/common/pref_names.h" |
| 19 #include "chromeos/dbus/dbus_thread_manager.h" | 19 #include "chromeos/dbus/dbus_thread_manager.h" |
| 20 #include "chromeos/dbus/shill_profile_client.h" | 20 #include "chromeos/dbus/shill_profile_client.h" |
| 21 #include "chromeos/dbus/shill_service_client.h" | 21 #include "chromeos/dbus/shill_service_client.h" |
| 22 #include "chromeos/network/network_handler.h" | 22 #include "chromeos/network/network_handler.h" |
| 23 #include "chromeos/network/network_state.h" | 23 #include "chromeos/network/network_state.h" |
| 24 #include "chromeos/network/network_state_handler.h" | 24 #include "chromeos/network/network_state_handler.h" |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 443 pref_service_.RemoveRecommendedPref(prefs::kProxy); | 443 pref_service_.RemoveRecommendedPref(prefs::kProxy); |
| 444 SyncGetLatestProxyConfig(&actual_config); | 444 SyncGetLatestProxyConfig(&actual_config); |
| 445 EXPECT_EQ(network_params.auto_detect, actual_config.auto_detect()); | 445 EXPECT_EQ(network_params.auto_detect, actual_config.auto_detect()); |
| 446 EXPECT_EQ(network_params.pac_url, actual_config.pac_url()); | 446 EXPECT_EQ(network_params.pac_url, actual_config.pac_url()); |
| 447 EXPECT_TRUE(network_params.proxy_rules.Matches( | 447 EXPECT_TRUE(network_params.proxy_rules.Matches( |
| 448 actual_config.proxy_rules())); | 448 actual_config.proxy_rules())); |
| 449 } | 449 } |
| 450 } | 450 } |
| 451 | 451 |
| 452 } // namespace chromeos | 452 } // namespace chromeos |
| OLD | NEW |