Index: chrome/browser/chromeos/attestation/platform_verification_flow_unittest.cc |
diff --git a/chrome/browser/chromeos/attestation/platform_verification_flow_unittest.cc b/chrome/browser/chromeos/attestation/platform_verification_flow_unittest.cc |
index 36a818195c120651d0d6d7e737a63321c54d1089..c984e2c5ccd4f4a09756e3e42d15295fe06a4f1c 100644 |
--- a/chrome/browser/chromeos/attestation/platform_verification_flow_unittest.cc |
+++ b/chrome/browser/chromeos/attestation/platform_verification_flow_unittest.cc |
@@ -207,9 +207,8 @@ class PlatformVerificationFlowTest : public ::testing::Test { |
cros_settings->SetBoolean(kAttestationForContentProtectionEnabled, true); |
// Start with the first-time setting set since most tests want this. |
- fake_delegate_.pref_service().SetUserPref(prefs::kRAConsentFirstTime, |
+ fake_delegate_.pref_service().SetUserPref(prefs::kRAConsentGranted, |
new base::FundamentalValue(true)); |
- |
} |
void TearDown() { |
@@ -244,8 +243,7 @@ class PlatformVerificationFlowTest : public ::testing::Test { |
} |
void SetUserConsent(const GURL& url, bool allow) { |
- verifier_->RecordDomainConsent(fake_delegate_.GetContentSettings(NULL), |
- url, |
+ verifier_->RecordOriginConsent(fake_delegate_.GetContentSettings(NULL), url, |
allow); |
} |
@@ -332,22 +330,9 @@ TEST_F(PlatformVerificationFlowTest, SuccessNoConsent) { |
EXPECT_EQ(0, fake_delegate_.num_consent_calls()); |
} |
-TEST_F(PlatformVerificationFlowTest, SuccessWithAttestationConsent) { |
- SetUserConsent(GURL(kTestURL), true); |
- fake_cryptohome_client_.set_attestation_enrolled(false); |
- ExpectAttestationFlow(); |
- verifier_->ChallengePlatformKey(NULL, kTestID, kTestChallenge, callback_); |
- base::RunLoop().RunUntilIdle(); |
- EXPECT_EQ(PlatformVerificationFlow::SUCCESS, result_); |
- EXPECT_EQ(kTestSignedData, challenge_salt_); |
- EXPECT_EQ(kTestSignature, challenge_signature_); |
- EXPECT_EQ(kTestCertificate, certificate_); |
- EXPECT_EQ(1, fake_delegate_.num_consent_calls()); |
-} |
- |
-TEST_F(PlatformVerificationFlowTest, SuccessWithFirstTimeConsent) { |
+TEST_F(PlatformVerificationFlowTest, SuccessWithConsent) { |
SetUserConsent(GURL(kTestURL), true); |
- fake_delegate_.pref_service().SetUserPref(prefs::kRAConsentFirstTime, |
+ fake_delegate_.pref_service().SetUserPref(prefs::kRAConsentGranted, |
new base::FundamentalValue(false)); |
ExpectAttestationFlow(); |
verifier_->ChallengePlatformKey(NULL, kTestID, kTestChallenge, callback_); |