| 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 const bool kDefaultRtcpMuxRequired = true; |   24 const bool kDefaultRtcpMuxRequired = true; | 
|   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), | 
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  184   EXPECT_FALSE(cm_->SetVideoRtxEnabled(false)); |  184   EXPECT_FALSE(cm_->SetVideoRtxEnabled(false)); | 
|  185  |  185  | 
|  186   // Can set again after terminate. |  186   // Can set again after terminate. | 
|  187   cm_->Terminate(); |  187   cm_->Terminate(); | 
|  188   EXPECT_TRUE(cm_->SetVideoRtxEnabled(true)); |  188   EXPECT_TRUE(cm_->SetVideoRtxEnabled(true)); | 
|  189   cm_->GetSupportedVideoCodecs(&codecs); |  189   cm_->GetSupportedVideoCodecs(&codecs); | 
|  190   EXPECT_TRUE(ContainsMatchingCodec(codecs, rtx_codec)); |  190   EXPECT_TRUE(ContainsMatchingCodec(codecs, rtx_codec)); | 
|  191 } |  191 } | 
|  192  |  192  | 
|  193 }  // namespace cricket |  193 }  // namespace cricket | 
| OLD | NEW |