| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "SkTime.h" | 8 #include "SkTime.h" |
| 9 #include "Test.h" | 9 #include "Test.h" |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 REPORTER_ASSERT(r, dateTime.fSecond <= 60); // leap seconds are 23:59:60 | 43 REPORTER_ASSERT(r, dateTime.fSecond <= 60); // leap seconds are 23:59:60 |
| 44 | 44 |
| 45 // The westernmost timezone is -12:00. | 45 // The westernmost timezone is -12:00. |
| 46 // The easternmost timezone is +14:00. | 46 // The easternmost timezone is +14:00. |
| 47 REPORTER_ASSERT(r, SkTAbs(SkToInt(dateTime.fTimeZoneMinutes)) <= 14 * 60); | 47 REPORTER_ASSERT(r, SkTAbs(SkToInt(dateTime.fTimeZoneMinutes)) <= 14 * 60); |
| 48 | 48 |
| 49 SkString timeStamp; | 49 SkString timeStamp; |
| 50 dateTime.toISO8601(&timeStamp); | 50 dateTime.toISO8601(&timeStamp); |
| 51 REPORTER_ASSERT(r, timeStamp.size() > 0); | 51 REPORTER_ASSERT(r, timeStamp.size() > 0); |
| 52 if (r->verbose()) { // `dm --veryVerbose` | 52 INFOF(r, "\nCurrent Time (ISO-8601 format): \"%s\"\n", |
| 53 SkDebugf("\nCurrent Time (ISO-8601 format): \"%s\"\n", | 53 timeStamp.c_str()); |
| 54 timeStamp.c_str()); | |
| 55 } | |
| 56 } | 54 } |
| OLD | NEW |