| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |