OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2012 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 #include <string> | 12 #include <string> |
13 #include <utility> | 13 #include <utility> |
14 | 14 |
15 #include "webrtc/api/audiotrack.h" | |
16 #include "webrtc/api/fakemediacontroller.h" | |
17 #include "webrtc/api/localaudiosource.h" | |
18 #include "webrtc/api/mediastream.h" | |
19 #include "webrtc/api/remoteaudiosource.h" | |
20 #include "webrtc/api/rtpreceiver.h" | |
21 #include "webrtc/api/rtpsender.h" | |
22 #include "webrtc/api/streamcollection.h" | |
23 #include "webrtc/api/test/fakevideotracksource.h" | |
24 #include "webrtc/api/videotrack.h" | |
25 #include "webrtc/api/videotracksource.h" | |
26 #include "webrtc/base/gunit.h" | 15 #include "webrtc/base/gunit.h" |
27 #include "webrtc/logging/rtc_event_log/rtc_event_log.h" | 16 #include "webrtc/logging/rtc_event_log/rtc_event_log.h" |
28 #include "webrtc/media/base/fakemediaengine.h" | 17 #include "webrtc/media/base/fakemediaengine.h" |
29 #include "webrtc/media/base/mediachannel.h" | 18 #include "webrtc/media/base/mediachannel.h" |
30 #include "webrtc/media/engine/fakewebrtccall.h" | 19 #include "webrtc/media/engine/fakewebrtccall.h" |
31 #include "webrtc/p2p/base/faketransportcontroller.h" | 20 #include "webrtc/p2p/base/faketransportcontroller.h" |
| 21 #include "webrtc/pc/audiotrack.h" |
32 #include "webrtc/pc/channelmanager.h" | 22 #include "webrtc/pc/channelmanager.h" |
| 23 #include "webrtc/pc/fakemediacontroller.h" |
| 24 #include "webrtc/pc/localaudiosource.h" |
| 25 #include "webrtc/pc/mediastream.h" |
| 26 #include "webrtc/pc/remoteaudiosource.h" |
| 27 #include "webrtc/pc/rtpreceiver.h" |
| 28 #include "webrtc/pc/rtpsender.h" |
| 29 #include "webrtc/pc/streamcollection.h" |
| 30 #include "webrtc/pc/test/fakevideotracksource.h" |
| 31 #include "webrtc/pc/videotrack.h" |
| 32 #include "webrtc/pc/videotracksource.h" |
33 #include "webrtc/test/gmock.h" | 33 #include "webrtc/test/gmock.h" |
34 #include "webrtc/test/gtest.h" | 34 #include "webrtc/test/gtest.h" |
35 | 35 |
36 using ::testing::_; | 36 using ::testing::_; |
37 using ::testing::Exactly; | 37 using ::testing::Exactly; |
38 using ::testing::InvokeWithoutArgs; | 38 using ::testing::InvokeWithoutArgs; |
39 using ::testing::Return; | 39 using ::testing::Return; |
40 | 40 |
41 static const char kStreamLabel1[] = "local_stream_1"; | 41 static const char kStreamLabel1[] = "local_stream_1"; |
42 static const char kVideoTrackId[] = "video_1"; | 42 static const char kVideoTrackId[] = "video_1"; |
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
615 CreateVideoRtpReceiver(); | 615 CreateVideoRtpReceiver(); |
616 | 616 |
617 RtpParameters params = video_rtp_receiver_->GetParameters(); | 617 RtpParameters params = video_rtp_receiver_->GetParameters(); |
618 EXPECT_EQ(1u, params.encodings.size()); | 618 EXPECT_EQ(1u, params.encodings.size()); |
619 EXPECT_TRUE(video_rtp_receiver_->SetParameters(params)); | 619 EXPECT_TRUE(video_rtp_receiver_->SetParameters(params)); |
620 | 620 |
621 DestroyVideoRtpReceiver(); | 621 DestroyVideoRtpReceiver(); |
622 } | 622 } |
623 | 623 |
624 } // namespace webrtc | 624 } // namespace webrtc |
OLD | NEW |