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

Side by Side Diff: chrome/browser/extensions/api/enterprise_device_attributes/enterprise_device_attributes_apitest.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "base/prefs/pref_service.h"
6 #include "base/strings/stringprintf.h" 5 #include "base/strings/stringprintf.h"
7 #include "chrome/browser/browser_process.h" 6 #include "chrome/browser/browser_process.h"
8 #include "chrome/browser/chromeos/policy/affiliation_test_helper.h" 7 #include "chrome/browser/chromeos/policy/affiliation_test_helper.h"
9 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" 8 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h"
10 #include "chrome/browser/chromeos/policy/device_policy_cros_browser_test.h" 9 #include "chrome/browser/chromeos/policy/device_policy_cros_browser_test.h"
11 #include "chrome/browser/chromeos/policy/stub_enterprise_install_attributes.h" 10 #include "chrome/browser/chromeos/policy/stub_enterprise_install_attributes.h"
12 #include "chrome/browser/extensions/extension_apitest.h" 11 #include "chrome/browser/extensions/extension_apitest.h"
13 #include "chrome/browser/net/url_request_mock_util.h" 12 #include "chrome/browser/net/url_request_mock_util.h"
14 #include "chrome/test/base/ui_test_utils.h" 13 #include "chrome/test/base/ui_test_utils.h"
15 #include "chromeos/dbus/fake_session_manager_client.h" 14 #include "chromeos/dbus/fake_session_manager_client.h"
16 #include "chromeos/login/user_names.h" 15 #include "chromeos/login/user_names.h"
17 #include "components/policy/core/common/mock_configuration_policy_provider.h" 16 #include "components/policy/core/common/mock_configuration_policy_provider.h"
17 #include "components/prefs/pref_service.h"
18 #include "components/signin/core/account_id/account_id.h" 18 #include "components/signin/core/account_id/account_id.h"
19 #include "components/user_manager/user_manager.h" 19 #include "components/user_manager/user_manager.h"
20 #include "content/public/browser/notification_service.h" 20 #include "content/public/browser/notification_service.h"
21 #include "content/public/test/test_utils.h" 21 #include "content/public/test/test_utils.h"
22 #include "extensions/browser/api_test_utils.h" 22 #include "extensions/browser/api_test_utils.h"
23 #include "extensions/browser/extension_registry.h" 23 #include "extensions/browser/extension_registry.h"
24 #include "extensions/browser/test_extension_registry_observer.h" 24 #include "extensions/browser/test_extension_registry_observer.h"
25 #include "extensions/test/result_catcher.h" 25 #include "extensions/test/result_catcher.h"
26 #include "net/test/url_request/url_request_mock_http_job.h" 26 #include "net/test/url_request/url_request_mock_http_job.h"
27 #include "policy/policy_constants.h" 27 #include "policy/policy_constants.h"
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 "'enterprise.deviceAttributes' is not allowed for specified install " 234 "'enterprise.deviceAttributes' is not allowed for specified install "
235 "location.", 235 "location.",
236 extension->install_warnings()[0].message); 236 extension->install_warnings()[0].message);
237 } 237 }
238 238
239 // Both cases of affiliated and non-affiliated on the device user are tested. 239 // Both cases of affiliated and non-affiliated on the device user are tested.
240 INSTANTIATE_TEST_CASE_P(AffiliationCheck, 240 INSTANTIATE_TEST_CASE_P(AffiliationCheck,
241 EnterpriseDeviceAttributesTest, 241 EnterpriseDeviceAttributesTest,
242 ::testing::Values(Params(true), Params(false))); 242 ::testing::Values(Params(true), Params(false)));
243 } // namespace extensions 243 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698