Index: counter_test.cc |
diff --git a/counter_test.cc b/counter_test.cc |
index f9a191f15a4acedf190e222e40373dc94253166d..605e859dcc6f5cce6c791a5312b01ab5daeaf7a2 100644 |
--- a/counter_test.cc |
+++ b/counter_test.cc |
@@ -230,8 +230,8 @@ TEST_F(TaggedCounterTest, InitFromFile) { |
ExpectReporterCall(/* tag */ 31, /* count */ 60); |
counter_.Init(kTestRecordFile, &Reporter, this); |
counter_.Update(/* tag */ 32, /* count */ 0); |
- EXPECT_TRUE(AssertNoOrEmptyRecordFile()); |
- EXPECT_EQ(TaggedCounter::kRecordNull, counter_.record_state_); |
+ EXPECT_PRED_FORMAT2(AssertRecord, /* day */ 32, /* seconds */ 0); |
+ EXPECT_EQ(TaggedCounter::kRecordValid, counter_.record_state_); |
} |
TEST_F(TaggedCounterTest, Update) { |
@@ -250,8 +250,8 @@ TEST_F(TaggedCounterTest, Update) { |
ExpectReporterCall(/* tag */ 21, /* count */ 15); |
counter_.Update(/* tag */ 22, /* count */ 0); |
- EXPECT_TRUE(AssertNoOrEmptyRecordFile()); |
- EXPECT_EQ(TaggedCounter::kRecordNull, counter_.record_state_); |
+ EXPECT_PRED_FORMAT2(AssertRecord, /* day */ 22, /* seconds */ 0); |
+ EXPECT_EQ(TaggedCounter::kRecordValid, counter_.record_state_); |
} |
} // namespace chromeos_metrics |