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

Side by Side Diff: webrtc/api/statscollector_unittest.cc

Issue 1968393002: Propogate network-worker thread split to api (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase including nits Created 4 years, 7 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 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2014 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 class MockWebRtcSession : public webrtc::WebRtcSession { 68 class MockWebRtcSession : public webrtc::WebRtcSession {
69 public: 69 public:
70 // TODO(nisse): Valid overrides commented out, because the gmock 70 // TODO(nisse): Valid overrides commented out, because the gmock
71 // methods don't use any override declarations, and we want to avoid 71 // methods don't use any override declarations, and we want to avoid
72 // warnings from -Winconsistent-missing-override. See 72 // warnings from -Winconsistent-missing-override. See
73 // http://crbug.com/428099. 73 // http://crbug.com/428099.
74 explicit MockWebRtcSession(webrtc::MediaControllerInterface* media_controller) 74 explicit MockWebRtcSession(webrtc::MediaControllerInterface* media_controller)
75 : WebRtcSession(media_controller, 75 : WebRtcSession(media_controller,
76 rtc::Thread::Current(), 76 rtc::Thread::Current(),
77 rtc::Thread::Current(), 77 rtc::Thread::Current(),
78 rtc::Thread::Current(),
78 nullptr) {} 79 nullptr) {}
79 MOCK_METHOD0(voice_channel, cricket::VoiceChannel*()); 80 MOCK_METHOD0(voice_channel, cricket::VoiceChannel*());
80 MOCK_METHOD0(video_channel, cricket::VideoChannel*()); 81 MOCK_METHOD0(video_channel, cricket::VideoChannel*());
81 // Libjingle uses "local" for a outgoing track, and "remote" for a incoming 82 // Libjingle uses "local" for a outgoing track, and "remote" for a incoming
82 // track. 83 // track.
83 MOCK_METHOD2(GetLocalTrackIdBySsrc, bool(uint32_t, std::string*)); 84 MOCK_METHOD2(GetLocalTrackIdBySsrc, bool(uint32_t, std::string*));
84 MOCK_METHOD2(GetRemoteTrackIdBySsrc, bool(uint32_t, std::string*)); 85 MOCK_METHOD2(GetRemoteTrackIdBySsrc, bool(uint32_t, std::string*));
85 MOCK_METHOD1(GetTransportStats, bool(SessionStats*)); 86 MOCK_METHOD1(GetTransportStats, bool(SessionStats*));
86 MOCK_METHOD2(GetLocalCertificate, 87 MOCK_METHOD2(GetLocalCertificate,
87 bool(const std::string& transport_name, 88 bool(const std::string& transport_name,
(...skipping 1849 matching lines...) Expand 10 before | Expand all | Expand 10 after
1937 cricket::VoiceSenderInfo new_voice_sender_info; 1938 cricket::VoiceSenderInfo new_voice_sender_info;
1938 InitVoiceSenderInfo(&new_voice_sender_info); 1939 InitVoiceSenderInfo(&new_voice_sender_info);
1939 cricket::VoiceMediaInfo new_stats_read; 1940 cricket::VoiceMediaInfo new_stats_read;
1940 reports.clear(); 1941 reports.clear();
1941 SetupAndVerifyAudioTrackStats( 1942 SetupAndVerifyAudioTrackStats(
1942 new_audio_track.get(), stream_.get(), &stats, &voice_channel, kVcName, 1943 new_audio_track.get(), stream_.get(), &stats, &voice_channel, kVcName,
1943 media_channel, &new_voice_sender_info, NULL, &new_stats_read, &reports); 1944 media_channel, &new_voice_sender_info, NULL, &new_stats_read, &reports);
1944 } 1945 }
1945 1946
1946 } // namespace webrtc 1947 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/api/peerconnectioninterface_unittest.cc ('k') | webrtc/api/test/peerconnectiontestwrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698