Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
org.skia.skqp.SkQPRunner.UnitTestExecutor 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 138 of file SkQPRunner.java.

Member Function Documentation

◆ desc()

Description org.skia.skqp.SkQPRunner.UnitTestExecutor.desc ( int  index)
inline

Definition at line 145 of file SkQPRunner.java.

145 {
146 return mUnitTestDesc[index];
147 }

◆ name()

String org.skia.skqp.SkQPRunner.UnitTestExecutor.name ( int  index)
inline

Definition at line 142 of file SkQPRunner.java.

142 {
143 return desc(index).getMethodName();
144 }

◆ numTests()

int org.skia.skqp.SkQPRunner.UnitTestExecutor.numTests ( )
inline

Definition at line 139 of file SkQPRunner.java.

139 {
140 return mUnitTestDesc.length;
141 }

◆ run()

boolean org.skia.skqp.SkQPRunner.UnitTestExecutor.run ( RunNotifier  notifier,
int  index 
)
inline

Definition at line 148 of file SkQPRunner.java.

148 {
149 String[] errors = mImpl.nExecuteUnitTest(index);
150 if (errors != null && errors.length > 0) {
151 Log.w(TAG, String.format("[FAIL] Test '%s' had %d failures.",
152 name(index), errors.length));
153 for (String error : errors) {
154 SkQPRunner.Fail(desc(index), notifier, error);
155 Log.w(TAG, String.format("[FAIL] '%s': %s", name(index), error));
156 }
157 return false;
158 }
159
160 return true;
161 }
SkQPRunner(Class testClass)
Definition: SkQPRunner.java:52
const uint8_t uint32_t uint32_t GError ** error
void Log(const char *format,...) SK_PRINTF_LIKE(1
Definition: TestRunner.cpp:137

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