| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 virtual void createAnswer(const WebKit::WebRTCSessionDescriptionRequest&, co
nst WebKit::WebMediaConstraints&) OVERRIDE; | 56 virtual void createAnswer(const WebKit::WebRTCSessionDescriptionRequest&, co
nst WebKit::WebMediaConstraints&) OVERRIDE; |
| 57 virtual void setLocalDescription(const WebKit::WebRTCVoidRequest&, const Web
Kit::WebRTCSessionDescription&) OVERRIDE; | 57 virtual void setLocalDescription(const WebKit::WebRTCVoidRequest&, const Web
Kit::WebRTCSessionDescription&) OVERRIDE; |
| 58 virtual void setRemoteDescription(const WebKit::WebRTCVoidRequest&, const We
bKit::WebRTCSessionDescription&) OVERRIDE; | 58 virtual void setRemoteDescription(const WebKit::WebRTCVoidRequest&, const We
bKit::WebRTCSessionDescription&) OVERRIDE; |
| 59 virtual WebKit::WebRTCSessionDescription localDescription() OVERRIDE; | 59 virtual WebKit::WebRTCSessionDescription localDescription() OVERRIDE; |
| 60 virtual WebKit::WebRTCSessionDescription remoteDescription() OVERRIDE; | 60 virtual WebKit::WebRTCSessionDescription remoteDescription() OVERRIDE; |
| 61 virtual bool updateICE(const WebKit::WebRTCConfiguration&, const WebKit::Web
MediaConstraints&) OVERRIDE; | 61 virtual bool updateICE(const WebKit::WebRTCConfiguration&, const WebKit::Web
MediaConstraints&) OVERRIDE; |
| 62 virtual bool addICECandidate(const WebKit::WebRTCICECandidate&) OVERRIDE; | 62 virtual bool addICECandidate(const WebKit::WebRTCICECandidate&) OVERRIDE; |
| 63 virtual bool addStream(const WebKit::WebMediaStream&, const WebKit::WebMedia
Constraints&) OVERRIDE; | 63 virtual bool addStream(const WebKit::WebMediaStream&, const WebKit::WebMedia
Constraints&) OVERRIDE; |
| 64 virtual void removeStream(const WebKit::WebMediaStream&) OVERRIDE; | 64 virtual void removeStream(const WebKit::WebMediaStream&) OVERRIDE; |
| 65 virtual void getStats(const WebKit::WebRTCStatsRequest&) OVERRIDE; | 65 virtual void getStats(const WebKit::WebRTCStatsRequest&) OVERRIDE; |
| 66 virtual WebKit::WebRTCDataChannelHandler* createDataChannel(const WebKit::We
bString& label, bool reliable) OVERRIDE; | 66 virtual WebKit::WebRTCDataChannelHandler* createDataChannel(const WebKit::We
bString& label, const WebKit::WebRTCDataChannelInit&) OVERRIDE; |
| 67 virtual WebKit::WebRTCDTMFSenderHandler* createDTMFSender(const WebKit::WebM
ediaStreamTrack&) OVERRIDE; | 67 virtual WebKit::WebRTCDTMFSenderHandler* createDTMFSender(const WebKit::WebM
ediaStreamTrack&) OVERRIDE; |
| 68 virtual void stop() OVERRIDE; | 68 virtual void stop() OVERRIDE; |
| 69 | 69 |
| 70 // WebTask related methods | 70 // WebTask related methods |
| 71 WebTaskList* taskList() { return &m_taskList; } | 71 WebTaskList* taskList() { return &m_taskList; } |
| 72 | 72 |
| 73 private: | 73 private: |
| 74 MockWebRTCPeerConnectionHandler() { } | 74 MockWebRTCPeerConnectionHandler() { } |
| 75 | 75 |
| 76 WebKit::WebRTCPeerConnectionHandlerClient* m_client; | 76 WebKit::WebRTCPeerConnectionHandlerClient* m_client; |
| 77 bool m_stopped; | 77 bool m_stopped; |
| 78 WebTaskList m_taskList; | 78 WebTaskList m_taskList; |
| 79 WebKit::WebRTCSessionDescription m_localDescription; | 79 WebKit::WebRTCSessionDescription m_localDescription; |
| 80 WebKit::WebRTCSessionDescription m_remoteDescription; | 80 WebKit::WebRTCSessionDescription m_remoteDescription; |
| 81 int m_streamCount; | 81 int m_streamCount; |
| 82 TestInterfaces* m_interfaces; | 82 TestInterfaces* m_interfaces; |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 } | 85 } |
| 86 | 86 |
| 87 #endif // MockWebRTCPeerConnectionHandler_h | 87 #endif // MockWebRTCPeerConnectionHandler_h |
| 88 | 88 |
| OLD | NEW |