1 
2 /*
3  * Copyright 2013 Google Inc.
4  *
5  * Use of this source code is governed by a BSD-style license that can be
6  * found in the LICENSE file.
7  */
8 
9 #include "Test.h"
10 #if SK_SUPPORT_GPU
11 
12 #include "GrCaps.h"
13 #include "GrContext.h"
14 #include "GrGpu.h"
15 
DEF_GPUTEST_FOR_ALL_CONTEXTS(GrDrawTargetPrint,reporter,context)16 DEF_GPUTEST_FOR_ALL_CONTEXTS(GrDrawTargetPrint, reporter, context) {
17     // This used to assert.
18     SkString result = context->caps()->dump();
19     SkASSERT(!result.isEmpty());
20     SkString shaderResult = context->caps()->shaderCaps()->dump();
21     SkASSERT(!shaderResult.isEmpty());
22 }
23 
24 #endif
25