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

Side by Side Diff: tests/GrRedBlackTreeTest.cpp

Issue 147843006: GrRedBlackTree test is GPU specific. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 10 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 | « no previous file | no next file » | 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 2014 Google Inc. 2 * Copyright 2014 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 // This is a GPU-backend specific test
9 #if SK_SUPPORT_GPU
10
8 #include "GrRedBlackTree.h" 11 #include "GrRedBlackTree.h"
9 #include "SkRandom.h" 12 #include "SkRandom.h"
10 #include "Test.h" 13 #include "Test.h"
11 14
12 typedef GrRedBlackTree<int> Tree; 15 typedef GrRedBlackTree<int> Tree;
13 16
14 DEF_TEST(GrRedBlackTreeTest, reporter) { 17 DEF_TEST(GrRedBlackTreeTest, reporter) {
15 Tree tree; 18 Tree tree;
16 19
17 SkRandom r; 20 SkRandom r;
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 } 174 }
172 175
173 // remove all entries 176 // remove all entries
174 while (!tree.empty()) { 177 while (!tree.empty()) {
175 tree.remove(tree.begin()); 178 tree.remove(tree.begin());
176 } 179 }
177 180
178 // test reset on empty tree. 181 // test reset on empty tree.
179 tree.reset(); 182 tree.reset();
180 } 183 }
184
185 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698