Extend WavReader and WavWriter API.
Add ability to read and write wav files using rtc::PlatformFile instead
of file name.
Bug: webrtc:8946
Change-Id: If18d9465f2155a33547f800edbdac45971a0e878
Reviewed-on: https://webrtc-review.googlesource.com/61424
Commit-Queue: Artem Titov <titovartem@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#22497}
diff --git a/test/testsupport/fileutils.h b/test/testsupport/fileutils.h
index f0560cf..8bf1919 100644
--- a/test/testsupport/fileutils.h
+++ b/test/testsupport/fileutils.h
@@ -40,8 +40,14 @@
// Generates an empty file with a unique name in the specified directory and
// returns the file name and path.
+// TODO(titovartem) rename to TempFile and next method to TempFilename
std::string TempFilename(const std::string &dir, const std::string &prefix);
+// Generates a unique file name that can be used for file creation. Doesn't
+// create any files.
+std::string GenerateTempFilename(const std::string& dir,
+ const std::string& prefix);
+
// Returns a path to a resource file for the currently executing platform.
// Adapts to what filenames are currently present in the
// [project-root]/resources/ dir.