Measure and report time between user-space process crashes.

BUG=none
TEST=unit tests, gmerged on the device and inspected
logs, about:histograms,etc.

Review URL: http://codereview.chromium.org/2736008
diff --git a/metrics/counter_test.cc b/metrics/counter_test.cc
index f9a191f..605e859 100644
--- a/metrics/counter_test.cc
+++ b/metrics/counter_test.cc
@@ -230,8 +230,8 @@
   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 @@
 
   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