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

Side by Side Diff: src/gpu/gr_unittests.cpp

Issue 23703010: Replace uses of GR_DEBUGCODE by SkDEBUGCODE. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 3 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 | « src/gpu/gl/GrGLShaderBuilder.cpp ('k') | 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 /* 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 8
9 #include "GrBinHashKey.h" 9 #include "GrBinHashKey.h"
10 #include "GrDrawTarget.h" 10 #include "GrDrawTarget.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 SkASSERT(keyA.getHash() == keyA2.getHash()); 67 SkASSERT(keyA.getHash() == keyA2.getHash());
68 // test sorting 68 // test sorting
69 GrTBinHashKey<BogusEntry, kDataLenUsedForKey> keyB; 69 GrTBinHashKey<BogusEntry, kDataLenUsedForKey> keyB;
70 keyB.setKeyData(testStringB); 70 keyB.setKeyData(testStringB);
71 SkASSERT(keyA.compare(keyB) < 0); 71 SkASSERT(keyA.compare(keyB) < 0);
72 SkASSERT(keyA.getHash() != keyB.getHash()); 72 SkASSERT(keyA.getHash() != keyB.getHash());
73 } 73 }
74 74
75 75
76 void gr_run_unittests() { 76 void gr_run_unittests() {
77 GR_DEBUGCODE(test_bsearch();) 77 SkDEBUGCODE(test_bsearch();)
78 test_binHashKey(); 78 test_binHashKey();
79 GrRedBlackTree<int>::UnitTest(); 79 GrRedBlackTree<int>::UnitTest();
80 } 80 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLShaderBuilder.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698