OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include <utility> | 29 #include <utility> |
30 | 30 |
31 #include "talk/app/webrtc/audiotrack.h" | 31 #include "talk/app/webrtc/audiotrack.h" |
32 #include "talk/app/webrtc/mediastream.h" | 32 #include "talk/app/webrtc/mediastream.h" |
33 #include "talk/app/webrtc/remoteaudiosource.h" | 33 #include "talk/app/webrtc/remoteaudiosource.h" |
34 #include "talk/app/webrtc/rtpreceiver.h" | 34 #include "talk/app/webrtc/rtpreceiver.h" |
35 #include "talk/app/webrtc/rtpsender.h" | 35 #include "talk/app/webrtc/rtpsender.h" |
36 #include "talk/app/webrtc/streamcollection.h" | 36 #include "talk/app/webrtc/streamcollection.h" |
37 #include "talk/app/webrtc/videosource.h" | 37 #include "talk/app/webrtc/videosource.h" |
38 #include "talk/app/webrtc/videotrack.h" | 38 #include "talk/app/webrtc/videotrack.h" |
39 #include "talk/media/base/fakevideocapturer.h" | |
40 #include "talk/media/base/mediachannel.h" | |
41 #include "testing/gmock/include/gmock/gmock.h" | 39 #include "testing/gmock/include/gmock/gmock.h" |
42 #include "testing/gtest/include/gtest/gtest.h" | 40 #include "testing/gtest/include/gtest/gtest.h" |
43 #include "webrtc/base/gunit.h" | 41 #include "webrtc/base/gunit.h" |
| 42 #include "webrtc/media/base/fakevideocapturer.h" |
| 43 #include "webrtc/media/base/mediachannel.h" |
44 | 44 |
45 using ::testing::_; | 45 using ::testing::_; |
46 using ::testing::Exactly; | 46 using ::testing::Exactly; |
47 | 47 |
48 static const char kStreamLabel1[] = "local_stream_1"; | 48 static const char kStreamLabel1[] = "local_stream_1"; |
49 static const char kVideoTrackId[] = "video_1"; | 49 static const char kVideoTrackId[] = "video_1"; |
50 static const char kAudioTrackId[] = "audio_1"; | 50 static const char kAudioTrackId[] = "audio_1"; |
51 static const uint32_t kVideoSsrc = 98; | 51 static const uint32_t kVideoSsrc = 98; |
52 static const uint32_t kVideoSsrc2 = 100; | 52 static const uint32_t kVideoSsrc2 = 100; |
53 static const uint32_t kAudioSsrc = 99; | 53 static const uint32_t kAudioSsrc = 99; |
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 video_track_->GetSource()->GetVideoCapturer())); | 506 video_track_->GetSource()->GetVideoCapturer())); |
507 EXPECT_CALL(video_provider_, SetVideoSend(kVideoSsrc2, true, _)); | 507 EXPECT_CALL(video_provider_, SetVideoSend(kVideoSsrc2, true, _)); |
508 sender->SetSsrc(kVideoSsrc2); | 508 sender->SetSsrc(kVideoSsrc2); |
509 | 509 |
510 // Calls expected from destructor. | 510 // Calls expected from destructor. |
511 EXPECT_CALL(video_provider_, SetCaptureDevice(kVideoSsrc2, nullptr)).Times(1); | 511 EXPECT_CALL(video_provider_, SetCaptureDevice(kVideoSsrc2, nullptr)).Times(1); |
512 EXPECT_CALL(video_provider_, SetVideoSend(kVideoSsrc2, false, _)).Times(1); | 512 EXPECT_CALL(video_provider_, SetVideoSend(kVideoSsrc2, false, _)).Times(1); |
513 } | 513 } |
514 | 514 |
515 } // namespace webrtc | 515 } // namespace webrtc |
OLD | NEW |