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

Side by Side Diff: webrtc/media/engine/fakewebrtccall.h

Issue 1814763002: Cleanup of webrtc::VideoRenderer (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Use a more specific DEPS rule. Created 4 years, 9 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 152
153 class FakeVideoReceiveStream final : public webrtc::VideoReceiveStream { 153 class FakeVideoReceiveStream final : public webrtc::VideoReceiveStream {
154 public: 154 public:
155 explicit FakeVideoReceiveStream( 155 explicit FakeVideoReceiveStream(
156 const webrtc::VideoReceiveStream::Config& config); 156 const webrtc::VideoReceiveStream::Config& config);
157 157
158 webrtc::VideoReceiveStream::Config GetConfig(); 158 webrtc::VideoReceiveStream::Config GetConfig();
159 159
160 bool IsReceiving() const; 160 bool IsReceiving() const;
161 161
162 void InjectFrame(const webrtc::VideoFrame& frame, int time_to_render_ms); 162 void InjectFrame(const webrtc::VideoFrame& frame);
163 163
164 void SetStats(const webrtc::VideoReceiveStream::Stats& stats); 164 void SetStats(const webrtc::VideoReceiveStream::Stats& stats);
165 165
166 private: 166 private:
167 // webrtc::ReceiveStream implementation. 167 // webrtc::ReceiveStream implementation.
168 void Start() override; 168 void Start() override;
169 void Stop() override; 169 void Stop() override;
170 void SignalNetworkState(webrtc::NetworkState state) override {} 170 void SignalNetworkState(webrtc::NetworkState state) override {}
171 bool DeliverRtcp(const uint8_t* packet, size_t length) override { 171 bool DeliverRtcp(const uint8_t* packet, size_t length) override {
172 return true; 172 return true;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 std::vector<FakeAudioSendStream*> audio_send_streams_; 246 std::vector<FakeAudioSendStream*> audio_send_streams_;
247 std::vector<FakeVideoReceiveStream*> video_receive_streams_; 247 std::vector<FakeVideoReceiveStream*> video_receive_streams_;
248 std::vector<FakeAudioReceiveStream*> audio_receive_streams_; 248 std::vector<FakeAudioReceiveStream*> audio_receive_streams_;
249 249
250 int num_created_send_streams_; 250 int num_created_send_streams_;
251 int num_created_receive_streams_; 251 int num_created_receive_streams_;
252 }; 252 };
253 253
254 } // namespace cricket 254 } // namespace cricket
255 #endif // TALK_MEDIA_WEBRTC_WEBRTCVIDEOENGINE2_UNITTEST_H_ 255 #endif // TALK_MEDIA_WEBRTC_WEBRTCVIDEOENGINE2_UNITTEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698