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

Unified Diff: counter_test.cc

Issue 2736008: Measure and report time between user-space process crashes. (Closed) Base URL: ssh://git@chromiumos-git/metrics.git
Patch Set: No need to start the back off again on crashes. Created 10 years, 6 months 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 | « counter.cc ('k') | metrics_daemon.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « counter.cc ('k') | metrics_daemon.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698