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

Side by Side Diff: chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos_unittest.cc

Issue 2621413007: Revert of Re-enable fetching component policies for login screen apps (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h" 5 #include "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <memory> 10 #include <memory>
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 class TestingDeviceCloudPolicyManagerChromeOS 94 class TestingDeviceCloudPolicyManagerChromeOS
95 : public DeviceCloudPolicyManagerChromeOS { 95 : public DeviceCloudPolicyManagerChromeOS {
96 public: 96 public:
97 TestingDeviceCloudPolicyManagerChromeOS( 97 TestingDeviceCloudPolicyManagerChromeOS(
98 std::unique_ptr<DeviceCloudPolicyStoreChromeOS> store, 98 std::unique_ptr<DeviceCloudPolicyStoreChromeOS> store,
99 const scoped_refptr<base::SequencedTaskRunner>& task_runner, 99 const scoped_refptr<base::SequencedTaskRunner>& task_runner,
100 ServerBackedStateKeysBroker* state_keys_broker) 100 ServerBackedStateKeysBroker* state_keys_broker)
101 : DeviceCloudPolicyManagerChromeOS(std::move(store), 101 : DeviceCloudPolicyManagerChromeOS(std::move(store),
102 task_runner, 102 task_runner,
103 state_keys_broker) { 103 state_keys_broker) {
104 set_component_policy_disabled_for_testing(true); 104 set_is_component_policy_enabled_for_testing(false);
105 } 105 }
106 106
107 ~TestingDeviceCloudPolicyManagerChromeOS() override {} 107 ~TestingDeviceCloudPolicyManagerChromeOS() override {}
108 }; 108 };
109 109
110 class DeviceCloudPolicyManagerChromeOSTest 110 class DeviceCloudPolicyManagerChromeOSTest
111 : public chromeos::DeviceSettingsTestBase, 111 : public chromeos::DeviceSettingsTestBase,
112 public DeviceCloudPolicyManagerChromeOS::Observer { 112 public DeviceCloudPolicyManagerChromeOS::Observer {
113 protected: 113 protected:
114 DeviceCloudPolicyManagerChromeOSTest() 114 DeviceCloudPolicyManagerChromeOSTest()
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after
821 DeviceCloudPolicyManagerChromeOSEnrollmentTest, 821 DeviceCloudPolicyManagerChromeOSEnrollmentTest,
822 ::testing::Values(false, true)); 822 ::testing::Values(false, true));
823 823
824 INSTANTIATE_TEST_CASE_P( 824 INSTANTIATE_TEST_CASE_P(
825 Cert, 825 Cert,
826 DeviceCloudPolicyManagerChromeOSEnrollmentBlankSystemSaltTest, 826 DeviceCloudPolicyManagerChromeOSEnrollmentBlankSystemSaltTest,
827 ::testing::Values(false, true)); 827 ::testing::Values(false, true));
828 828
829 } // namespace 829 } // namespace
830 } // namespace policy 830 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698