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 CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_BASE_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_BASE_H_ |
6 #define CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_BASE_H_ | 6 #define CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_BASE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 // Same as |SetupPeerconnectionWithLocalStream| except a certificate is | 115 // Same as |SetupPeerconnectionWithLocalStream| except a certificate is |
116 // specified, which is a reference to an |RTCCertificate| object. | 116 // specified, which is a reference to an |RTCCertificate| object. |
117 void SetupPeerconnectionWithCertificateAndLocalStream( | 117 void SetupPeerconnectionWithCertificateAndLocalStream( |
118 content::WebContents* tab, | 118 content::WebContents* tab, |
119 const std::string& certificate) const; | 119 const std::string& certificate) const; |
120 // Same as above but does not add the local stream. | 120 // Same as above but does not add the local stream. |
121 void SetupPeerconnectionWithCertificateWithoutLocalStream( | 121 void SetupPeerconnectionWithCertificateWithoutLocalStream( |
122 content::WebContents* tab, | 122 content::WebContents* tab, |
123 const std::string& certificate) const; | 123 const std::string& certificate) const; |
124 | 124 |
125 void CreateDataChannel(content::WebContents* tab, const std::string& label); | |
126 | |
127 // Exchanges offers and answers between the peer connections in the | 125 // Exchanges offers and answers between the peer connections in the |
128 // respective tabs. Before calling this, you must have prepared peer | 126 // respective tabs. Before calling this, you must have prepared peer |
129 // connections in both tabs and configured them as you like (for instance by | 127 // connections in both tabs and configured them as you like (for instance by |
130 // calling SetupPeerconnectionWithLocalStream). | 128 // calling SetupPeerconnectionWithLocalStream). |
131 // If |video_codec| is not |kUseDefaultVideoCodec|, the SDP offer is modified | 129 // If |video_codec| is not |kUseDefaultVideoCodec|, the SDP offer is modified |
132 // (and SDP answer verified) so that the specified video codec (case-sensitive | 130 // (and SDP answer verified) so that the specified video codec (case-sensitive |
133 // name) is used during the call instead of the default one. | 131 // name) is used during the call instead of the default one. |
134 void NegotiateCall(content::WebContents* from_tab, | 132 void NegotiateCall(content::WebContents* from_tab, |
135 content::WebContents* to_tab) const; | 133 content::WebContents* to_tab) const; |
136 | 134 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 infobars::InfoBar* GetUserMediaAndWaitForInfoBar( | 189 infobars::InfoBar* GetUserMediaAndWaitForInfoBar( |
192 content::WebContents* tab_contents, | 190 content::WebContents* tab_contents, |
193 const std::string& constraints) const; | 191 const std::string& constraints) const; |
194 | 192 |
195 bool detect_errors_in_javascript_; | 193 bool detect_errors_in_javascript_; |
196 | 194 |
197 DISALLOW_COPY_AND_ASSIGN(WebRtcTestBase); | 195 DISALLOW_COPY_AND_ASSIGN(WebRtcTestBase); |
198 }; | 196 }; |
199 | 197 |
200 #endif // CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_BASE_H_ | 198 #endif // CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_BASE_H_ |
OLD | NEW |