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

Side by Side Diff: chrome/browser/media/webrtc/webrtc_browsertest_base.h

Issue 2828563002: RTCCertificate.getFingerprints added (exposed to the web) (Closed)
Patch Set: Rebase Created 3 years, 6 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
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 #include <vector> 9 #include <vector>
10 10
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 // Exchanges offers and answers between the peer connections in the 132 // Exchanges offers and answers between the peer connections in the
133 // respective tabs. Before calling this, you must have prepared peer 133 // respective tabs. Before calling this, you must have prepared peer
134 // connections in both tabs and configured them as you like (for instance by 134 // connections in both tabs and configured them as you like (for instance by
135 // calling SetupPeerconnectionWithLocalStream). 135 // calling SetupPeerconnectionWithLocalStream).
136 // If |video_codec| is not |kUseDefaultVideoCodec|, the SDP offer is modified 136 // If |video_codec| is not |kUseDefaultVideoCodec|, the SDP offer is modified
137 // (and SDP answer verified) so that the specified video codec (case-sensitive 137 // (and SDP answer verified) so that the specified video codec (case-sensitive
138 // name) is used during the call instead of the default one. 138 // name) is used during the call instead of the default one.
139 void NegotiateCall(content::WebContents* from_tab, 139 void NegotiateCall(content::WebContents* from_tab,
140 content::WebContents* to_tab) const; 140 content::WebContents* to_tab) const;
141 141
142 void VerifyLocalDescriptionContainsCertificate(
143 content::WebContents* tab,
144 const std::string& certificate) const;
145
142 // Hangs up a negotiated call. 146 // Hangs up a negotiated call.
143 void HangUp(content::WebContents* from_tab) const; 147 void HangUp(content::WebContents* from_tab) const;
144 148
145 // Call this to enable monitoring of javascript errors for this test method. 149 // Call this to enable monitoring of javascript errors for this test method.
146 // This will only work if the tests are run sequentially by the test runner 150 // This will only work if the tests are run sequentially by the test runner
147 // (i.e. with --test-launcher-developer-mode or --test-launcher-jobs=1). 151 // (i.e. with --test-launcher-developer-mode or --test-launcher-jobs=1).
148 void DetectErrorsInJavaScript(); 152 void DetectErrorsInJavaScript();
149 153
150 // Methods for detecting if video is playing (the loaded page must have 154 // Methods for detecting if video is playing (the loaded page must have
151 // chrome/test/data/webrtc/video_detector.js and its dependencies loaded to 155 // chrome/test/data/webrtc/video_detector.js and its dependencies loaded to
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 infobars::InfoBar* GetUserMediaAndWaitForInfoBar( 214 infobars::InfoBar* GetUserMediaAndWaitForInfoBar(
211 content::WebContents* tab_contents, 215 content::WebContents* tab_contents,
212 const std::string& constraints) const; 216 const std::string& constraints) const;
213 217
214 bool detect_errors_in_javascript_; 218 bool detect_errors_in_javascript_;
215 219
216 DISALLOW_COPY_AND_ASSIGN(WebRtcTestBase); 220 DISALLOW_COPY_AND_ASSIGN(WebRtcTestBase);
217 }; 221 };
218 222
219 #endif // CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_BASE_H_ 223 #endif // CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_BASE_H_
OLDNEW
« no previous file with comments | « chrome/browser/media/webrtc/webrtc_browsertest.cc ('k') | chrome/browser/media/webrtc/webrtc_browsertest_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698