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 <array> | 11 #include <array> |
12 #include <memory> | 12 #include <memory> |
13 #include <utility> | 13 #include <utility> |
14 | 14 |
| 15 #include "webrtc/base/checks.h" |
| 16 #include "webrtc/base/fakeclock.h" |
15 #include "webrtc/common_audio/mocks/mock_smoothing_filter.h" | 17 #include "webrtc/common_audio/mocks/mock_smoothing_filter.h" |
16 #include "webrtc/common_types.h" | 18 #include "webrtc/common_types.h" |
17 #include "webrtc/modules/audio_coding/audio_network_adaptor/mock/mock_audio_netw
ork_adaptor.h" | 19 #include "webrtc/modules/audio_coding/audio_network_adaptor/mock/mock_audio_netw
ork_adaptor.h" |
18 #include "webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.h" | 20 #include "webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.h" |
19 #include "webrtc/modules/audio_coding/neteq/tools/audio_loop.h" | 21 #include "webrtc/modules/audio_coding/neteq/tools/audio_loop.h" |
20 #include "webrtc/rtc_base/checks.h" | |
21 #include "webrtc/rtc_base/fakeclock.h" | |
22 #include "webrtc/test/field_trial.h" | 22 #include "webrtc/test/field_trial.h" |
23 #include "webrtc/test/gmock.h" | 23 #include "webrtc/test/gmock.h" |
24 #include "webrtc/test/gtest.h" | 24 #include "webrtc/test/gtest.h" |
25 #include "webrtc/test/testsupport/fileutils.h" | 25 #include "webrtc/test/testsupport/fileutils.h" |
26 | 26 |
27 namespace webrtc { | 27 namespace webrtc { |
28 using ::testing::NiceMock; | 28 using ::testing::NiceMock; |
29 using ::testing::Return; | 29 using ::testing::Return; |
30 | 30 |
31 namespace { | 31 namespace { |
(...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
754 EXPECT_EQ(24001, config.max_playback_rate_hz); | 754 EXPECT_EQ(24001, config.max_playback_rate_hz); |
755 EXPECT_EQ(32000, config.bitrate_bps); | 755 EXPECT_EQ(32000, config.bitrate_bps); |
756 | 756 |
757 config = CreateConfigWithParameters({{"maxplaybackrate", "24001"}, | 757 config = CreateConfigWithParameters({{"maxplaybackrate", "24001"}, |
758 {"stereo", "1"}}); | 758 {"stereo", "1"}}); |
759 EXPECT_EQ(24001, config.max_playback_rate_hz); | 759 EXPECT_EQ(24001, config.max_playback_rate_hz); |
760 EXPECT_EQ(64000, config.bitrate_bps); | 760 EXPECT_EQ(64000, config.bitrate_bps); |
761 } | 761 } |
762 | 762 |
763 } // namespace webrtc | 763 } // namespace webrtc |
OLD | NEW |