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/ui/webui/options/preferences_browsertest.h" | 5 #include "chrome/browser/ui/webui/options/preferences_browsertest.h" |
6 | 6 |
7 #include <iostream> | 7 #include <iostream> |
8 #include <sstream> | 8 #include <sstream> |
9 | 9 |
10 #include "base/json/json_reader.h" | 10 #include "base/json/json_reader.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "content/public/browser/notification_details.h" | 26 #include "content/public/browser/notification_details.h" |
27 #include "content/public/browser/notification_source.h" | 27 #include "content/public/browser/notification_source.h" |
28 #include "content/public/browser/render_view_host.h" | 28 #include "content/public/browser/render_view_host.h" |
29 #include "content/public/browser/web_contents.h" | 29 #include "content/public/browser/web_contents.h" |
30 #include "content/public/test/browser_test_utils.h" | 30 #include "content/public/test/browser_test_utils.h" |
31 #include "googleurl/src/gurl.h" | 31 #include "googleurl/src/gurl.h" |
32 #include "policy/policy_constants.h" | 32 #include "policy/policy_constants.h" |
33 #include "testing/gtest/include/gtest/gtest.h" | 33 #include "testing/gtest/include/gtest/gtest.h" |
34 | 34 |
35 #if defined(OS_CHROMEOS) | 35 #if defined(OS_CHROMEOS) |
36 #include "base/stringprintf.h" | 36 #include "base/strings/stringprintf.h" |
37 #include "chrome/browser/chromeos/net/proxy_config_handler.h" | 37 #include "chrome/browser/chromeos/net/proxy_config_handler.h" |
38 #include "chrome/browser/chromeos/proxy_cros_settings_parser.h" | 38 #include "chrome/browser/chromeos/proxy_cros_settings_parser.h" |
39 #include "chrome/browser/chromeos/settings/cros_settings.h" | 39 #include "chrome/browser/chromeos/settings/cros_settings.h" |
40 #include "chrome/browser/chromeos/settings/cros_settings_names.h" | 40 #include "chrome/browser/chromeos/settings/cros_settings_names.h" |
41 #include "chrome/browser/prefs/proxy_config_dictionary.h" | 41 #include "chrome/browser/prefs/proxy_config_dictionary.h" |
42 #include "chromeos/network/network_state.h" | 42 #include "chromeos/network/network_state.h" |
43 #include "chromeos/network/network_state_handler.h" | 43 #include "chromeos/network/network_state_handler.h" |
44 #endif | 44 #endif |
45 | 45 |
46 using testing::AllOf; | 46 using testing::AllOf; |
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
827 SetProxyPref(chromeos::kProxyHttpPort, base::FundamentalValue(1)); | 827 SetProxyPref(chromeos::kProxyHttpPort, base::FundamentalValue(1)); |
828 SetProxyPref(chromeos::kProxyHttpsPort, base::FundamentalValue(2)); | 828 SetProxyPref(chromeos::kProxyHttpsPort, base::FundamentalValue(2)); |
829 SetProxyPref(chromeos::kProxyFtpPort, base::FundamentalValue(3)); | 829 SetProxyPref(chromeos::kProxyFtpPort, base::FundamentalValue(3)); |
830 SetProxyPref(chromeos::kProxySocksPort, base::FundamentalValue(4)); | 830 SetProxyPref(chromeos::kProxySocksPort, base::FundamentalValue(4)); |
831 | 831 |
832 VerifyCurrentProxyServer( | 832 VerifyCurrentProxyServer( |
833 "http=a.com:1;https=4.3.2.1:2;ftp=c.com:3;socks=socks4://d.com:4"); | 833 "http=a.com:1;https=4.3.2.1:2;ftp=c.com:3;socks=socks4://d.com:4"); |
834 } | 834 } |
835 | 835 |
836 #endif | 836 #endif |
OLD | NEW |