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

Unified Diff: chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos_unittest.cc

Issue 2453993004: Match server version of DM API proto. (Closed)
Patch Set: Style and comment fixes. Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/remote_commands/device_command_screenshot_job_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos_unittest.cc
diff --git a/chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos_unittest.cc b/chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos_unittest.cc
index fdbb0b285aa147ca7a31a9f04fef32b90fdadef8..1201855ed125d906a01366bf4404da310dbfa525 100644
--- a/chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos_unittest.cc
+++ b/chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos_unittest.cc
@@ -201,8 +201,8 @@ TEST_F(DeviceCloudPolicyStoreChromeOSTest,
PrepareExistingPolicy();
device_policy_.SetDefaultNewSigningKey();
device_policy_.Build();
- *device_policy_.policy().mutable_new_public_key_verification_signature() =
- "garbage";
+ *device_policy_.policy()
+ .mutable_new_public_key_verification_signature_deprecated() = "garbage";
store_->Store(device_policy_.policy());
FlushDeviceSettings();
EXPECT_EQ(CloudPolicyStore::STATUS_VALIDATION_ERROR, store_->status());
@@ -215,7 +215,8 @@ TEST_F(DeviceCloudPolicyStoreChromeOSTest,
PrepareExistingPolicy();
device_policy_.SetDefaultNewSigningKey();
device_policy_.Build();
- device_policy_.policy().clear_new_public_key_verification_signature();
+ device_policy_.policy()
+ .clear_new_public_key_verification_signature_deprecated();
store_->Store(device_policy_.policy());
FlushDeviceSettings();
EXPECT_EQ(CloudPolicyStore::STATUS_VALIDATION_ERROR, store_->status());
@@ -243,8 +244,8 @@ TEST_F(DeviceCloudPolicyStoreChromeOSTest, InstallInitialPolicyNoSignature) {
TEST_F(DeviceCloudPolicyStoreChromeOSTest,
InstallInitialPolicyVerificationFailure) {
PrepareNewSigningKey();
- *device_policy_.policy().mutable_new_public_key_verification_signature() =
- "garbage";
+ *device_policy_.policy()
+ .mutable_new_public_key_verification_signature_deprecated() = "garbage";
store_->InstallInitialPolicy(device_policy_.policy());
FlushDeviceSettings();
ExpectFailure(CloudPolicyStore::STATUS_VALIDATION_ERROR);
@@ -255,7 +256,8 @@ TEST_F(DeviceCloudPolicyStoreChromeOSTest,
TEST_F(DeviceCloudPolicyStoreChromeOSTest,
InstallInitialPolicyMissingSignatureFailure) {
PrepareNewSigningKey();
- device_policy_.policy().clear_new_public_key_verification_signature();
+ device_policy_.policy()
+ .clear_new_public_key_verification_signature_deprecated();
store_->InstallInitialPolicy(device_policy_.policy());
FlushDeviceSettings();
ExpectFailure(CloudPolicyStore::STATUS_VALIDATION_ERROR);
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/remote_commands/device_command_screenshot_job_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698