| 45 | } |
| 46 | |
| 47 | inline DateValue ParseValidateDate(const char* s, bool accept_time_toks, int exp_year, |
| 48 | int exp_month, int exp_day) { |
| 49 | DCHECK(s != nullptr); |
| 50 | DateValue v = DateValue::ParseSimpleDateFormat(s, strlen(s), accept_time_toks); |
| 51 | ValidateDate(v, exp_year, exp_month, exp_day, s); |
| 52 | return v; |
| 53 | } |
| 54 | |
| 55 | TEST(DateTest, ParseDefault) { |
| 56 | // Parse with time tokens rejected. |