| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/i18n/time_formatting.h" | 5 #include "base/i18n/time_formatting.h" |
| 6 | 6 |
| 7 #include "base/i18n/rtl.h" | 7 #include "base/i18n/rtl.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "base/test/icu_test_util.h" | 10 #include "base/test/icu_test_util.h" |
| 11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/googletest/include/gtest/gtest.h" |
| 13 #include "third_party/icu/source/common/unicode/uversion.h" | 13 #include "third_party/icu/source/common/unicode/uversion.h" |
| 14 #include "third_party/icu/source/i18n/unicode/calendar.h" | 14 #include "third_party/icu/source/i18n/unicode/calendar.h" |
| 15 #include "third_party/icu/source/i18n/unicode/timezone.h" | 15 #include "third_party/icu/source/i18n/unicode/timezone.h" |
| 16 #include "third_party/icu/source/i18n/unicode/tzfmt.h" | 16 #include "third_party/icu/source/i18n/unicode/tzfmt.h" |
| 17 | 17 |
| 18 namespace base { | 18 namespace base { |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| 21 const Time::Exploded kTestDateTimeExploded = { | 21 const Time::Exploded kTestDateTimeExploded = { |
| 22 2011, 4, 6, 30, // Sat, Apr 30, 2011 | 22 2011, 4, 6, 30, // Sat, Apr 30, 2011 |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 EXPECT_EQ(ASCIIToUTF16("30/04/2011, 15:42:07 ") + GetShortTimeZone(time), | 183 EXPECT_EQ(ASCIIToUTF16("30/04/2011, 15:42:07 ") + GetShortTimeZone(time), |
| 184 TimeFormatShortDateAndTimeWithTimeZone(time)); | 184 TimeFormatShortDateAndTimeWithTimeZone(time)); |
| 185 EXPECT_EQ(ASCIIToUTF16("Saturday, 30 April 2011 at 15:42:07"), | 185 EXPECT_EQ(ASCIIToUTF16("Saturday, 30 April 2011 at 15:42:07"), |
| 186 TimeFormatFriendlyDateAndTime(time)); | 186 TimeFormatFriendlyDateAndTime(time)); |
| 187 EXPECT_EQ(ASCIIToUTF16("Saturday, 30 April 2011"), | 187 EXPECT_EQ(ASCIIToUTF16("Saturday, 30 April 2011"), |
| 188 TimeFormatFriendlyDate(time)); | 188 TimeFormatFriendlyDate(time)); |
| 189 } | 189 } |
| 190 | 190 |
| 191 } // namespace | 191 } // namespace |
| 192 } // namespace base | 192 } // namespace base |
| OLD | NEW |