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

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

Issue 1360123005: Enforce marking "override" for functions overriding Blink in components/test_runner/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 // 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/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 10 matching lines...) Expand all
21 namespace test_runner { 21 namespace test_runner {
22 22
23 class TestInterfaces; 23 class TestInterfaces;
24 24
25 class MockWebRTCPeerConnectionHandler 25 class MockWebRTCPeerConnectionHandler
26 : public blink::WebRTCPeerConnectionHandler { 26 : public blink::WebRTCPeerConnectionHandler {
27 public: 27 public:
28 MockWebRTCPeerConnectionHandler( 28 MockWebRTCPeerConnectionHandler(
29 blink::WebRTCPeerConnectionHandlerClient* client, 29 blink::WebRTCPeerConnectionHandlerClient* client,
30 TestInterfaces* interfaces); 30 TestInterfaces* interfaces);
31 virtual ~MockWebRTCPeerConnectionHandler(); 31 ~MockWebRTCPeerConnectionHandler() override;
32 32
33 // WebRTCPeerConnectionHandler related methods 33 // WebRTCPeerConnectionHandler related methods
34 virtual bool initialize( 34 bool initialize(const blink::WebRTCConfiguration& configuration,
35 const blink::WebRTCConfiguration& configuration, 35 const blink::WebMediaConstraints& constraints) override;
36 const blink::WebMediaConstraints& constraints) override;
37 36
38 virtual void createOffer( 37 void createOffer(const blink::WebRTCSessionDescriptionRequest& request,
39 const blink::WebRTCSessionDescriptionRequest& request, 38 const blink::WebMediaConstraints& constraints) override;
40 const blink::WebMediaConstraints& constraints) override; 39 void createOffer(const blink::WebRTCSessionDescriptionRequest& request,
41 virtual void createOffer( 40 const blink::WebRTCOfferOptions& options) override;
42 const blink::WebRTCSessionDescriptionRequest& request, 41 void createAnswer(const blink::WebRTCSessionDescriptionRequest& request,
43 const blink::WebRTCOfferOptions& options) override; 42 const blink::WebMediaConstraints& constraints) override;
44 virtual void createAnswer( 43 void setLocalDescription(
45 const blink::WebRTCSessionDescriptionRequest& request,
46 const blink::WebMediaConstraints& constraints) override;
47 virtual void setLocalDescription(
48 const blink::WebRTCVoidRequest& request, 44 const blink::WebRTCVoidRequest& request,
49 const blink::WebRTCSessionDescription& local_description) override; 45 const blink::WebRTCSessionDescription& local_description) override;
50 virtual void setRemoteDescription( 46 void setRemoteDescription(
51 const blink::WebRTCVoidRequest& request, 47 const blink::WebRTCVoidRequest& request,
52 const blink::WebRTCSessionDescription& remote_description) override; 48 const blink::WebRTCSessionDescription& remote_description) override;
53 virtual blink::WebRTCSessionDescription localDescription() override; 49 blink::WebRTCSessionDescription localDescription() override;
54 virtual blink::WebRTCSessionDescription remoteDescription() override; 50 blink::WebRTCSessionDescription remoteDescription() override;
55 virtual bool updateICE( 51 bool updateICE(const blink::WebRTCConfiguration& configuration,
56 const blink::WebRTCConfiguration& configuration, 52 const blink::WebMediaConstraints& constraints) override;
57 const blink::WebMediaConstraints& constraints) override; 53 bool addICECandidate(const blink::WebRTCICECandidate& ice_candidate) override;
58 virtual bool addICECandidate( 54 bool addICECandidate(const blink::WebRTCVoidRequest& request,
59 const blink::WebRTCICECandidate& ice_candidate) override; 55 const blink::WebRTCICECandidate& ice_candidate) override;
60 virtual bool addICECandidate( 56 bool addStream(const blink::WebMediaStream& stream,
61 const blink::WebRTCVoidRequest& request, 57 const blink::WebMediaConstraints& constraints) override;
62 const blink::WebRTCICECandidate& ice_candidate) override; 58 void removeStream(const blink::WebMediaStream& stream) override;
63 virtual bool addStream( 59 void getStats(const blink::WebRTCStatsRequest& request) override;
64 const blink::WebMediaStream& stream, 60 blink::WebRTCDataChannelHandler* createDataChannel(
65 const blink::WebMediaConstraints& constraints) override;
66 virtual void removeStream(const blink::WebMediaStream& stream) override;
67 virtual void getStats(const blink::WebRTCStatsRequest& request) override;
68 virtual blink::WebRTCDataChannelHandler* createDataChannel(
69 const blink::WebString& label, 61 const blink::WebString& label,
70 const blink::WebRTCDataChannelInit& init) override; 62 const blink::WebRTCDataChannelInit& init) override;
71 virtual blink::WebRTCDTMFSenderHandler* createDTMFSender( 63 blink::WebRTCDTMFSenderHandler* createDTMFSender(
72 const blink::WebMediaStreamTrack& track) override; 64 const blink::WebMediaStreamTrack& track) override;
73 virtual void stop() override; 65 void stop() override;
74 66
75 // WebTask related methods 67 // WebTask related methods
76 WebTaskList* mutable_task_list() { return &task_list_; } 68 WebTaskList* mutable_task_list() { return &task_list_; }
77 69
78 private: 70 private:
79 MockWebRTCPeerConnectionHandler(); 71 MockWebRTCPeerConnectionHandler();
80 72
81 // UpdateRemoteStreams uses the collection of |local_streams_| to create 73 // UpdateRemoteStreams uses the collection of |local_streams_| to create
82 // remote MediaStreams with the same number of tracks and notifies |client_| 74 // remote MediaStreams with the same number of tracks and notifies |client_|
83 // about added and removed streams. It's triggered when setRemoteDescription 75 // about added and removed streams. It's triggered when setRemoteDescription
(...skipping 10 matching lines...) Expand all
94 typedef std::map<std::string, blink::WebMediaStream> StreamMap; 86 typedef std::map<std::string, blink::WebMediaStream> StreamMap;
95 StreamMap local_streams_; 87 StreamMap local_streams_;
96 StreamMap remote_streams_; 88 StreamMap remote_streams_;
97 89
98 DISALLOW_COPY_AND_ASSIGN(MockWebRTCPeerConnectionHandler); 90 DISALLOW_COPY_AND_ASSIGN(MockWebRTCPeerConnectionHandler);
99 }; 91 };
100 92
101 } // namespace test_runner 93 } // namespace test_runner
102 94
103 #endif // COMPONENTS_TEST_RUNNER_MOCK_WEBRTC_PEER_CONNECTION_HANDLER_H_ 95 #endif // COMPONENTS_TEST_RUNNER_MOCK_WEBRTC_PEER_CONNECTION_HANDLER_H_
OLDNEW
« no previous file with comments | « components/test_runner/mock_webrtc_dtmf_sender_handler.h ('k') | components/test_runner/spell_check_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698