Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: tests/Time.cpp

Issue 1313203003: Remove include of stdlib.h from SkTypes.h. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Clean up qsort conversion. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tests/SortTest.cpp ('k') | tools/PictureRenderingFlags.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 26 matching lines...) Expand all
37 REPORTER_ASSERT(r, dateTime.fDay <= 31); 37 REPORTER_ASSERT(r, dateTime.fDay <= 31);
38 38
39 REPORTER_ASSERT(r, dateTime.fHour <= 23); 39 REPORTER_ASSERT(r, dateTime.fHour <= 23);
40 40
41 REPORTER_ASSERT(r, dateTime.fMinute <= 59); 41 REPORTER_ASSERT(r, dateTime.fMinute <= 59);
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, abs(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 if (r->verbose()) { // `dm --veryVerbose`
53 SkDebugf("\nCurrent Time (ISO-8601 format): \"%s\"\n", 53 SkDebugf("\nCurrent Time (ISO-8601 format): \"%s\"\n",
54 timeStamp.c_str()); 54 timeStamp.c_str());
55 } 55 }
56 } 56 }
OLDNEW
« no previous file with comments | « tests/SortTest.cpp ('k') | tools/PictureRenderingFlags.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698