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

Unified Diff: chrome/browser/chromeos/policy/user_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
Index: chrome/browser/chromeos/policy/user_cloud_policy_store_chromeos_unittest.cc
diff --git a/chrome/browser/chromeos/policy/user_cloud_policy_store_chromeos_unittest.cc b/chrome/browser/chromeos/policy/user_cloud_policy_store_chromeos_unittest.cc
index 58eb091fe34cb508c57ec95609eb902767addbb0..bad7097c7f61b304a1c263df039154e5ec048642 100644
--- a/chrome/browser/chromeos/policy/user_cloud_policy_store_chromeos_unittest.cc
+++ b/chrome/browser/chromeos/policy/user_cloud_policy_store_chromeos_unittest.cc
@@ -251,7 +251,8 @@ TEST_F(UserCloudPolicyStoreChromeOSTest, InitialStoreValidationFail) {
// Make the policy blob contain a new public key.
policy_.SetDefaultSigningKey();
policy_.Build();
- *policy_.policy().mutable_new_public_key_verification_signature() = "garbage";
+ *policy_.policy().mutable_new_public_key_verification_signature_deprecated() =
+ "garbage";
EXPECT_CALL(session_manager_client_,
StorePolicyForUser(cryptohome_id_, policy_.GetBlob(), _))
@@ -267,7 +268,7 @@ TEST_F(UserCloudPolicyStoreChromeOSTest, InitialStoreMissingSignatureFailure) {
// Make the policy blob contain a new public key.
policy_.SetDefaultSigningKey();
policy_.Build();
- policy_.policy().clear_new_public_key_verification_signature();
+ policy_.policy().clear_new_public_key_verification_signature_deprecated();
EXPECT_CALL(session_manager_client_,
StorePolicyForUser(cryptohome_id_, policy_.GetBlob(), _))
@@ -297,7 +298,7 @@ TEST_F(UserCloudPolicyStoreChromeOSTest,
// Make the policy blob contain a new public key.
policy_.SetDefaultNewSigningKey();
policy_.Build();
- policy_.policy().clear_new_public_key_verification_signature();
+ policy_.policy().clear_new_public_key_verification_signature_deprecated();
EXPECT_CALL(session_manager_client_,
StorePolicyForUser(cryptohome_id_, policy_.GetBlob(), _))
@@ -311,7 +312,8 @@ TEST_F(UserCloudPolicyStoreChromeOSTest, StoreWithRotationValidationError) {
// Make the policy blob contain a new public key.
policy_.SetDefaultNewSigningKey();
policy_.Build();
- *policy_.policy().mutable_new_public_key_verification_signature() = "garbage";
+ *policy_.policy().mutable_new_public_key_verification_signature_deprecated() =
+ "garbage";
EXPECT_CALL(session_manager_client_,
StorePolicyForUser(cryptohome_id_, policy_.GetBlob(), _))

Powered by Google App Engine
This is Rietveld 408576698