diff options
author | Scott Lobdell <slobdell@google.com> | 2019-03-05 11:56:41 -0800 |
---|---|---|
committer | Scott Lobdell <slobdell@google.com> | 2019-03-05 16:53:31 -0800 |
commit | 838bccb515036433be3a55bec702336f170df38a (patch) | |
tree | eb94a5e0cbab6fa3e8f5539fed44dd081f48fc04 /update_attempter_android_unittest.cc | |
parent | 2af3457b7362c163b1896f7a4b6eee69f8439296 (diff) | |
parent | 4eee53f5949d5e4cb43894b3d190daf635e31338 (diff) |
Merge QP1A.190228.005
Change-Id: I546552fe26b74b96c18d929cdda1a527bbcdf4dc
Diffstat (limited to 'update_attempter_android_unittest.cc')
-rw-r--r-- | update_attempter_android_unittest.cc | 3 |
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) { |