summaryrefslogtreecommitdiffstats
path: root/base/pr_time_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/pr_time_test.cc')
-rw-r--r--base/pr_time_test.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/base/pr_time_test.cc b/base/pr_time_test.cc
index 8a0ed5a..ad8e135 100644
--- a/base/pr_time_test.cc
+++ b/base/pr_time_test.cc
@@ -257,3 +257,8 @@ TEST_F(PRTimeTest, ParseTimeTestEpoch1960) {
&parsed_time));
EXPECT_EQ(-300003599, parsed_time.ToTimeT());
}
+
+TEST_F(PRTimeTest, ParseTimeTestEmpty) {
+ Time parsed_time;
+ EXPECT_FALSE(Time::FromString(L"", &parsed_time));
+}