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

Side by Side Diff: tests/HashCacheTest.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/GradientTest.cpp ('k') | tests/ImageCacheTest.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 2012 Google Inc. 2 * Copyright 2012 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 9
11 // This is a GR test 10 // This is a GR test
12 #if SK_SUPPORT_GPU 11 #if SK_SUPPORT_GPU
13 #include "GrTHashTable.h" 12 #include "GrTHashTable.h"
14 13
15 struct HashElement { 14 struct HashElement {
16 int fKey; 15 int fKey;
17 int fValue; 16 int fValue;
18 }; 17 };
19 18
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 cache.remove(0, &negHashElements[0]); 145 cache.remove(0, &negHashElements[0]);
147 cache.remove(0, &posHashElements[0]); 146 cache.remove(0, &posHashElements[0]);
148 REPORTER_ASSERT(reporter, 18 == cache.count()); 147 REPORTER_ASSERT(reporter, 18 == cache.count());
149 148
150 HashElement* found = cache.find(0); 149 HashElement* found = cache.find(0);
151 REPORTER_ASSERT(reporter, NULL == found); 150 REPORTER_ASSERT(reporter, NULL == found);
152 } 151 }
153 } 152 }
154 153
155 #endif 154 #endif
OLDNEW
« no previous file with comments | « tests/GradientTest.cpp ('k') | tests/ImageCacheTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698