summaryrefslogtreecommitdiff
path: root/update_attempter_android_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'update_attempter_android_unittest.cc')
-rw-r--r--update_attempter_android_unittest.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/update_attempter_android_unittest.cc b/update_attempter_android_unittest.cc
index 2593d44a..3be0b7ea 100644
--- a/update_attempter_android_unittest.cc
+++ b/update_attempter_android_unittest.cc
@@ -111,9 +111,10 @@ TEST_F(UpdateAttempterAndroidTest, UpdatePrefsBuildVersionChangeOnInit) {
update_attempter_android_.Init();
// Check that we reset the metric prefs.
EXPECT_FALSE(prefs_.Exists(kPrefsNumReboots));
- EXPECT_FALSE(prefs_.Exists(kPrefsPayloadAttemptNumber));
EXPECT_FALSE(prefs_.Exists(kPrefsUpdateTimestampStart));
EXPECT_FALSE(prefs_.Exists(kPrefsSystemUpdatedMarker));
+ // PayloadAttemptNumber should persist across reboots.
+ EXPECT_TRUE(prefs_.Exists(kPrefsPayloadAttemptNumber));
}
TEST_F(UpdateAttempterAndroidTest, ReportMetricsOnUpdateTerminated) {