Inherits org.skia.skqp.SkQPRunner.TestExecutor.
Definition at line 164 of file SkQPRunner.java.
◆ desc()
Description org.skia.skqp.SkQPRunner.SkSLErrorTestExecutor.desc |
( |
int |
index | ) |
|
|
inline |
Definition at line 171 of file SkQPRunner.java.
171 {
172 return mSkSLErrorTestDesc[index];
173 }
◆ name()
String org.skia.skqp.SkQPRunner.SkSLErrorTestExecutor.name |
( |
int |
index | ) |
|
|
inline |
Definition at line 168 of file SkQPRunner.java.
168 {
169 return mImpl.mSkSLErrorTestName[index];
170 }
◆ numTests()
int org.skia.skqp.SkQPRunner.SkSLErrorTestExecutor.numTests |
( |
| ) |
|
|
inline |
Definition at line 165 of file SkQPRunner.java.
165 {
166 return mSkSLErrorTestDesc.length;
167 }
◆ run()
boolean org.skia.skqp.SkQPRunner.SkSLErrorTestExecutor.run |
( |
RunNotifier |
notifier, |
|
|
int |
index |
|
) |
| |
|
inline |
Definition at line 174 of file SkQPRunner.java.
174 {
175 String shaderText = mImpl.mSkSLErrorTestShader[index];
176 try {
177 new RuntimeShader(shaderText);
178
179
180 SkQPRunner.Fail(
desc(index), notifier,
"Shader did not generate any errors.");
181 Log.w(TAG, String.format(
"[FAIL] '%s': Shader did not generate any errors",
183 return false;
184 }
185 catch (Exception ex) { }
186 return true;
187 }
Description desc(int index)
SkQPRunner(Class testClass)
void Log(const char *format,...) SK_PRINTF_LIKE(1
The documentation for this class was generated from the following file:
- third_party/skia/platform_tools/android/apps/skqp/src/main/java/org/skia/skqp/SkQPRunner.java