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

Side by Side Diff: tests/TestTest.cpp

Issue 1855993002: Remove 'native' context unit test macro. (Closed) Base URL: https://skia.googlesource.com/skia.git@fixx1
Patch Set: rebase 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') | 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 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
(...skipping 26 matching lines...) Expand all
37 37
38 // This is an example of a GPU test that tests a property that should work for a ll GPU contexts that 38 // This is an example of a GPU test that tests a property that should work for a ll GPU contexts that
39 // produce a rendering output. 39 // produce a rendering output.
40 #if SK_SUPPORT_GPU 40 #if SK_SUPPORT_GPU
41 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(TestGpuRenderingContexts, reporter, context) { 41 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(TestGpuRenderingContexts, reporter, context) {
42 REPORTER_ASSERT(reporter, reporter); 42 REPORTER_ASSERT(reporter, reporter);
43 REPORTER_ASSERT(reporter, context); 43 REPORTER_ASSERT(reporter, context);
44 } 44 }
45 #endif 45 #endif
46 46
47 // This is an example of a GPU test that tests a property that should work at le ast for the native
48 // GPU context. If the test takes a long time to run, it may be appropriate to t est only the native
49 // context.
50 #if SK_SUPPORT_GPU
51 DEF_GPUTEST_FOR_NATIVE_CONTEXT(TestGpuNativeContext, reporter, context) {
52 REPORTER_ASSERT(reporter, reporter);
53 REPORTER_ASSERT(reporter, context);
54 }
55 #endif
56
57 // This is an example of a GPU test that tests a property that uses the null GPU context. It should 47 // 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. 48 // be used if the test tests some behavior that is mocked with the null context.
59 #if SK_SUPPORT_GPU 49 #if SK_SUPPORT_GPU
60 DEF_GPUTEST_FOR_NULL_CONTEXT(TestGpuNullContext, reporter, context) { 50 DEF_GPUTEST_FOR_NULL_CONTEXT(TestGpuNullContext, reporter, context) {
61 REPORTER_ASSERT(reporter, reporter); 51 REPORTER_ASSERT(reporter, reporter);
62 REPORTER_ASSERT(reporter, context); 52 REPORTER_ASSERT(reporter, context);
63 } 53 }
64 #endif 54 #endif
65 55
66 // This is an example of a GPU test that tests a property that should work for a ll GPU contexts. 56 // 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 GLTestContext* glContext to implement the test. 57 // It uses the additional GLTestContext* glContext to implement the test.
68 #if SK_SUPPORT_GPU 58 #if SK_SUPPORT_GPU
69 DEF_GPUTEST_FOR_ALL_CONTEXTS(TestGpuGrContextAndGLContext, reporter, context, gl Context) { 59 DEF_GPUTEST_FOR_ALL_CONTEXTS(TestGpuGrContextAndGLContext, reporter, context, gl Context) {
70 REPORTER_ASSERT(reporter, reporter); 60 REPORTER_ASSERT(reporter, reporter);
71 REPORTER_ASSERT(reporter, context); 61 REPORTER_ASSERT(reporter, context);
72 REPORTER_ASSERT(reporter, glContext); 62 REPORTER_ASSERT(reporter, glContext);
73 } 63 }
74 #endif 64 #endif
OLDNEW
« no previous file with comments | « tests/Test.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698