OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2010 Google Inc. | 3 * Copyright 2010 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 #include "Test.h" | 8 #include "Test.h" |
9 | 9 |
10 // This is a GPU-backend specific test | 10 // This is a GPU-backend specific test |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 REPORTER_ASSERT(reporter, keyA == keyA2); | 61 REPORTER_ASSERT(reporter, keyA == keyA2); |
62 REPORTER_ASSERT(reporter, keyA.getHash() == keyA2.getHash()); | 62 REPORTER_ASSERT(reporter, keyA.getHash() == keyA2.getHash()); |
63 // test sorting | 63 // test sorting |
64 GrBinHashKey<kDataLenUsedForKey> keyB; | 64 GrBinHashKey<kDataLenUsedForKey> keyB; |
65 keyB.setKeyData(testStringB); | 65 keyB.setKeyData(testStringB); |
66 REPORTER_ASSERT(reporter, keyA < keyB); | 66 REPORTER_ASSERT(reporter, keyA < keyB); |
67 REPORTER_ASSERT(reporter, keyA.getHash() != keyB.getHash()); | 67 REPORTER_ASSERT(reporter, keyA.getHash() != keyB.getHash()); |
68 } | 68 } |
69 | 69 |
70 | 70 |
| 71 DEF_TEST(GrUnitTests_redBlackTree, reporter) { |
| 72 // TODO(mtklein): unwrap this and use reporter. |
| 73 GrRedBlackTree<int>::UnitTest(); |
| 74 } |
| 75 |
71 #endif | 76 #endif |
OLD | NEW |