• Home
  • Raw
  • Download

Lines Matching refs:TimeZone

25 TEST(TimeZone, ValueSemantics) {  in TEST()  argument
26 absl::TimeZone tz; in TEST()
27 absl::TimeZone tz2 = tz; // Copy-construct in TEST()
33 TEST(TimeZone, Equality) { in TEST() argument
34 absl::TimeZone a, b; in TEST()
38 absl::TimeZone implicit_utc; in TEST()
39 absl::TimeZone explicit_utc = absl::UTCTimeZone(); in TEST()
43 absl::TimeZone la = absl::time_internal::LoadTimeZone("America/Los_Angeles"); in TEST()
44 absl::TimeZone nyc = absl::time_internal::LoadTimeZone("America/New_York"); in TEST()
48 TEST(TimeZone, CCTZConversion) { in TEST() argument
50 const absl::TimeZone tz(cz); in TEST()
54 TEST(TimeZone, DefaultTimeZones) { in TEST() argument
55 absl::TimeZone tz; in TEST()
56 EXPECT_EQ("UTC", absl::TimeZone().name()); in TEST()
60 TEST(TimeZone, FixedTimeZone) { in TEST() argument
61 const absl::TimeZone tz = absl::FixedTimeZone(123); in TEST()
63 EXPECT_EQ(tz, absl::TimeZone(cz)); in TEST()
66 TEST(TimeZone, LocalTimeZone) { in TEST() argument
67 const absl::TimeZone local_tz = absl::LocalTimeZone(); in TEST()
68 absl::TimeZone tz = absl::time_internal::LoadTimeZone("localtime"); in TEST()
72 TEST(TimeZone, NamedTimeZones) { in TEST() argument
73 absl::TimeZone nyc = absl::time_internal::LoadTimeZone("America/New_York"); in TEST()
75 absl::TimeZone syd = absl::time_internal::LoadTimeZone("Australia/Sydney"); in TEST()
77 absl::TimeZone fixed = absl::FixedTimeZone((((3 * 60) + 25) * 60) + 45); in TEST()
81 TEST(TimeZone, Failures) { in TEST() argument
82 absl::TimeZone tz = absl::time_internal::LoadTimeZone("America/Los_Angeles"); in TEST()