Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: talk/app/webrtc/rtpsenderreceiver_unittest.cc

Issue 1587193006: Move talk/media to webrtc/media (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased to b647aca12a884a13c1728118586245399b55fa3d (#11493) Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « talk/app/webrtc/rtpsenderinterface.h ('k') | talk/app/webrtc/statscollector_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « talk/app/webrtc/rtpsenderinterface.h ('k') | talk/app/webrtc/statscollector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698