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

Side by Side Diff: tests/GrUnitTests.cpp

Issue 145313004: Cleanup: Sanitize the order of includes under tests/ (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: more two fixes 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/GrMemoryPoolTest.cpp ('k') | tests/GradientTest.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 /* 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
11 #if SK_SUPPORT_GPU 11 #if SK_SUPPORT_GPU
12 #include "GrBinHashKey.h" 12 #include "GrBinHashKey.h"
13 #include "GrDrawTarget.h" 13 #include "GrDrawTarget.h"
14 #include "GrRedBlackTree.h"
14 #include "SkMatrix.h" 15 #include "SkMatrix.h"
15 #include "GrRedBlackTree.h"
16 16
17 // If we aren't inheriting these as #defines from elsewhere, 17 // If we aren't inheriting these as #defines from elsewhere,
18 // clang demands they be declared before we #include the template 18 // clang demands they be declared before we #include the template
19 // that relies on them. 19 // that relies on them.
20 static bool LT(const int& elem, int value) { 20 static bool LT(const int& elem, int value) {
21 return elem < value; 21 return elem < value;
22 } 22 }
23 static bool EQ(const int& elem, int value) { 23 static bool EQ(const int& elem, int value) {
24 return elem == value; 24 return elem == value;
25 } 25 }
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
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) { 71 DEF_TEST(GrUnitTests_redBlackTree, reporter) {
72 // TODO(mtklein): unwrap this and use reporter. 72 // TODO(mtklein): unwrap this and use reporter.
73 GrRedBlackTree<int>::UnitTest(); 73 GrRedBlackTree<int>::UnitTest();
74 } 74 }
75 75
76 #endif 76 #endif
OLDNEW
« no previous file with comments | « tests/GrMemoryPoolTest.cpp ('k') | tests/GradientTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698