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

Side by Side Diff: tests/OSPathTest.cpp

Issue 138563004: Move macros from TestClassDef.h to Test.h (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: upload 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/MipMapTest.cpp ('k') | tests/OnceTest.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 2013 Google Inc. 2 * Copyright 2013 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" 8 #include "Test.h"
9 #include "TestClassDef.h"
10 #include "SkString.h" 9 #include "SkString.h"
11 #include "SkOSFile.h" 10 #include "SkOSFile.h"
12 11
13 /** 12 /**
14 * Test SkPathJoin and SkBasename. 13 * Test SkPathJoin and SkBasename.
15 * Will use SkPathJoin to append filename to dir, test that it works correctly, 14 * Will use SkPathJoin to append filename to dir, test that it works correctly,
16 * and tests using SkBasename on the result. 15 * and tests using SkBasename on the result.
17 * @param reporter Reporter for test conditions. 16 * @param reporter Reporter for test conditions.
18 * @param dir String representing the path to a folder. May or may not 17 * @param dir String representing the path to a folder. May or may not
19 * end with SkPATH_SEPARATOR. 18 * end with SkPATH_SEPARATOR.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 76
78 // Basename of NULL is an empty string. 77 // Basename of NULL is an empty string.
79 SkString empty = SkOSPath::SkBasename(NULL); 78 SkString empty = SkOSPath::SkBasename(NULL);
80 REPORTER_ASSERT(reporter, empty.size() == 0); 79 REPORTER_ASSERT(reporter, empty.size() == 0);
81 80
82 // Test that NULL can be used for the directory and filename. 81 // Test that NULL can be used for the directory and filename.
83 SkString emptyPath = SkOSPath::SkPathJoin(NULL, NULL); 82 SkString emptyPath = SkOSPath::SkPathJoin(NULL, NULL);
84 REPORTER_ASSERT(reporter, emptyPath.size() == 1); 83 REPORTER_ASSERT(reporter, emptyPath.size() == 1);
85 REPORTER_ASSERT(reporter, emptyPath.contains(SkPATH_SEPARATOR)); 84 REPORTER_ASSERT(reporter, emptyPath.contains(SkPATH_SEPARATOR));
86 } 85 }
OLDNEW
« no previous file with comments | « tests/MipMapTest.cpp ('k') | tests/OnceTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698