OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2008 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2008 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 "webrtc/api/fakemediacontroller.h" | |
12 #include "webrtc/base/gunit.h" | 11 #include "webrtc/base/gunit.h" |
13 #include "webrtc/base/logging.h" | 12 #include "webrtc/base/logging.h" |
14 #include "webrtc/base/thread.h" | 13 #include "webrtc/base/thread.h" |
15 #include "webrtc/logging/rtc_event_log/rtc_event_log.h" | 14 #include "webrtc/logging/rtc_event_log/rtc_event_log.h" |
16 #include "webrtc/media/base/fakemediaengine.h" | 15 #include "webrtc/media/base/fakemediaengine.h" |
17 #include "webrtc/media/base/fakevideocapturer.h" | 16 #include "webrtc/media/base/fakevideocapturer.h" |
18 #include "webrtc/media/base/testutils.h" | 17 #include "webrtc/media/base/testutils.h" |
19 #include "webrtc/media/engine/fakewebrtccall.h" | 18 #include "webrtc/media/engine/fakewebrtccall.h" |
20 #include "webrtc/p2p/base/faketransportcontroller.h" | 19 #include "webrtc/p2p/base/faketransportcontroller.h" |
21 #include "webrtc/pc/channelmanager.h" | 20 #include "webrtc/pc/channelmanager.h" |
| 21 #include "webrtc/pc/fakemediacontroller.h" |
22 | 22 |
23 namespace cricket { | 23 namespace cricket { |
24 | 24 |
25 static const AudioCodec kAudioCodecs[] = { | 25 static const AudioCodec kAudioCodecs[] = { |
26 AudioCodec(97, "voice", 1, 2, 3), AudioCodec(111, "OPUS", 48000, 32000, 2), | 26 AudioCodec(97, "voice", 1, 2, 3), AudioCodec(111, "OPUS", 48000, 32000, 2), |
27 }; | 27 }; |
28 | 28 |
29 static const VideoCodec kVideoCodecs[] = { | 29 static const VideoCodec kVideoCodecs[] = { |
30 VideoCodec(99, "H264"), VideoCodec(100, "VP8"), VideoCodec(96, "rtx"), | 30 VideoCodec(99, "H264"), VideoCodec(100, "VP8"), VideoCodec(96, "rtx"), |
31 }; | 31 }; |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 EXPECT_FALSE(cm_->SetVideoRtxEnabled(false)); | 167 EXPECT_FALSE(cm_->SetVideoRtxEnabled(false)); |
168 | 168 |
169 // Can set again after terminate. | 169 // Can set again after terminate. |
170 cm_->Terminate(); | 170 cm_->Terminate(); |
171 EXPECT_TRUE(cm_->SetVideoRtxEnabled(true)); | 171 EXPECT_TRUE(cm_->SetVideoRtxEnabled(true)); |
172 cm_->GetSupportedVideoCodecs(&codecs); | 172 cm_->GetSupportedVideoCodecs(&codecs); |
173 EXPECT_TRUE(ContainsMatchingCodec(codecs, rtx_codec)); | 173 EXPECT_TRUE(ContainsMatchingCodec(codecs, rtx_codec)); |
174 } | 174 } |
175 | 175 |
176 } // namespace cricket | 176 } // namespace cricket |
OLD | NEW |