Exemple #1
0
void VSFMergeTest::execute_test_cases(OsFile_Handle config_file JVM_TRAPS) {
  static MergeTestCase test_case;

  while (read_test_case(config_file, &test_case)) {
    execute_test_case(&test_case JVM_CHECK);
  }
}
Exemple #2
0
static bool read_and_run_test_case(const char* filename, const SkBitmap& bitmap,
                        SkCanvas* canvas) {
  SkString testdata;
  SkDebugf("Test case: %s\n", filename);
  // read_test_case will print a useful error message if it fails.
  if (!read_test_case(filename, &testdata))
    return false;
  run_test_case(testdata, bitmap, canvas);
  return true;
}