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

Side by Side Diff: tests/TestTest.cpp

Issue 1849463002: rename sk_gpu_test::GLContext to sk_gpu_test::GLTestContext (Closed) Base URL: https://chromium.googlesource.com/skia.git@move
Patch Set: readd gpu.gypi Created 4 years, 8 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
« no previous file with comments | « tests/Test.h ('k') | tests/TextureStorageAllocator.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 * Copyright 2015 Google Inc. 2 * Copyright 2015 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 9
10 #if SK_SUPPORT_GPU 10 #if SK_SUPPORT_GPU
11 #include "GrContext.h" 11 #include "GrContext.h"
12 #include "gl/GLContext.h" 12 #include "gl/GLTestContext.h"
13 #endif 13 #endif
14 14
15 15
16 // This is an example of a normal test. 16 // This is an example of a normal test.
17 DEF_TEST(TestNormal, reporter) { 17 DEF_TEST(TestNormal, reporter) {
18 REPORTER_ASSERT(reporter, reporter); 18 REPORTER_ASSERT(reporter, reporter);
19 } 19 }
20 20
21 // This is an example of a GPU test that uses common GrContextFactory factory to do the test. 21 // This is an example of a GPU test that uses common GrContextFactory factory to do the test.
22 #if SK_SUPPORT_GPU 22 #if SK_SUPPORT_GPU
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // This is an example of a GPU test that tests a property that uses the null GPU context. It should 57 // This is an example of a GPU test that tests a property that uses the null GPU context. It should
58 // be used if the test tests some behavior that is mocked with the null context. 58 // be used if the test tests some behavior that is mocked with the null context.
59 #if SK_SUPPORT_GPU 59 #if SK_SUPPORT_GPU
60 DEF_GPUTEST_FOR_NULL_CONTEXT(TestGpuNullContext, reporter, context) { 60 DEF_GPUTEST_FOR_NULL_CONTEXT(TestGpuNullContext, reporter, context) {
61 REPORTER_ASSERT(reporter, reporter); 61 REPORTER_ASSERT(reporter, reporter);
62 REPORTER_ASSERT(reporter, context); 62 REPORTER_ASSERT(reporter, context);
63 } 63 }
64 #endif 64 #endif
65 65
66 // This is an example of a GPU test that tests a property that should work for a ll GPU contexts. 66 // This is an example of a GPU test that tests a property that should work for a ll GPU contexts.
67 // It uses the additional GLContext* glContext to implement the test. 67 // It uses the additional GLTestContext* glContext to implement the test.
68 #if SK_SUPPORT_GPU 68 #if SK_SUPPORT_GPU
69 DEF_GPUTEST_FOR_ALL_CONTEXTS(TestGpuGrContextAndGLContext, reporter, context, gl Context) { 69 DEF_GPUTEST_FOR_ALL_CONTEXTS(TestGpuGrContextAndGLContext, reporter, context, gl Context) {
70 REPORTER_ASSERT(reporter, reporter); 70 REPORTER_ASSERT(reporter, reporter);
71 REPORTER_ASSERT(reporter, context); 71 REPORTER_ASSERT(reporter, context);
72 REPORTER_ASSERT(reporter, glContext); 72 REPORTER_ASSERT(reporter, glContext);
73 } 73 }
74 #endif 74 #endif
OLDNEW
« no previous file with comments | « tests/Test.h ('k') | tests/TextureStorageAllocator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698