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

Unified Diff: chrome/browser/chromeos/settings/device_settings_service_unittest.cc

Issue 60323006: Updated test expectations after http://crrev.com/233323. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/settings/device_settings_service_unittest.cc
diff --git a/chrome/browser/chromeos/settings/device_settings_service_unittest.cc b/chrome/browser/chromeos/settings/device_settings_service_unittest.cc
index acdf6d10bf2d09a0218c416356d56721d8c463ae..3bc130fcaa4410437117fc0d257b1b7184e0b427 100644
--- a/chrome/browser/chromeos/settings/device_settings_service_unittest.cc
+++ b/chrome/browser/chromeos/settings/device_settings_service_unittest.cc
@@ -121,10 +121,11 @@ TEST_F(DeviceSettingsServiceTest, LoadValidationErrorFutureTimestamp) {
owner_key_util_->SetPublicKeyFromPrivateKey(*device_policy_.GetSigningKey());
ReloadDeviceSettings();
- EXPECT_EQ(DeviceSettingsService::STORE_TEMP_VALIDATION_ERROR,
+ // Loading a cached device policy with a timestamp in the future should work,
+ // since this may be due to a broken clock on the client device.
+ EXPECT_EQ(DeviceSettingsService::STORE_SUCCESS,
device_settings_service_.status());
- EXPECT_FALSE(device_settings_service_.policy_data());
- EXPECT_FALSE(device_settings_service_.device_settings());
+ CheckPolicy();
}
TEST_F(DeviceSettingsServiceTest, LoadSuccess) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698