Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Unified Diff: webrtc/modules/audio_coding/acm2/audio_coding_module_unittest_oldapi.cc

Issue 1503043003: Deletes temporary files that are generated in several ACM unittests. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Changed from C++ to C version of remove calls. Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_coding/acm2/audio_coding_module_unittest_oldapi.cc
diff --git a/webrtc/modules/audio_coding/acm2/audio_coding_module_unittest_oldapi.cc b/webrtc/modules/audio_coding/acm2/audio_coding_module_unittest_oldapi.cc
index 1045e7e2d0fbd111f4c6c8c341a852290e78500f..6e0e0ed9151b1932cedf98fb724c93cb34d7fd9c 100644
--- a/webrtc/modules/audio_coding/acm2/audio_coding_module_unittest_oldapi.cc
+++ b/webrtc/modules/audio_coding/acm2/audio_coding_module_unittest_oldapi.cc
@@ -8,6 +8,7 @@
* be found in the AUTHORS file in the root of the source tree.
*/
+#include <stdio.h>
#include <string.h>
#include <vector>
@@ -906,6 +907,9 @@ class AcmReceiverBitExactnessOldApi : public ::testing::Test {
std::string checksum_string = checksum.Finish();
EXPECT_EQ(checksum_ref, checksum_string);
+
+ // Delete the output file.
+ remove(output_file_name.c_str());
}
};
@@ -1114,6 +1118,9 @@ class AcmSenderBitExactnessOldApi : public ::testing::Test,
// Verify number of packets produced.
EXPECT_EQ(expected_packets, packet_count_);
+
+ // Delete the output file.
+ remove(output_file_name.c_str());
}
// Returns a pointer to the next packet. Returns NULL if the source is
@@ -1703,6 +1710,9 @@ class AcmSwitchingOutputFrequencyOldApi : public ::testing::Test,
// This is where the actual test is executed.
receive_test.Run();
+
+ // Delete output file.
+ remove(output_file_name.c_str());
}
// Inherited from test::PacketSource.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698