OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKWEBRTCPEERCONNECTIONHANDLER_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKWEBRTCPEERCONNECTIONHANDLER_H_ |
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKWEBRTCPEERCONNECTIONHANDLER_H_ | 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKWEBRTCPEERCONNECTIONHANDLER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "content/shell/renderer/test_runner/TestCommon.h" | 9 #include "content/shell/renderer/test_runner/TestCommon.h" |
10 #include "content/shell/renderer/test_runner/WebTask.h" | 10 #include "content/shell/renderer/test_runner/WebTask.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 virtual bool addICECandidate(const blink::WebRTCICECandidate&) OVERRIDE; | 37 virtual bool addICECandidate(const blink::WebRTCICECandidate&) OVERRIDE; |
38 virtual bool addICECandidate(const blink::WebRTCVoidRequest&, const blink::W
ebRTCICECandidate&) OVERRIDE; | 38 virtual bool addICECandidate(const blink::WebRTCVoidRequest&, const blink::W
ebRTCICECandidate&) OVERRIDE; |
39 virtual bool addStream(const blink::WebMediaStream&, const blink::WebMediaCo
nstraints&) OVERRIDE; | 39 virtual bool addStream(const blink::WebMediaStream&, const blink::WebMediaCo
nstraints&) OVERRIDE; |
40 virtual void removeStream(const blink::WebMediaStream&) OVERRIDE; | 40 virtual void removeStream(const blink::WebMediaStream&) OVERRIDE; |
41 virtual void getStats(const blink::WebRTCStatsRequest&) OVERRIDE; | 41 virtual void getStats(const blink::WebRTCStatsRequest&) OVERRIDE; |
42 virtual blink::WebRTCDataChannelHandler* createDataChannel(const blink::WebS
tring& label, const blink::WebRTCDataChannelInit&) OVERRIDE; | 42 virtual blink::WebRTCDataChannelHandler* createDataChannel(const blink::WebS
tring& label, const blink::WebRTCDataChannelInit&) OVERRIDE; |
43 virtual blink::WebRTCDTMFSenderHandler* createDTMFSender(const blink::WebMed
iaStreamTrack&) OVERRIDE; | 43 virtual blink::WebRTCDTMFSenderHandler* createDTMFSender(const blink::WebMed
iaStreamTrack&) OVERRIDE; |
44 virtual void stop() OVERRIDE; | 44 virtual void stop() OVERRIDE; |
45 | 45 |
46 // WebTask related methods | 46 // WebTask related methods |
47 WebTaskList* taskList() { return &m_taskList; } | 47 WebTaskList* mutable_task_list() { return &m_taskList; } |
48 | 48 |
49 private: | 49 private: |
50 MockWebRTCPeerConnectionHandler(); | 50 MockWebRTCPeerConnectionHandler(); |
51 | 51 |
52 blink::WebRTCPeerConnectionHandlerClient* m_client; | 52 blink::WebRTCPeerConnectionHandlerClient* m_client; |
53 bool m_stopped; | 53 bool m_stopped; |
54 WebTaskList m_taskList; | 54 WebTaskList m_taskList; |
55 blink::WebRTCSessionDescription m_localDescription; | 55 blink::WebRTCSessionDescription m_localDescription; |
56 blink::WebRTCSessionDescription m_remoteDescription; | 56 blink::WebRTCSessionDescription m_remoteDescription; |
57 int m_streamCount; | 57 int m_streamCount; |
58 TestInterfaces* m_interfaces; | 58 TestInterfaces* m_interfaces; |
59 | 59 |
60 DISALLOW_COPY_AND_ASSIGN(MockWebRTCPeerConnectionHandler); | 60 DISALLOW_COPY_AND_ASSIGN(MockWebRTCPeerConnectionHandler); |
61 }; | 61 }; |
62 | 62 |
63 } // namespace content | 63 } // namespace content |
64 | 64 |
65 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKWEBRTCPEERCONNECTIONHANDLER_H_ | 65 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKWEBRTCPEERCONNECTIONHANDLER_H_ |
OLD | NEW |