OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 (function() { | 5 (function() { |
6 | 6 |
7 'use strict'; | 7 'use strict'; |
8 | 8 |
9 QUnit.module('XmppErrorCache'); | 9 QUnit.module('XmppErrorCache'); |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... |
27 '<iq xmlns="jabber:client" to="foo@google.com/chromotingE5A" ' + | 27 '<iq xmlns="jabber:client" to="foo@google.com/chromotingE5A" ' + |
28 'type="error" id="12747556118995360108" ' + | 28 'type="error" id="12747556118995360108" ' + |
29 'from="123@chromoting.gserviceaccount.com/chromoting21B21C01">' + | 29 'from="123@chromoting.gserviceaccount.com/chromoting21B21C01">' + |
30 '<jingle xmlns="urn:xmpp:jingle:1" sid="3953621430175055977" ' + | 30 '<jingle xmlns="urn:xmpp:jingle:1" sid="3953621430175055977" ' + |
31 'action="session-initiate" ' + | 31 'action="session-initiate" ' + |
32 'initiator="foo@google.com/chromotingE5A">' + | 32 'initiator="foo@google.com/chromotingE5A">' + |
33 '<content name="chromoting" creator="initiator">' + | 33 '<content name="chromoting" creator="initiator">' + |
34 '<description xmlns="google:remoting">' + | 34 '<description xmlns="google:remoting">' + |
35 '<standard-ice/>' + | 35 '<standard-ice/>' + |
36 '<control transport="mux-stream" version="3"/>' + | 36 '<control transport="mux-stream" version="3"/>' + |
37 '<control transport="quic-stream" version="3"/>' + | |
38 '<event transport="mux-stream" version="2"/>' + | 37 '<event transport="mux-stream" version="2"/>' + |
39 '<event transport="quic-stream" version="2"/>' + | |
40 '<video transport="stream" version="2" codec="vp9"/>' + | 38 '<video transport="stream" version="2" codec="vp9"/>' + |
41 '<video transport="stream" version="2" codec="vp8"/>' + | 39 '<video transport="stream" version="2" codec="vp8"/>' + |
42 '<video transport="quic-stream" version="2" codec="vp9"/>' + | |
43 '<video transport="quic-stream" version="2" codec="vp8"/>' + | |
44 '<audio transport="mux-stream" version="2" codec="opus"/>' + | 40 '<audio transport="mux-stream" version="2" codec="opus"/>' + |
45 '<audio transport="quic-stream" version="2" codec="opus"/>' + | |
46 '<audio transport="none"/>' + | 41 '<audio transport="none"/>' + |
47 '<initial-resolution width="640" height="480"/>' + | |
48 '<authentication supported-methods="spake2_plain"/>' + | 42 '<authentication supported-methods="spake2_plain"/>' + |
49 '<quic-config>AAADwAAAAYAA=</quic-config>' + | |
50 '</description>' + | 43 '</description>' + |
51 '<unknown-field-that-contains-pii unknown-attribute="pii">' + | 44 '<unknown-field-that-contains-pii unknown-attribute="pii">' + |
52 'This is PII' + | 45 'This is PII' + |
53 '</unknown-field-that-contains-pii>' + | 46 '</unknown-field-that-contains-pii>' + |
54 '</content>' + | 47 '</content>' + |
55 '</jingle>' + | 48 '</jingle>' + |
56 '<error code="503" type="cancel">' + | 49 '<error code="503" type="cancel">' + |
57 '<service-unavailable xmlns="urn:ietf:xml:ns:xmpp-stanzas"/>' + | 50 '<service-unavailable xmlns="urn:ietf:xml:ns:xmpp-stanzas"/>' + |
58 '</error>' + | 51 '</error>' + |
59 '</iq>'; | 52 '</iq>'; |
60 var expected = | 53 var expected = |
61 '<iq xmlns="jabber:client" to="REDACTED" type="error" ' + | 54 '<iq xmlns="jabber:client" to="REDACTED" type="error" ' + |
62 'id="12747556118995360108" from="REDACTED">' + | 55 'id="12747556118995360108" from="REDACTED">' + |
63 '<jingle xmlns="urn:xmpp:jingle:1" sid="3953621430175055977" ' + | 56 '<jingle xmlns="urn:xmpp:jingle:1" sid="3953621430175055977" ' + |
64 'action="session-initiate" initiator="REDACTED">' + | 57 'action="session-initiate" initiator="REDACTED">' + |
65 '<content name="chromoting" creator="initiator">' + | 58 '<content name="chromoting" creator="initiator">' + |
66 '<description xmlns="google:remoting">' + | 59 '<description xmlns="google:remoting">' + |
67 '<standard-ice/>' + | 60 '<standard-ice/>' + |
68 '<control transport="mux-stream" version="3"/>' + | 61 '<control transport="mux-stream" version="3"/>' + |
69 '<control transport="quic-stream" version="3"/>' + | |
70 '<event transport="mux-stream" version="2"/>' + | 62 '<event transport="mux-stream" version="2"/>' + |
71 '<event transport="quic-stream" version="2"/>' + | |
72 '<video transport="stream" version="2" codec="vp9"/>' + | 63 '<video transport="stream" version="2" codec="vp9"/>' + |
73 '<video transport="stream" version="2" codec="vp8"/>' + | 64 '<video transport="stream" version="2" codec="vp8"/>' + |
74 '<video transport="quic-stream" version="2" codec="vp9"/>' + | |
75 '<video transport="quic-stream" version="2" codec="vp8"/>' + | |
76 '<audio transport="mux-stream" version="2" codec="opus"/>' + | 65 '<audio transport="mux-stream" version="2" codec="opus"/>' + |
77 '<audio transport="quic-stream" version="2" codec="opus"/>' + | |
78 '<audio transport="none"/>' + | 66 '<audio transport="none"/>' + |
79 '<initial-resolution width="640" height="480"/>' + | |
80 '<authentication supported-methods="spake2_plain"/>' + | 67 '<authentication supported-methods="spake2_plain"/>' + |
81 '<quic-config>AAADwAAAAYAA=</quic-config>' + | |
82 '</description>' + | 68 '</description>' + |
83 '<unknown-field-that-contains-pii unknown-attribute="REDACTED">'+ | 69 '<unknown-field-that-contains-pii unknown-attribute="REDACTED">'+ |
84 'REDACTED' + | 70 'REDACTED' + |
85 '</unknown-field-that-contains-pii>' + | 71 '</unknown-field-that-contains-pii>' + |
86 '</content>' + | 72 '</content>' + |
87 '</jingle>' + | 73 '</jingle>' + |
88 '<error code="503" type="cancel">' + | 74 '<error code="503" type="cancel">' + |
89 '<service-unavailable xmlns="urn:ietf:xml:ns:xmpp-stanzas"/>' + | 75 '<service-unavailable xmlns="urn:ietf:xml:ns:xmpp-stanzas"/>' + |
90 '</error>' + | 76 '</error>' + |
91 '</iq>'; | 77 '</iq>'; |
92 runStanzaTest(input, expected, assert); | 78 runStanzaTest(input, expected, assert); |
93 }); | 79 }); |
94 | 80 |
95 })(); | 81 })(); |
OLD | NEW |