OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #include <memory> | 11 #include <memory> |
12 | 12 |
13 #include "webrtc/voice_engine/include/voe_codec.h" | 13 #include "webrtc/voice_engine/include/voe_codec.h" |
14 | 14 |
15 #include "webrtc/modules/audio_device/include/fake_audio_device.h" | 15 #include "webrtc/modules/audio_device/include/fake_audio_device.h" |
16 #include "webrtc/test/gtest.h" | 16 #include "webrtc/test/gtest.h" |
17 #include "webrtc/voice_engine/include/voe_base.h" | 17 #include "webrtc/voice_engine/include/voe_base.h" |
18 #include "webrtc/voice_engine/include/voe_hardware.h" | |
19 #include "webrtc/voice_engine/voice_engine_defines.h" | 18 #include "webrtc/voice_engine/voice_engine_defines.h" |
20 | 19 |
21 namespace webrtc { | 20 namespace webrtc { |
22 namespace voe { | 21 namespace voe { |
23 namespace { | 22 namespace { |
24 | 23 |
25 TEST(VoECodecInst, TestCompareCodecInstances) { | 24 TEST(VoECodecInst, TestCompareCodecInstances) { |
26 CodecInst codec1, codec2; | 25 CodecInst codec1, codec2; |
27 memset(&codec1, 0, sizeof(CodecInst)); | 26 memset(&codec1, 0, sizeof(CodecInst)); |
28 memset(&codec2, 0, sizeof(CodecInst)); | 27 memset(&codec2, 0, sizeof(CodecInst)); |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 base->DeleteChannel(channel); | 97 base->DeleteChannel(channel); |
99 base->Terminate(); | 98 base->Terminate(); |
100 base->Release(); | 99 base->Release(); |
101 voe_codec->Release(); | 100 voe_codec->Release(); |
102 VoiceEngine::Delete(voe); | 101 VoiceEngine::Delete(voe); |
103 } | 102 } |
104 | 103 |
105 } // namespace | 104 } // namespace |
106 } // namespace voe | 105 } // namespace voe |
107 } // namespace webrtc | 106 } // namespace webrtc |
OLD | NEW |