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

Side by Side Diff: talk/media/webrtc/fakewebrtccall.cc

Issue 1363573002: Wire up transport sequence number / send time callbacks to webrtc via libjingle. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Add missing updated_options Created 5 years, 2 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 * libjingle 2 * libjingle
3 * Copyright 2015 Google Inc. 3 * Copyright 2015 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 195
196 void FakeVideoReceiveStream::SetStats( 196 void FakeVideoReceiveStream::SetStats(
197 const webrtc::VideoReceiveStream::Stats& stats) { 197 const webrtc::VideoReceiveStream::Stats& stats) {
198 stats_ = stats; 198 stats_ = stats;
199 } 199 }
200 200
201 FakeCall::FakeCall(const webrtc::Call::Config& config) 201 FakeCall::FakeCall(const webrtc::Call::Config& config)
202 : config_(config), 202 : config_(config),
203 network_state_(webrtc::kNetworkUp), 203 network_state_(webrtc::kNetworkUp),
204 num_created_send_streams_(0), 204 num_created_send_streams_(0),
205 num_created_receive_streams_(0) { 205 num_created_receive_streams_(0) {}
206 }
207 206
208 FakeCall::~FakeCall() { 207 FakeCall::~FakeCall() {
209 EXPECT_EQ(0u, video_send_streams_.size()); 208 EXPECT_EQ(0u, video_send_streams_.size());
210 EXPECT_EQ(0u, video_receive_streams_.size()); 209 EXPECT_EQ(0u, video_receive_streams_.size());
211 EXPECT_EQ(0u, audio_receive_streams_.size()); 210 EXPECT_EQ(0u, audio_receive_streams_.size());
212 } 211 }
213 212
214 webrtc::Call::Config FakeCall::GetConfig() const { 213 webrtc::Call::Config FakeCall::GetConfig() const {
215 return config_; 214 return config_;
216 } 215 }
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 } 359 }
361 360
362 void FakeCall::SetBitrateConfig( 361 void FakeCall::SetBitrateConfig(
363 const webrtc::Call::Config::BitrateConfig& bitrate_config) { 362 const webrtc::Call::Config::BitrateConfig& bitrate_config) {
364 config_.bitrate_config = bitrate_config; 363 config_.bitrate_config = bitrate_config;
365 } 364 }
366 365
367 void FakeCall::SignalNetworkState(webrtc::NetworkState state) { 366 void FakeCall::SignalNetworkState(webrtc::NetworkState state) {
368 network_state_ = state; 367 network_state_ = state;
369 } 368 }
369
370 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) {
371 last_sent_packet_ = sent_packet;
372 }
370 } // namespace cricket 373 } // namespace cricket
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698