Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: chrome/browser/policy/policy_browsertest.cc

Issue 2273783002: Move policy generated files to components/policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missed headers Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 #include "components/omnibox/browser/omnibox_edit_model.h" 103 #include "components/omnibox/browser/omnibox_edit_model.h"
104 #include "components/omnibox/browser/omnibox_view.h" 104 #include "components/omnibox/browser/omnibox_view.h"
105 #include "components/policy/core/browser/browser_policy_connector.h" 105 #include "components/policy/core/browser/browser_policy_connector.h"
106 #include "components/policy/core/common/external_data_fetcher.h" 106 #include "components/policy/core/common/external_data_fetcher.h"
107 #include "components/policy/core/common/mock_configuration_policy_provider.h" 107 #include "components/policy/core/common/mock_configuration_policy_provider.h"
108 #include "components/policy/core/common/policy_map.h" 108 #include "components/policy/core/common/policy_map.h"
109 #include "components/policy/core/common/policy_pref_names.h" 109 #include "components/policy/core/common/policy_pref_names.h"
110 #include "components/policy/core/common/policy_service.h" 110 #include "components/policy/core/common/policy_service.h"
111 #include "components/policy/core/common/policy_service_impl.h" 111 #include "components/policy/core/common/policy_service_impl.h"
112 #include "components/policy/core/common/policy_types.h" 112 #include "components/policy/core/common/policy_types.h"
113 #include "components/policy/policy_constants.h"
113 #include "components/prefs/pref_service.h" 114 #include "components/prefs/pref_service.h"
114 #include "components/search/search.h" 115 #include "components/search/search.h"
115 #include "components/search_engines/template_url.h" 116 #include "components/search_engines/template_url.h"
116 #include "components/search_engines/template_url_service.h" 117 #include "components/search_engines/template_url_service.h"
117 #include "components/security_interstitials/core/controller_client.h" 118 #include "components/security_interstitials/core/controller_client.h"
118 #include "components/strings/grit/components_strings.h" 119 #include "components/strings/grit/components_strings.h"
119 #include "components/translate/core/browser/language_state.h" 120 #include "components/translate/core/browser/language_state.h"
120 #include "components/translate/core/browser/translate_infobar_delegate.h" 121 #include "components/translate/core/browser/translate_infobar_delegate.h"
121 #include "components/user_prefs/user_prefs.h" 122 #include "components/user_prefs/user_prefs.h"
122 #include "components/variations/service/variations_service.h" 123 #include "components/variations/service/variations_service.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 #include "net/base/net_errors.h" 173 #include "net/base/net_errors.h"
173 #include "net/base/url_util.h" 174 #include "net/base/url_util.h"
174 #include "net/http/http_stream_factory.h" 175 #include "net/http/http_stream_factory.h"
175 #include "net/http/transport_security_state.h" 176 #include "net/http/transport_security_state.h"
176 #include "net/test/embedded_test_server/embedded_test_server.h" 177 #include "net/test/embedded_test_server/embedded_test_server.h"
177 #include "net/test/url_request/url_request_failed_job.h" 178 #include "net/test/url_request/url_request_failed_job.h"
178 #include "net/test/url_request/url_request_mock_http_job.h" 179 #include "net/test/url_request/url_request_mock_http_job.h"
179 #include "net/url_request/url_request.h" 180 #include "net/url_request/url_request.h"
180 #include "net/url_request/url_request_filter.h" 181 #include "net/url_request/url_request_filter.h"
181 #include "net/url_request/url_request_interceptor.h" 182 #include "net/url_request/url_request_interceptor.h"
182 #include "policy/policy_constants.h"
183 #include "testing/gmock/include/gmock/gmock.h" 183 #include "testing/gmock/include/gmock/gmock.h"
184 #include "testing/gtest/include/gtest/gtest.h" 184 #include "testing/gtest/include/gtest/gtest.h"
185 #include "third_party/WebKit/public/web/WebInputEvent.h" 185 #include "third_party/WebKit/public/web/WebInputEvent.h"
186 #include "ui/base/l10n/l10n_util.h" 186 #include "ui/base/l10n/l10n_util.h"
187 #include "ui/base/page_transition_types.h" 187 #include "ui/base/page_transition_types.h"
188 #include "ui/base/resource/resource_bundle.h" 188 #include "ui/base/resource/resource_bundle.h"
189 #include "url/gurl.h" 189 #include "url/gurl.h"
190 #include "url/origin.h" 190 #include "url/origin.h"
191 191
192 #if defined(OS_CHROMEOS) 192 #if defined(OS_CHROMEOS)
(...skipping 3921 matching lines...) Expand 10 before | Expand all | Expand 10 after
4114 4114
4115 SetEmptyPolicy(); 4115 SetEmptyPolicy();
4116 // Policy not set. 4116 // Policy not set.
4117 CheckSystemTimezoneAutomaticDetectionPolicyUnset(); 4117 CheckSystemTimezoneAutomaticDetectionPolicyUnset();
4118 EXPECT_TRUE(CheckResolveTimezoneByGeolocation(true, false)); 4118 EXPECT_TRUE(CheckResolveTimezoneByGeolocation(true, false));
4119 EXPECT_TRUE(manager->TimeZoneResolverShouldBeRunningForTests()); 4119 EXPECT_TRUE(manager->TimeZoneResolverShouldBeRunningForTests());
4120 } 4120 }
4121 #endif // defined(OS_CHROMEOS) 4121 #endif // defined(OS_CHROMEOS)
4122 4122
4123 } // namespace policy 4123 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/network_prediction_policy_handler.cc ('k') | chrome/browser/policy/policy_network_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698