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

Side by Side Diff: webrtc/pc/test/mock_webrtcsession.h

Issue 2863123002: Wire up BWE stats through WebrtcSession so that they are filled in both for audio and video calls. (Closed)
Patch Set: Comments addressed." Created 3 years, 6 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/statscollector_unittest.cc ('k') | webrtc/pc/webrtcsession.h » ('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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 nullptr, 43 nullptr,
44 /*redetermine_role_on_ice_restart=*/true, 44 /*redetermine_role_on_ice_restart=*/true,
45 rtc::CryptoOptions())), 45 rtc::CryptoOptions())),
46 std::unique_ptr<cricket::SctpTransportInternalFactory>()) {} 46 std::unique_ptr<cricket::SctpTransportInternalFactory>()) {}
47 MOCK_METHOD0(voice_channel, cricket::VoiceChannel*()); 47 MOCK_METHOD0(voice_channel, cricket::VoiceChannel*());
48 MOCK_METHOD0(video_channel, cricket::VideoChannel*()); 48 MOCK_METHOD0(video_channel, cricket::VideoChannel*());
49 // Libjingle uses "local" for a outgoing track, and "remote" for a incoming 49 // Libjingle uses "local" for a outgoing track, and "remote" for a incoming
50 // track. 50 // track.
51 MOCK_METHOD2(GetLocalTrackIdBySsrc, bool(uint32_t, std::string*)); 51 MOCK_METHOD2(GetLocalTrackIdBySsrc, bool(uint32_t, std::string*));
52 MOCK_METHOD2(GetRemoteTrackIdBySsrc, bool(uint32_t, std::string*)); 52 MOCK_METHOD2(GetRemoteTrackIdBySsrc, bool(uint32_t, std::string*));
53 MOCK_METHOD0(GetCallStats, Call::Stats());
53 MOCK_METHOD1(GetStats, 54 MOCK_METHOD1(GetStats,
54 std::unique_ptr<SessionStats>(const ChannelNamePairs&)); 55 std::unique_ptr<SessionStats>(const ChannelNamePairs&));
55 MOCK_METHOD2(GetLocalCertificate, 56 MOCK_METHOD2(GetLocalCertificate,
56 bool(const std::string& transport_name, 57 bool(const std::string& transport_name,
57 rtc::scoped_refptr<rtc::RTCCertificate>* certificate)); 58 rtc::scoped_refptr<rtc::RTCCertificate>* certificate));
58 59
59 // Workaround for gmock's inability to cope with move-only return values. 60 // Workaround for gmock's inability to cope with move-only return values.
60 std::unique_ptr<rtc::SSLCertificate> GetRemoteSSLCertificate( 61 std::unique_ptr<rtc::SSLCertificate> GetRemoteSSLCertificate(
61 const std::string& transport_name) /* override */ { 62 const std::string& transport_name) /* override */ {
62 return std::unique_ptr<rtc::SSLCertificate>( 63 return std::unique_ptr<rtc::SSLCertificate>(
63 GetRemoteSSLCertificate_ReturnsRawPointer(transport_name)); 64 GetRemoteSSLCertificate_ReturnsRawPointer(transport_name));
64 } 65 }
65 MOCK_METHOD1(GetRemoteSSLCertificate_ReturnsRawPointer, 66 MOCK_METHOD1(GetRemoteSSLCertificate_ReturnsRawPointer,
66 rtc::SSLCertificate*(const std::string& transport_name)); 67 rtc::SSLCertificate*(const std::string& transport_name));
67 }; 68 };
68 69
69 } // namespace webrtc 70 } // namespace webrtc
70 71
71 #endif // WEBRTC_PC_TEST_MOCK_WEBRTCSESSION_H_ 72 #endif // WEBRTC_PC_TEST_MOCK_WEBRTCSESSION_H_
OLDNEW
« no previous file with comments | « webrtc/pc/statscollector_unittest.cc ('k') | webrtc/pc/webrtcsession.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698