Commit 0fd7eeee authored by Alexei Svitkine's avatar Alexei Svitkine Committed by Commit Bot

Fix TimeTest.FromExploded_MinMax on macOS 10.13.

BUG=785341

Change-Id: I23c09aba5b81386c6ebefacd4a51b9e4fc3c4f30
Reviewed-on: https://chromium-review.googlesource.com/774902Reviewed-by: default avatarMark Mentovai <mark@chromium.org>
Commit-Queue: Alexei Svitkine <asvitkine@chromium.org>
Cr-Commit-Position: refs/heads/master@{#517168}
parent 09f28145
......@@ -653,9 +653,10 @@ TEST_F(TimeTest, FromExploded_MinMax) {
EXPECT_FALSE(parsed_time.is_null());
#endif
#if !defined(OS_ANDROID)
#if !defined(OS_ANDROID) && !defined(OS_MACOSX)
// The dates earlier than |kExplodedMinYear| that don't work are OS version
// dependent on Android.
// dependent on Android and Mac (for example, macOS 10.13 seems to support
// dates before 1902).
exploded.year--;
EXPECT_FALSE(Time::FromUTCExploded(exploded, &parsed_time));
EXPECT_TRUE(parsed_time.is_null());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment