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

Side by Side Diff: components/test_runner/mock_webrtc_peer_connection_handler.h

Issue 2317063002: WebRTCPeerConnectionHandler::getStats for the new stats collector API (Closed)
Patch Set: TODO to impl MockWebRTCPeerConnectionHandler::getStats in a follow-up instead Created 4 years, 3 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_TEST_RUNNER_MOCK_WEBRTC_PEER_CONNECTION_HANDLER_H_ 5 #ifndef COMPONENTS_TEST_RUNNER_MOCK_WEBRTC_PEER_CONNECTION_HANDLER_H_
6 #define COMPONENTS_TEST_RUNNER_MOCK_WEBRTC_PEER_CONNECTION_HANDLER_H_ 6 #define COMPONENTS_TEST_RUNNER_MOCK_WEBRTC_PEER_CONNECTION_HANDLER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 blink::WebRTCSessionDescription remoteDescription() override; 52 blink::WebRTCSessionDescription remoteDescription() override;
53 bool updateICE(const blink::WebRTCConfiguration& configuration) override; 53 bool updateICE(const blink::WebRTCConfiguration& configuration) override;
54 void logSelectedRtcpMuxPolicy(blink::RtcpMuxPolicy) override; 54 void logSelectedRtcpMuxPolicy(blink::RtcpMuxPolicy) override;
55 bool addICECandidate(const blink::WebRTCICECandidate& ice_candidate) override; 55 bool addICECandidate(const blink::WebRTCICECandidate& ice_candidate) override;
56 bool addICECandidate(const blink::WebRTCVoidRequest& request, 56 bool addICECandidate(const blink::WebRTCVoidRequest& request,
57 const blink::WebRTCICECandidate& ice_candidate) override; 57 const blink::WebRTCICECandidate& ice_candidate) override;
58 bool addStream(const blink::WebMediaStream& stream, 58 bool addStream(const blink::WebMediaStream& stream,
59 const blink::WebMediaConstraints& constraints) override; 59 const blink::WebMediaConstraints& constraints) override;
60 void removeStream(const blink::WebMediaStream& stream) override; 60 void removeStream(const blink::WebMediaStream& stream) override;
61 void getStats(const blink::WebRTCStatsRequest& request) override; 61 void getStats(const blink::WebRTCStatsRequest& request) override;
62 void getStats(std::unique_ptr<blink::WebRTCStatsReportCallback>) override;
62 blink::WebRTCDataChannelHandler* createDataChannel( 63 blink::WebRTCDataChannelHandler* createDataChannel(
63 const blink::WebString& label, 64 const blink::WebString& label,
64 const blink::WebRTCDataChannelInit& init) override; 65 const blink::WebRTCDataChannelInit& init) override;
65 blink::WebRTCDTMFSenderHandler* createDTMFSender( 66 blink::WebRTCDTMFSenderHandler* createDTMFSender(
66 const blink::WebMediaStreamTrack& track) override; 67 const blink::WebMediaStreamTrack& track) override;
67 void stop() override; 68 void stop() override;
68 69
69 private: 70 private:
70 MockWebRTCPeerConnectionHandler(); 71 MockWebRTCPeerConnectionHandler();
71 72
(...skipping 25 matching lines...) Expand all
97 StreamMap remote_streams_; 98 StreamMap remote_streams_;
98 99
99 base::WeakPtrFactory<MockWebRTCPeerConnectionHandler> weak_factory_; 100 base::WeakPtrFactory<MockWebRTCPeerConnectionHandler> weak_factory_;
100 101
101 DISALLOW_COPY_AND_ASSIGN(MockWebRTCPeerConnectionHandler); 102 DISALLOW_COPY_AND_ASSIGN(MockWebRTCPeerConnectionHandler);
102 }; 103 };
103 104
104 } // namespace test_runner 105 } // namespace test_runner
105 106
106 #endif // COMPONENTS_TEST_RUNNER_MOCK_WEBRTC_PEER_CONNECTION_HANDLER_H_ 107 #endif // COMPONENTS_TEST_RUNNER_MOCK_WEBRTC_PEER_CONNECTION_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698