OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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/test/gmock.h" | |
14 #include "webrtc/modules/audio_coding/neteq/tools/neteq_external_decoder_test.h" | 13 #include "webrtc/modules/audio_coding/neteq/tools/neteq_external_decoder_test.h" |
15 #include "webrtc/modules/audio_coding/neteq/tools/rtp_generator.h" | 14 #include "webrtc/modules/audio_coding/neteq/tools/rtp_generator.h" |
16 #include "webrtc/modules/include/module_common_types.h" | 15 #include "webrtc/modules/include/module_common_types.h" |
| 16 #include "webrtc/test/gmock.h" |
17 | 17 |
18 namespace webrtc { | 18 namespace webrtc { |
19 namespace test { | 19 namespace test { |
20 | 20 |
21 using ::testing::_; | 21 using ::testing::_; |
22 using ::testing::SetArgPointee; | 22 using ::testing::SetArgPointee; |
23 using ::testing::Return; | 23 using ::testing::Return; |
24 | 24 |
25 class MockAudioDecoder final : public AudioDecoder { | 25 class MockAudioDecoder final : public AudioDecoder { |
26 public: | 26 public: |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 | 326 |
327 TEST(NetEqNetworkStatsTest, NoiseExpansionTest) { | 327 TEST(NetEqNetworkStatsTest, NoiseExpansionTest) { |
328 MockAudioDecoder decoder(48000, 1); | 328 MockAudioDecoder decoder(48000, 1); |
329 NetEqNetworkStatsTest test(NetEqDecoder::kDecoderOpus, 48000, &decoder); | 329 NetEqNetworkStatsTest test(NetEqDecoder::kDecoderOpus, 48000, &decoder); |
330 test.NoiseExpansionTest(); | 330 test.NoiseExpansionTest(); |
331 EXPECT_CALL(decoder, Die()).Times(1); | 331 EXPECT_CALL(decoder, Die()).Times(1); |
332 } | 332 } |
333 | 333 |
334 } // namespace test | 334 } // namespace test |
335 } // namespace webrtc | 335 } // namespace webrtc |
OLD | NEW |