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 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
715 // And removing the hint should go back to false (to verify that false was | 715 // And removing the hint should go back to false (to verify that false was |
716 // default correctly). | 716 // default correctly). |
717 video_track_->set_content_hint(VideoTrackInterface::ContentHint::kNone); | 717 video_track_->set_content_hint(VideoTrackInterface::ContentHint::kNone); |
718 EXPECT_EQ(rtc::Optional<bool>(false), | 718 EXPECT_EQ(rtc::Optional<bool>(false), |
719 video_media_channel_->options().is_screencast); | 719 video_media_channel_->options().is_screencast); |
720 | 720 |
721 DestroyVideoRtpSender(); | 721 DestroyVideoRtpSender(); |
722 } | 722 } |
723 | 723 |
724 } // namespace webrtc | 724 } // namespace webrtc |
OLD | NEW |