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

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

Issue 1610243002: Move talk/app/webrtc to webrtc/api (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Updated location for peerconnection_unittests.isolate Created 4 years, 11 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 13 matching lines...) Expand all
24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28 #include "talk/media/webrtc/fakewebrtccall.h" 28 #include "talk/media/webrtc/fakewebrtccall.h"
29 29
30 #include <algorithm> 30 #include <algorithm>
31 #include <utility> 31 #include <utility>
32 32
33 #include "talk/media/base/rtputils.h" 33 #include "talk/media/base/rtputils.h"
34 #include "webrtc/audio/audio_sink.h"
34 #include "webrtc/base/checks.h" 35 #include "webrtc/base/checks.h"
35 #include "webrtc/base/gunit.h" 36 #include "webrtc/base/gunit.h"
36 #include "webrtc/audio/audio_sink.h"
37 37
38 namespace cricket { 38 namespace cricket {
39 FakeAudioSendStream::FakeAudioSendStream( 39 FakeAudioSendStream::FakeAudioSendStream(
40 const webrtc::AudioSendStream::Config& config) : config_(config) { 40 const webrtc::AudioSendStream::Config& config) : config_(config) {
41 RTC_DCHECK(config.voe_channel_id != -1); 41 RTC_DCHECK(config.voe_channel_id != -1);
42 } 42 }
43 43
44 const webrtc::AudioSendStream::Config& 44 const webrtc::AudioSendStream::Config&
45 FakeAudioSendStream::GetConfig() const { 45 FakeAudioSendStream::GetConfig() const {
46 return config_; 46 return config_;
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 } 434 }
435 435
436 void FakeCall::SignalNetworkState(webrtc::NetworkState state) { 436 void FakeCall::SignalNetworkState(webrtc::NetworkState state) {
437 network_state_ = state; 437 network_state_ = state;
438 } 438 }
439 439
440 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) { 440 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) {
441 last_sent_packet_ = sent_packet; 441 last_sent_packet_ = sent_packet;
442 } 442 }
443 } // namespace cricket 443 } // namespace cricket
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698