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

Side by Side Diff: tests/StringTest.cpp

Issue 145313004: Cleanup: Sanitize the order of includes under tests/ (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: more two fixes Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « tests/StreamTest.cpp ('k') | tests/StrokeTest.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 2011 Google Inc. 2 * Copyright 2011 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 "Test.h"
9 #include "SkString.h"
10 #include <stdarg.h> 8 #include <stdarg.h>
11 #include <stdio.h> 9 #include <stdio.h>
10 #include "SkString.h"
11 #include "Test.h"
12 12
13 // Windows vsnprintf doesn't 0-terminate safely), but is so far 13 // Windows vsnprintf doesn't 0-terminate safely), but is so far
14 // encapsulated in SkString that we can't test it directly. 14 // encapsulated in SkString that we can't test it directly.
15 15
16 #ifdef SK_BUILD_FOR_WIN 16 #ifdef SK_BUILD_FOR_WIN
17 #define VSNPRINTF(buffer, size, format, args) \ 17 #define VSNPRINTF(buffer, size, format, args) \
18 vsnprintf_s(buffer, size, _TRUNCATE, format, args) 18 vsnprintf_s(buffer, size, _TRUNCATE, format, args)
19 #else 19 #else
20 #define VSNPRINTF vsnprintf 20 #define VSNPRINTF vsnprintf
21 #endif 21 #endif
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 191
192 SkStrSplit("a-_b_c-dee--f-_-_-g-", "-_", &results); 192 SkStrSplit("a-_b_c-dee--f-_-_-g-", "-_", &results);
193 REPORTER_ASSERT(r, results.count() == 6); 193 REPORTER_ASSERT(r, results.count() == 6);
194 REPORTER_ASSERT(r, results[0].equals("a")); 194 REPORTER_ASSERT(r, results[0].equals("a"));
195 REPORTER_ASSERT(r, results[1].equals("b")); 195 REPORTER_ASSERT(r, results[1].equals("b"));
196 REPORTER_ASSERT(r, results[2].equals("c")); 196 REPORTER_ASSERT(r, results[2].equals("c"));
197 REPORTER_ASSERT(r, results[3].equals("dee")); 197 REPORTER_ASSERT(r, results[3].equals("dee"));
198 REPORTER_ASSERT(r, results[4].equals("f")); 198 REPORTER_ASSERT(r, results[4].equals("f"));
199 REPORTER_ASSERT(r, results[5].equals("g")); 199 REPORTER_ASSERT(r, results[5].equals("g"));
200 } 200 }
OLDNEW
« no previous file with comments | « tests/StreamTest.cpp ('k') | tests/StrokeTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698