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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/webrtc/rtcpeerconnection/rtcpeerconnection-idl.html

Issue 1984133002: Move web-platform-tests to wpt (part 2 of 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
(Empty)
1 <!doctype html>
2 <html>
3 <head>
4 <meta charset=utf-8>
5 <title>IDL check of RTCPeerConnection</title>
6 <link rel="author" title="Harald Alvestrand" href="mailto:hta@google.com"/>
7 <link rel="help" href="http://w3c.github.io/webrtc-pc/#rtcpeerconnection-interfa ce">
8 </head>
9 <body>
10
11 <h1 class="instructions" style="display:none">Description</h1>
12 <p class="instructions" style="display:none">This test verifies the availability of the RTCPeerConnection interface.</p>
13 <div id='log'></div>
14 <script src=../../../../resources/testharness.js></script>
15 <script src=../../../../resources/testharnessreport.js></script>
16 <script src=../../../../resources/WebIDLParser.js></script>
17 <script src=../../../../resources/idlharness.js></script>
18
19 <!-- The IDL is copied from the 22 September 2015 editors' draft. -->
20 <script type="text/plain">
21 interface EventTarget {
22 // Only a dummy definition is needed here.
23 };
24 [ Constructor (optional RTCConfiguration configuration)]
25 interface RTCPeerConnection : EventTarget {
26 Promise<RTCSessionDescription> createOffer (optional RTCOfferOptions options );
27 Promise<RTCSessionDescription> createAnswer (optional RTCAnswerOptions optio ns);
28 Promise<void> setLocalDescription (RTCSessionDescription de scription);
29 readonly attribute RTCSessionDescription? localDescription;
30 readonly attribute RTCSessionDescription? currentLocalDescription;
31 readonly attribute RTCSessionDescription? pendingLocalDescription;
32 Promise<void> setRemoteDescription (RTCSessionDescription d escription);
33 readonly attribute RTCSessionDescription? remoteDescription;
34 readonly attribute RTCSessionDescription? currentRemoteDescription;
35 readonly attribute RTCSessionDescription? pendingRemoteDescription;
36 Promise<void> addIceCandidate (RTCIceCandidate candidate);
37 readonly attribute RTCSignalingState signalingState;
38 readonly attribute RTCIceGatheringState iceGatheringState;
39 readonly attribute RTCIceConnectionState iceConnectionState;
40 readonly attribute boolean? canTrickleIceCandidates;
41 RTCConfiguration getConfiguration ();
42 void setConfiguration (RTCConfiguration configurat ion);
43 void close ();
44 attribute EventHandler onnegotiationneeded;
45 attribute EventHandler onicecandidate;
46 attribute EventHandler onsignalingstatechange;
47 attribute EventHandler oniceconnectionstatechange;
48 attribute EventHandler onicegatheringstatechange;
49 };
50
51 partial interface RTCPeerConnection {
52 void createOffer (RTCSessionDescriptionCallback successCallback, RTCPeerConn ectionErrorCallback failureCallback, optional RTCOfferOptions options);
53 void setLocalDescription (RTCSessionDescription description, VoidFunction su ccessCallback, RTCPeerConnectionErrorCallback failureCallback);
54 void createAnswer (RTCSessionDescriptionCallback successCallback, RTCPeerCon nectionErrorCallback failureCallback);
55 void setRemoteDescription (RTCSessionDescription description, VoidFunction s uccessCallback, RTCPeerConnectionErrorCallback failureCallback);
56 void addIceCandidate (RTCIceCandidate candidate, VoidFunction successCallbac k, RTCPeerConnectionErrorCallback failureCallback);
57 void getStats (MediaStreamTrack? selector, RTCStatsCallback successCallback, RTCPeerConnectionErrorCallback failureCallback);
58 };
59
60 partial interface RTCPeerConnection {
61 static Promise<RTCCertificate> generateCertificate (AlgorithmIdentifier keyg enAlgorithm);
62 };
63
64 partial interface RTCPeerConnection {
65 sequence<RTCRtpSender> getSenders ();
66 sequence<RTCRtpReceiver> getReceivers ();
67 RTCRtpSender addTrack (MediaStreamTrack track, MediaStream... st reams);
68 void removeTrack (RTCRtpSender sender);
69 attribute EventHandler ontrack;
70 };
71
72 partial interface RTCPeerConnection {
73 RTCDataChannel createDataChannel ([TreatNullAs=EmptyString] DOMString label, optional RTCDataChannelInit dataChannelDict);
74 attribute EventHandler ondatachannel;
75 };
76
77 partial interface RTCPeerConnection {
78 readonly attribute RTCDTMFSender? dtmf;
79 };
80
81 partial interface RTCPeerConnection {
82 Promise<RTCStatsReport> getStats (optional MediaStreamTrack? selector);
83 };
84
85 partial interface RTCPeerConnection {
86 void setIdentityProvider (DOMString provider, optional DOMStri ng protocol, optional DOMString usernameHint);
87 Promise<DOMString> getIdentityAssertion ();
88 readonly attribute Promise<RTCIdentityAssertion> peerIdentity;
89 readonly attribute DOMString? idpLoginUrl;
90 };
91
92 </script>
93 <script>
94 (function() {
95 var idl_array = new IdlArray();
96 [].forEach.call(document.querySelectorAll("script[type=text\\/plain]"),
97 function(node) {
98 idl_array.add_idls(node.textContent);
99 });
100 window.pc = new RTCPeerConnection(null);
101 idl_array.add_objects({"RTCPeerConnection": ["pc"]});
102 idl_array.test();
103 done();
104 })();
105 </script>
106 </body>
107 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698