diff options
author | aluebs@webrtc.org <aluebs@webrtc.org> | 2015-01-05 18:45:22 +0000 |
---|---|---|
committer | aluebs@webrtc.org <aluebs@webrtc.org> | 2015-01-05 18:45:22 +0000 |
commit | e5a921a82df2b363cb2c9aa80aa26e210feefbbd (patch) | |
tree | a6e4d806081298c20ae2bba507f717c2a26ce5e4 /webrtc/modules/audio_processing/transient | |
parent | 76bc981b2d602020729815d4e26bee232f9394b0 (diff) | |
download | webrtc-e5a921a82df2b363cb2c9aa80aa26e210feefbbd.tar.gz |
Use tmp files in file_utils_unittests
The static file names were breaking when executing tests in parallel. This fixes it.
BUG=4138
R=andrew@webrtc.org, pbos@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/34639004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@7997 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'webrtc/modules/audio_processing/transient')
-rw-r--r-- | webrtc/modules/audio_processing/transient/file_utils_unittest.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/webrtc/modules/audio_processing/transient/file_utils_unittest.cc b/webrtc/modules/audio_processing/transient/file_utils_unittest.cc index af2f9b39b0..89d4da769e 100644 --- a/webrtc/modules/audio_processing/transient/file_utils_unittest.cc +++ b/webrtc/modules/audio_processing/transient/file_utils_unittest.cc @@ -308,7 +308,8 @@ TEST_F(TransientFileUtilsTest, ReadDoubleBufferFromFile) { TEST_F(TransientFileUtilsTest, WriteInt16BufferToFile) { scoped_ptr<FileWrapper> file(FileWrapper::Create()); - std::string kOutFileName = test::OutputPath() + "utils_test.out"; + std::string kOutFileName = test::TempFilename(test::OutputPath(), + "utils_test"); file->OpenFile(kOutFileName.c_str(), false, // Write mode. @@ -349,7 +350,8 @@ TEST_F(TransientFileUtilsTest, WriteInt16BufferToFile) { TEST_F(TransientFileUtilsTest, WriteFloatBufferToFile) { scoped_ptr<FileWrapper> file(FileWrapper::Create()); - std::string kOutFileName = test::OutputPath() + "utils_test.out"; + std::string kOutFileName = test::TempFilename(test::OutputPath(), + "utils_test"); file->OpenFile(kOutFileName.c_str(), false, // Write mode. @@ -390,7 +392,8 @@ TEST_F(TransientFileUtilsTest, WriteFloatBufferToFile) { TEST_F(TransientFileUtilsTest, WriteDoubleBufferToFile) { scoped_ptr<FileWrapper> file(FileWrapper::Create()); - std::string kOutFileName = test::OutputPath() + "utils_test.out"; + std::string kOutFileName = test::TempFilename(test::OutputPath(), + "utils_test"); file->OpenFile(kOutFileName.c_str(), false, // Write mode. |