OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/macros.h" |
6 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
7 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
8 #include "base/threading/platform_thread.h" | 9 #include "base/threading/platform_thread.h" |
9 #include "base/time/time.h" | 10 #include "base/time/time.h" |
10 #include "chrome/browser/chromeos/attestation/platform_verification_flow.h" | 11 #include "chrome/browser/chromeos/attestation/platform_verification_flow.h" |
11 #include "chrome/browser/chromeos/policy/device_policy_builder.h" | 12 #include "chrome/browser/chromeos/policy/device_policy_builder.h" |
12 #include "chrome/browser/chromeos/policy/device_policy_cros_browser_test.h" | 13 #include "chrome/browser/chromeos/policy/device_policy_cros_browser_test.h" |
13 #include "chrome/browser/chromeos/policy/proto/chrome_device_policy.pb.h" | 14 #include "chrome/browser/chromeos/policy/proto/chrome_device_policy.pb.h" |
14 #include "chrome/browser/chromeos/settings/device_settings_service.h" | 15 #include "chrome/browser/chromeos/settings/device_settings_service.h" |
15 #include "chrome/browser/ui/browser.h" | 16 #include "chrome/browser/ui/browser.h" |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 SyncContentProtectionAttestation()); | 115 SyncContentProtectionAttestation()); |
115 | 116 |
116 GetDevicePolicyProto()->set_content_protection_enabled(true); | 117 GetDevicePolicyProto()->set_content_protection_enabled(true); |
117 SyncRefreshDevicePolicy(); | 118 SyncRefreshDevicePolicy(); |
118 | 119 |
119 EXPECT_NE(PlatformVerificationFlow::POLICY_REJECTED, | 120 EXPECT_NE(PlatformVerificationFlow::POLICY_REJECTED, |
120 SyncContentProtectionAttestation()); | 121 SyncContentProtectionAttestation()); |
121 } | 122 } |
122 | 123 |
123 } // namespace policy | 124 } // namespace policy |
OLD | NEW |