| Index: webrtc/modules/audio_coding/main/acm2/rent_a_codec_unittest.cc
|
| diff --git a/webrtc/modules/audio_coding/codecs/isac/locked_bandwidth_info.cc b/webrtc/modules/audio_coding/main/acm2/rent_a_codec_unittest.cc
|
| similarity index 55%
|
| copy from webrtc/modules/audio_coding/codecs/isac/locked_bandwidth_info.cc
|
| copy to webrtc/modules/audio_coding/main/acm2/rent_a_codec_unittest.cc
|
| index 78b415c4c950224a459759cb681b8f04f807b6b4..01ba02457a500e29a71a7e067b7ba1c7505a20e4 100644
|
| --- a/webrtc/modules/audio_coding/codecs/isac/locked_bandwidth_info.cc
|
| +++ b/webrtc/modules/audio_coding/main/acm2/rent_a_codec_unittest.cc
|
| @@ -8,15 +8,18 @@
|
| * be found in the AUTHORS file in the root of the source tree.
|
| */
|
|
|
| -#include "webrtc/modules/audio_coding/codecs/isac/locked_bandwidth_info.h"
|
| +#include "testing/gtest/include/gtest/gtest.h"
|
| +#include "webrtc/modules/audio_coding/main/acm2/rent_a_codec.h"
|
|
|
| namespace webrtc {
|
| +namespace acm2 {
|
|
|
| -LockedIsacBandwidthInfo::LockedIsacBandwidthInfo()
|
| - : lock_(CriticalSectionWrapper::CreateCriticalSection()) {
|
| - bwinfo_.in_use = 0;
|
| +TEST(RentACodecTest, RentEncoderError) {
|
| + const CodecInst codec_inst = {
|
| + 0, "Robert'); DROP TABLE Students;", 8000, 160, 1, 64000};
|
| + RentACodec rent_a_codec;
|
| + EXPECT_FALSE(rent_a_codec.RentEncoder(codec_inst));
|
| }
|
|
|
| -LockedIsacBandwidthInfo::~LockedIsacBandwidthInfo() = default;
|
| -
|
| +} // namespace acm2
|
| } // namespace webrtc
|
|
|