| 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 <memory> | 11 #include <memory> |
| 12 | 12 |
| 13 #include "webrtc/base/gunit.h" | |
| 14 #include "webrtc/base/logging.h" | |
| 15 #include "webrtc/base/thread.h" | |
| 16 #include "webrtc/logging/rtc_event_log/rtc_event_log.h" | 13 #include "webrtc/logging/rtc_event_log/rtc_event_log.h" |
| 17 #include "webrtc/media/base/fakemediaengine.h" | 14 #include "webrtc/media/base/fakemediaengine.h" |
| 18 #include "webrtc/media/base/fakevideocapturer.h" | 15 #include "webrtc/media/base/fakevideocapturer.h" |
| 19 #include "webrtc/media/base/testutils.h" | 16 #include "webrtc/media/base/testutils.h" |
| 20 #include "webrtc/media/engine/fakewebrtccall.h" | 17 #include "webrtc/media/engine/fakewebrtccall.h" |
| 21 #include "webrtc/p2p/base/faketransportcontroller.h" | 18 #include "webrtc/p2p/base/faketransportcontroller.h" |
| 22 #include "webrtc/pc/channelmanager.h" | 19 #include "webrtc/pc/channelmanager.h" |
| 20 #include "webrtc/rtc_base/gunit.h" |
| 21 #include "webrtc/rtc_base/logging.h" |
| 22 #include "webrtc/rtc_base/thread.h" |
| 23 | 23 |
| 24 namespace { | 24 namespace { |
| 25 const bool kDefaultSrtpRequired = true; | 25 const bool kDefaultSrtpRequired = true; |
| 26 } | 26 } |
| 27 | 27 |
| 28 namespace cricket { | 28 namespace cricket { |
| 29 | 29 |
| 30 static const AudioCodec kAudioCodecs[] = { | 30 static const AudioCodec kAudioCodecs[] = { |
| 31 AudioCodec(97, "voice", 1, 2, 3), AudioCodec(111, "OPUS", 48000, 32000, 2), | 31 AudioCodec(97, "voice", 1, 2, 3), AudioCodec(111, "OPUS", 48000, 32000, 2), |
| 32 }; | 32 }; |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 EXPECT_FALSE(cm_->SetVideoRtxEnabled(false)); | 177 EXPECT_FALSE(cm_->SetVideoRtxEnabled(false)); |
| 178 | 178 |
| 179 // Can set again after terminate. | 179 // Can set again after terminate. |
| 180 cm_->Terminate(); | 180 cm_->Terminate(); |
| 181 EXPECT_TRUE(cm_->SetVideoRtxEnabled(true)); | 181 EXPECT_TRUE(cm_->SetVideoRtxEnabled(true)); |
| 182 cm_->GetSupportedVideoCodecs(&codecs); | 182 cm_->GetSupportedVideoCodecs(&codecs); |
| 183 EXPECT_TRUE(ContainsMatchingCodec(codecs, rtx_codec)); | 183 EXPECT_TRUE(ContainsMatchingCodec(codecs, rtx_codec)); |
| 184 } | 184 } |
| 185 | 185 |
| 186 } // namespace cricket | 186 } // namespace cricket |
| OLD | NEW |