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

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

Issue 2476493003: Remove FundamentalValue
Patch Set: Fix Created 4 years, 1 month 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 "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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 initializer_->SetSigningServiceForTesting( 223 initializer_->SetSigningServiceForTesting(
224 base::MakeUnique<FakeSigningService>()); 224 base::MakeUnique<FakeSigningService>());
225 initializer_->Init(); 225 initializer_->Init();
226 } 226 }
227 227
228 void VerifyPolicyPopulated() { 228 void VerifyPolicyPopulated() {
229 PolicyBundle bundle; 229 PolicyBundle bundle;
230 bundle.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())) 230 bundle.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, std::string()))
231 .Set(key::kDeviceMetricsReportingEnabled, POLICY_LEVEL_MANDATORY, 231 .Set(key::kDeviceMetricsReportingEnabled, POLICY_LEVEL_MANDATORY,
232 POLICY_SCOPE_MACHINE, POLICY_SOURCE_CLOUD, 232 POLICY_SCOPE_MACHINE, POLICY_SOURCE_CLOUD,
233 base::MakeUnique<base::FundamentalValue>(false), nullptr); 233 base::MakeUnique<base::Value>(false), nullptr);
234 EXPECT_TRUE(manager_->policies().Equals(bundle)); 234 EXPECT_TRUE(manager_->policies().Equals(bundle));
235 } 235 }
236 236
237 void AllowUninterestingRemoteCommandFetches() { 237 void AllowUninterestingRemoteCommandFetches() {
238 // We are not interested in remote command fetches that the client initiates 238 // We are not interested in remote command fetches that the client initiates
239 // automatically. Make them fail and ignore them otherwise. 239 // automatically. Make them fail and ignore them otherwise.
240 EXPECT_CALL(device_management_service_, 240 EXPECT_CALL(device_management_service_,
241 CreateJob(DeviceManagementRequestJob::TYPE_REMOTE_COMMANDS, _)) 241 CreateJob(DeviceManagementRequestJob::TYPE_REMOTE_COMMANDS, _))
242 .Times(AnyNumber()) 242 .Times(AnyNumber())
243 .WillRepeatedly(device_management_service_.FailJob( 243 .WillRepeatedly(device_management_service_.FailJob(
(...skipping 577 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

Powered by Google App Engine
This is Rietveld 408576698