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

Side by Side Diff: webrtc/pc/rtcstatscollector_unittest.cc

Issue 2964863002: Change VideoTrack implementation to invoke VideoTrackSourceInterface::AddOrUpdateSink on wt (Closed)
Patch Set: Changed VideoTrack to invoke changing the sink wants on the worker thread. Created 3 years, 5 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 | « webrtc/pc/peerconnectioninterface_unittest.cc ('k') | webrtc/pc/rtpreceiver.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 * Copyright 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2016 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
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 return video_track; 211 return video_track;
212 } 212 }
213 213
214 FakeVideoTrackForStats(const std::string& id) 214 FakeVideoTrackForStats(const std::string& id)
215 : MediaStreamTrack<VideoTrackInterface>(id) { 215 : MediaStreamTrack<VideoTrackInterface>(id) {
216 } 216 }
217 217
218 std::string kind() const override { 218 std::string kind() const override {
219 return MediaStreamTrackInterface::kVideoKind; 219 return MediaStreamTrackInterface::kVideoKind;
220 } 220 }
221
222 void AddOrUpdateSink(rtc::VideoSinkInterface<VideoFrame>* sink,
223 const rtc::VideoSinkWants& wants) override{};
224 void RemoveSink(rtc::VideoSinkInterface<VideoFrame>* sink) override{};
225
221 VideoTrackSourceInterface* GetSource() const override { return nullptr; } 226 VideoTrackSourceInterface* GetSource() const override { return nullptr; }
222 }; 227 };
223 228
224 rtc::scoped_refptr<MediaStreamTrackInterface> CreateFakeTrack( 229 rtc::scoped_refptr<MediaStreamTrackInterface> CreateFakeTrack(
225 cricket::MediaType media_type, 230 cricket::MediaType media_type,
226 const std::string& track_id, 231 const std::string& track_id,
227 MediaStreamTrackInterface::TrackState track_state) { 232 MediaStreamTrackInterface::TrackState track_state) {
228 if (media_type == cricket::MEDIA_TYPE_AUDIO) { 233 if (media_type == cricket::MEDIA_TYPE_AUDIO) {
229 return FakeAudioTrackForStats::Create(track_id, track_state); 234 return FakeAudioTrackForStats::Create(track_id, track_state);
230 } else { 235 } else {
(...skipping 2082 matching lines...) Expand 10 before | Expand all | Expand 10 after
2313 rtc::scoped_refptr<FakeRTCStatsCollector> collector_; 2318 rtc::scoped_refptr<FakeRTCStatsCollector> collector_;
2314 }; 2319 };
2315 2320
2316 TEST_F(RTCStatsCollectorTestWithFakeCollector, ThreadUsageAndResultsMerging) { 2321 TEST_F(RTCStatsCollectorTestWithFakeCollector, ThreadUsageAndResultsMerging) {
2317 collector_->VerifyThreadUsageAndResultsMerging(); 2322 collector_->VerifyThreadUsageAndResultsMerging();
2318 } 2323 }
2319 2324
2320 } // namespace 2325 } // namespace
2321 2326
2322 } // namespace webrtc 2327 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/pc/peerconnectioninterface_unittest.cc ('k') | webrtc/pc/rtpreceiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698