Searched refs:protoFile (Results 1 – 6 of 6) sorted by relevance
652 File protoFile = File.createTempFile("tmp", ".pb"); in buildNoTestResultsProtoFile() local653 sessionProto.writeTo(new FileOutputStream(protoFile)); in buildNoTestResultsProtoFile()654 return protoFile; in buildNoTestResultsProtoFile()667 File protoFile = File.createTempFile("tmp", ".pb"); in buildSingleTestMetricSuccessProtoFile() local668 sessionProto.writeTo(new FileOutputStream(protoFile)); in buildSingleTestMetricSuccessProtoFile()669 return protoFile; in buildSingleTestMetricSuccessProtoFile()683 File protoFile = File.createTempFile("tmp", ".pb"); in buildRunMetricSuccessProtoFile() local684 sessionProto.writeTo(new FileOutputStream(protoFile)); in buildRunMetricSuccessProtoFile()685 return protoFile; in buildRunMetricSuccessProtoFile()699 File protoFile = File.createTempFile("tmp", ".pb"); in buildTestAndRunMetricSuccessProtoFile() local[all …]
40 File protoFile = null; in testRead() local42 protoFile = dumpTestRecord(); in testRead()43 TestRecord record = TestRecordProtoUtil.readFromFile(protoFile); in testRead()47 FileUtil.deleteFile(protoFile); in testRead()55 File protoFile = FileUtil.createTempFile("test-proto", "." + LogDataType.PB.getFileExt()); in dumpTestRecord() local57 try (OutputStream stream = new FileOutputStream(protoFile)) { in dumpTestRecord()59 return protoFile; in dumpTestRecord()
76 public void processProtoFile(File protoFile) throws IOException { in processProtoFile() argument79 if (protoFile == null) { in processProtoFile()83 if (protoFile.length() == 0) { in processProtoFile()89 byte[] bytesArray = new byte[(int) protoFile.length()]; in processProtoFile()90 FileInputStream fis = new FileInputStream(protoFile); in processProtoFile()
44 public static TestRecord readFromFile(File protoFile) throws IOException { in readFromFile() argument45 return readFromFile(protoFile, true); in readFromFile()56 public static TestRecord readFromFile(File protoFile, boolean readDelimited) in readFromFile() argument59 try (InputStream stream = new FileInputStream(protoFile)) { in readFromFile()
448 File protoFile = in prepareContext() local452 contextProto.writeDelimitedTo(new FileOutputStream(protoFile)); in prepareContext()453 return protoFile; in prepareContext()
177 public void processFileProto(File protoFile) throws IOException { in processFileProto() argument180 record = TestRecordProtoUtil.readFromFile(protoFile); in processFileProto()183 try (FileInputStreamSource protoFail = new FileInputStreamSource(protoFile, true)) { in processFileProto()