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 <algorithm> | 5 #include <algorithm> |
6 #include <string> | 6 #include <string> |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 #include "chrome/browser/extensions/unpacked_installer.h" | 40 #include "chrome/browser/extensions/unpacked_installer.h" |
41 #include "chrome/browser/extensions/updater/extension_updater.h" | 41 #include "chrome/browser/extensions/updater/extension_updater.h" |
42 #include "chrome/browser/infobars/infobar_service.h" | 42 #include "chrome/browser/infobars/infobar_service.h" |
43 #include "chrome/browser/media/media_capture_devices_dispatcher.h" | 43 #include "chrome/browser/media/media_capture_devices_dispatcher.h" |
44 #include "chrome/browser/media/media_stream_devices_controller.h" | 44 #include "chrome/browser/media/media_stream_devices_controller.h" |
45 #include "chrome/browser/metrics/variations/variations_service.h" | 45 #include "chrome/browser/metrics/variations/variations_service.h" |
46 #include "chrome/browser/net/url_request_mock_util.h" | 46 #include "chrome/browser/net/url_request_mock_util.h" |
47 #include "chrome/browser/plugins/plugin_prefs.h" | 47 #include "chrome/browser/plugins/plugin_prefs.h" |
48 #include "chrome/browser/policy/browser_policy_connector.h" | 48 #include "chrome/browser/policy/browser_policy_connector.h" |
49 #include "chrome/browser/policy/cloud/test_request_interceptor.h" | 49 #include "chrome/browser/policy/cloud/test_request_interceptor.h" |
50 #include "chrome/browser/policy/mock_configuration_policy_provider.h" | |
51 #include "chrome/browser/policy/policy_service.h" | 50 #include "chrome/browser/policy/policy_service.h" |
52 #include "chrome/browser/policy/policy_service_impl.h" | 51 #include "chrome/browser/policy/policy_service_impl.h" |
53 #include "chrome/browser/policy/profile_policy_connector.h" | 52 #include "chrome/browser/policy/profile_policy_connector.h" |
54 #include "chrome/browser/policy/profile_policy_connector_factory.h" | 53 #include "chrome/browser/policy/profile_policy_connector_factory.h" |
55 #include "chrome/browser/prefs/session_startup_pref.h" | 54 #include "chrome/browser/prefs/session_startup_pref.h" |
56 #include "chrome/browser/profiles/profile.h" | 55 #include "chrome/browser/profiles/profile.h" |
57 #include "chrome/browser/search/instant_service.h" | 56 #include "chrome/browser/search/instant_service.h" |
58 #include "chrome/browser/search/instant_service_factory.h" | 57 #include "chrome/browser/search/instant_service_factory.h" |
59 #include "chrome/browser/search/search.h" | 58 #include "chrome/browser/search/search.h" |
60 #include "chrome/browser/search_engines/template_url.h" | 59 #include "chrome/browser/search_engines/template_url.h" |
(...skipping 17 matching lines...) Expand all Loading... |
78 #include "chrome/common/content_settings.h" | 77 #include "chrome/common/content_settings.h" |
79 #include "chrome/common/content_settings_pattern.h" | 78 #include "chrome/common/content_settings_pattern.h" |
80 #include "chrome/common/extensions/extension_constants.h" | 79 #include "chrome/common/extensions/extension_constants.h" |
81 #include "chrome/common/extensions/extension_set.h" | 80 #include "chrome/common/extensions/extension_set.h" |
82 #include "chrome/common/pref_names.h" | 81 #include "chrome/common/pref_names.h" |
83 #include "chrome/common/url_constants.h" | 82 #include "chrome/common/url_constants.h" |
84 #include "chrome/test/base/in_process_browser_test.h" | 83 #include "chrome/test/base/in_process_browser_test.h" |
85 #include "chrome/test/base/test_switches.h" | 84 #include "chrome/test/base/test_switches.h" |
86 #include "chrome/test/base/ui_test_utils.h" | 85 #include "chrome/test/base/ui_test_utils.h" |
87 #include "components/policy/core/common/external_data_fetcher.h" | 86 #include "components/policy/core/common/external_data_fetcher.h" |
| 87 #include "components/policy/core/common/mock_configuration_policy_provider.h" |
88 #include "components/policy/core/common/policy_map.h" | 88 #include "components/policy/core/common/policy_map.h" |
89 #include "content/public/browser/browser_child_process_host_iterator.h" | 89 #include "content/public/browser/browser_child_process_host_iterator.h" |
90 #include "content/public/browser/browser_context.h" | 90 #include "content/public/browser/browser_context.h" |
91 #include "content/public/browser/browser_thread.h" | 91 #include "content/public/browser/browser_thread.h" |
92 #include "content/public/browser/child_process_data.h" | 92 #include "content/public/browser/child_process_data.h" |
93 #include "content/public/browser/download_item.h" | 93 #include "content/public/browser/download_item.h" |
94 #include "content/public/browser/download_manager.h" | 94 #include "content/public/browser/download_manager.h" |
95 #include "content/public/browser/notification_details.h" | 95 #include "content/public/browser/notification_details.h" |
96 #include "content/public/browser/notification_observer.h" | 96 #include "content/public/browser/notification_observer.h" |
97 #include "content/public/browser/notification_registrar.h" | 97 #include "content/public/browser/notification_registrar.h" |
(...skipping 2763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2861 chrome_variations::VariationsService::GetVariationsServerURL( | 2861 chrome_variations::VariationsService::GetVariationsServerURL( |
2862 g_browser_process->local_state()); | 2862 g_browser_process->local_state()); |
2863 EXPECT_TRUE(StartsWithASCII(url.spec(), default_variations_url, true)); | 2863 EXPECT_TRUE(StartsWithASCII(url.spec(), default_variations_url, true)); |
2864 std::string value; | 2864 std::string value; |
2865 EXPECT_TRUE(net::GetValueForKeyInQuery(url, "restrict", &value)); | 2865 EXPECT_TRUE(net::GetValueForKeyInQuery(url, "restrict", &value)); |
2866 EXPECT_EQ("restricted", value); | 2866 EXPECT_EQ("restricted", value); |
2867 } | 2867 } |
2868 #endif | 2868 #endif |
2869 | 2869 |
2870 } // namespace policy | 2870 } // namespace policy |
OLD | NEW |