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