52 {
54 Context context = InstrumentationRegistry.getTargetContext();
55 String now = (
new SimpleDateFormat(
"yyyy-MM-dd'T'HHmmss")).
format(
new Date());
56 File reportPath = new File(context.getExternalFilesDir(null), "skqp_report_" + now);
57 reportPath.mkdirs();
58 mOutputDirectory = reportPath.getAbsolutePath();
59 Log.i(TAG, String.format(
"output written to \"%s\"", mOutputDirectory));
60
61 AssetManager assetManager = context.getResources().getAssets();
62 mImpl.
nInit(assetManager, mOutputDirectory);
63
64 mUnitTestDesc =
new Description[mImpl.
mUnitTests.length];
65 for (int index = 0; index < mUnitTestDesc.length; ++index) {
66 mUnitTestDesc[index] = Description.createTestDescription(
68 }
69
71 for (int index = 0; index < mSkSLErrorTestDesc.length; ++index) {
72 mSkSLErrorTestDesc[index] = Description.createTestDescription(
74 }
75
76 this.applyFilter(null);
77 }
SkQPRunner(Class testClass)
native void nInit(AssetManager assetManager, String dataDir)
String[] mSkSLErrorTestName
uint32_t uint32_t * format
void Log(const char *format,...) SK_PRINTF_LIKE(1