Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
org.skia.skqp.SkQPRunner.SkSLErrorTestExecutor Class Reference

Inherits org.skia.skqp.SkQPRunner.TestExecutor.

Public Member Functions

int numTests ()
 
String name (int index)
 
Description desc (int index)
 
boolean run (RunNotifier notifier, int index)
 

Detailed Description

Definition at line 164 of file SkQPRunner.java.

Member Function Documentation

◆ 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 // Because this is an error test, we expected an exception to be thrown.
179 // If we reach this point, no exception occurred; report this as an error.
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",
182 name(index)));
183 return false;
184 }
185 catch (Exception ex) { } // Assume any exception is an expected SkSL error.
186 return true;
187 }
const char * name
Definition fuchsia.cc:50
void Log(const char *format,...) SK_PRINTF_LIKE(1

The documentation for this class was generated from the following file: