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 14 matching lines...) Expand all Loading... |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef MockWebRTCPeerConnectionHandler_h | 31 #ifndef MockWebRTCPeerConnectionHandler_h |
32 #define MockWebRTCPeerConnectionHandler_h | 32 #define MockWebRTCPeerConnectionHandler_h |
33 | 33 |
34 #include "TestCommon.h" | 34 #include "TestCommon.h" |
| 35 #include "public/platform/WebNonCopyable.h" |
35 #include "public/platform/WebRTCPeerConnectionHandler.h" | 36 #include "public/platform/WebRTCPeerConnectionHandler.h" |
36 #include "public/platform/WebRTCSessionDescription.h" | 37 #include "public/platform/WebRTCSessionDescription.h" |
37 #include "public/platform/WebRTCSessionDescriptionRequest.h" | 38 #include "public/platform/WebRTCSessionDescriptionRequest.h" |
38 #include "public/platform/WebRTCStatsRequest.h" | 39 #include "public/platform/WebRTCStatsRequest.h" |
39 #include "public/testing/WebTask.h" | 40 #include "public/testing/WebTask.h" |
40 | 41 |
41 namespace WebKit { | 42 namespace WebKit { |
42 class WebRTCPeerConnectionHandlerClient; | 43 class WebRTCPeerConnectionHandlerClient; |
43 }; | 44 }; |
44 | 45 |
45 namespace WebTestRunner { | 46 namespace WebTestRunner { |
46 | 47 |
47 class TestInterfaces; | 48 class TestInterfaces; |
48 | 49 |
49 class MockWebRTCPeerConnectionHandler : public WebKit::WebRTCPeerConnectionHandl
er { | 50 class MockWebRTCPeerConnectionHandler : public WebKit::WebRTCPeerConnectionHandl
er, public WebKit::WebNonCopyable { |
50 public: | 51 public: |
51 MockWebRTCPeerConnectionHandler(WebKit::WebRTCPeerConnectionHandlerClient*,
TestInterfaces*); | 52 MockWebRTCPeerConnectionHandler(WebKit::WebRTCPeerConnectionHandlerClient*,
TestInterfaces*); |
52 | 53 |
53 virtual bool initialize(const WebKit::WebRTCConfiguration&, const WebKit::We
bMediaConstraints&) OVERRIDE; | 54 virtual bool initialize(const WebKit::WebRTCConfiguration&, const WebKit::We
bMediaConstraints&) OVERRIDE; |
54 | 55 |
55 virtual void createOffer(const WebKit::WebRTCSessionDescriptionRequest&, con
st WebKit::WebMediaConstraints&) OVERRIDE; | 56 virtual void createOffer(const WebKit::WebRTCSessionDescriptionRequest&, con
st WebKit::WebMediaConstraints&) OVERRIDE; |
56 virtual void createAnswer(const WebKit::WebRTCSessionDescriptionRequest&, co
nst WebKit::WebMediaConstraints&) OVERRIDE; | 57 virtual void createAnswer(const WebKit::WebRTCSessionDescriptionRequest&, co
nst WebKit::WebMediaConstraints&) OVERRIDE; |
57 virtual void setLocalDescription(const WebKit::WebRTCVoidRequest&, const Web
Kit::WebRTCSessionDescription&) OVERRIDE; | 58 virtual void setLocalDescription(const WebKit::WebRTCVoidRequest&, const Web
Kit::WebRTCSessionDescription&) OVERRIDE; |
58 virtual void setRemoteDescription(const WebKit::WebRTCVoidRequest&, const We
bKit::WebRTCSessionDescription&) OVERRIDE; | 59 virtual void setRemoteDescription(const WebKit::WebRTCVoidRequest&, const We
bKit::WebRTCSessionDescription&) OVERRIDE; |
59 virtual WebKit::WebRTCSessionDescription localDescription() OVERRIDE; | 60 virtual WebKit::WebRTCSessionDescription localDescription() OVERRIDE; |
(...skipping 20 matching lines...) Expand all Loading... |
80 WebKit::WebRTCSessionDescription m_localDescription; | 81 WebKit::WebRTCSessionDescription m_localDescription; |
81 WebKit::WebRTCSessionDescription m_remoteDescription; | 82 WebKit::WebRTCSessionDescription m_remoteDescription; |
82 int m_streamCount; | 83 int m_streamCount; |
83 TestInterfaces* m_interfaces; | 84 TestInterfaces* m_interfaces; |
84 }; | 85 }; |
85 | 86 |
86 } | 87 } |
87 | 88 |
88 #endif // MockWebRTCPeerConnectionHandler_h | 89 #endif // MockWebRTCPeerConnectionHandler_h |
89 | 90 |
OLD | NEW |