OLD | NEW |
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/memory/ptr_util.h" | 5 #include "base/memory/ptr_util.h" |
6 #include "base/strings/stringprintf.h" | 6 #include "base/strings/stringprintf.h" |
7 #include "chrome/browser/browser_process.h" | 7 #include "chrome/browser/browser_process.h" |
8 #include "chrome/browser/chromeos/policy/affiliation_test_helper.h" | 8 #include "chrome/browser/chromeos/policy/affiliation_test_helper.h" |
9 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" | 9 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" |
10 #include "chrome/browser/chromeos/policy/device_policy_cros_browser_test.h" | 10 #include "chrome/browser/chromeos/policy/device_policy_cros_browser_test.h" |
11 #include "chrome/browser/chromeos/settings/stub_install_attributes.h" | 11 #include "chrome/browser/chromeos/settings/stub_install_attributes.h" |
12 #include "chrome/browser/extensions/extension_apitest.h" | 12 #include "chrome/browser/extensions/extension_apitest.h" |
13 #include "chrome/browser/net/url_request_mock_util.h" | 13 #include "chrome/browser/net/url_request_mock_util.h" |
14 #include "chrome/test/base/ui_test_utils.h" | 14 #include "chrome/test/base/ui_test_utils.h" |
15 #include "chromeos/dbus/fake_session_manager_client.h" | 15 #include "chromeos/dbus/fake_session_manager_client.h" |
16 #include "chromeos/login/user_names.h" | |
17 #include "components/policy/core/common/cloud/device_management_service.h" | 16 #include "components/policy/core/common/cloud/device_management_service.h" |
18 #include "components/policy/core/common/mock_configuration_policy_provider.h" | 17 #include "components/policy/core/common/mock_configuration_policy_provider.h" |
19 #include "components/policy/policy_constants.h" | 18 #include "components/policy/policy_constants.h" |
20 #include "components/prefs/pref_service.h" | 19 #include "components/prefs/pref_service.h" |
21 #include "components/signin/core/account_id/account_id.h" | 20 #include "components/signin/core/account_id/account_id.h" |
22 #include "components/user_manager/user_manager.h" | 21 #include "components/user_manager/user_manager.h" |
23 #include "content/public/browser/notification_service.h" | 22 #include "content/public/browser/notification_service.h" |
24 #include "content/public/test/test_utils.h" | 23 #include "content/public/test/test_utils.h" |
25 #include "extensions/browser/api_test_utils.h" | 24 #include "extensions/browser/api_test_utils.h" |
26 #include "extensions/browser/extension_registry.h" | 25 #include "extensions/browser/extension_registry.h" |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 "'enterprise.deviceAttributes' is not allowed for specified install " | 238 "'enterprise.deviceAttributes' is not allowed for specified install " |
240 "location.", | 239 "location.", |
241 extension->install_warnings()[0].message); | 240 extension->install_warnings()[0].message); |
242 } | 241 } |
243 | 242 |
244 // Both cases of affiliated and non-affiliated on the device user are tested. | 243 // Both cases of affiliated and non-affiliated on the device user are tested. |
245 INSTANTIATE_TEST_CASE_P(AffiliationCheck, | 244 INSTANTIATE_TEST_CASE_P(AffiliationCheck, |
246 EnterpriseDeviceAttributesTest, | 245 EnterpriseDeviceAttributesTest, |
247 ::testing::Values(Params(true), Params(false))); | 246 ::testing::Values(Params(true), Params(false))); |
248 } // namespace extensions | 247 } // namespace extensions |
OLD | NEW |