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 "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
12 #include "webrtc/modules/audio_coding/codecs/mock/mock_audio_encoder.h" | 12 #include "webrtc/modules/audio_coding/codecs/mock/mock_audio_encoder.h" |
13 #include "webrtc/modules/audio_coding/main/acm2/codec_manager.h" | 13 #include "webrtc/modules/audio_coding/acm2/codec_manager.h" |
14 | 14 |
15 namespace webrtc { | 15 namespace webrtc { |
16 namespace acm2 { | 16 namespace acm2 { |
17 | 17 |
18 using ::testing::Return; | 18 using ::testing::Return; |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 // Create a MockAudioEncoder with some reasonable default behavior. | 22 // Create a MockAudioEncoder with some reasonable default behavior. |
23 rtc::scoped_ptr<MockAudioEncoder> CreateMockEncoder() { | 23 rtc::scoped_ptr<MockAudioEncoder> CreateMockEncoder() { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 57 |
58 EXPECT_EQ(0, cm.SetCodecFEC(false)); | 58 EXPECT_EQ(0, cm.SetCodecFEC(false)); |
59 enc0->Mark("B"); | 59 enc0->Mark("B"); |
60 EXPECT_FALSE(cm.codec_fec_enabled()); | 60 EXPECT_FALSE(cm.codec_fec_enabled()); |
61 cm.RegisterEncoder(enc0.get()); | 61 cm.RegisterEncoder(enc0.get()); |
62 EXPECT_FALSE(cm.codec_fec_enabled()); | 62 EXPECT_FALSE(cm.codec_fec_enabled()); |
63 } | 63 } |
64 | 64 |
65 } // namespace acm2 | 65 } // namespace acm2 |
66 } // namespace webrtc | 66 } // namespace webrtc |
OLD | NEW |