Deletes temporary files that are generated in several ACM unittests.
This applies to AcmSwitchingOutputFrequencyOldApi.*, AcmReceiverBitExactnessOldApi.* and AcmSenderBitExactnessOldApi.*. BUG=webrtc:4647 NOTRY=true Review URL: https://codereview.webrtc.org/1503043003 Cr-Commit-Position: refs/heads/master@{#10936}
This commit is contained in:
@ -8,6 +8,7 @@
|
|||||||
* be found in the AUTHORS file in the root of the source tree.
|
* be found in the AUTHORS file in the root of the source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
@ -906,6 +907,9 @@ class AcmReceiverBitExactnessOldApi : public ::testing::Test {
|
|||||||
|
|
||||||
std::string checksum_string = checksum.Finish();
|
std::string checksum_string = checksum.Finish();
|
||||||
EXPECT_EQ(checksum_ref, checksum_string);
|
EXPECT_EQ(checksum_ref, checksum_string);
|
||||||
|
|
||||||
|
// Delete the output file.
|
||||||
|
remove(output_file_name.c_str());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1136,6 +1140,9 @@ class AcmSenderBitExactnessOldApi : public ::testing::Test,
|
|||||||
|
|
||||||
// Verify number of packets produced.
|
// Verify number of packets produced.
|
||||||
EXPECT_EQ(expected_packets, packet_count_);
|
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
|
// Returns a pointer to the next packet. Returns NULL if the source is
|
||||||
@ -1725,6 +1732,9 @@ class AcmSwitchingOutputFrequencyOldApi : public ::testing::Test,
|
|||||||
|
|
||||||
// This is where the actual test is executed.
|
// This is where the actual test is executed.
|
||||||
receive_test.Run();
|
receive_test.Run();
|
||||||
|
|
||||||
|
// Delete output file.
|
||||||
|
remove(output_file_name.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Inherited from test::PacketSource.
|
// Inherited from test::PacketSource.
|
||||||
|
Reference in New Issue
Block a user