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 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 // chrome/test/data/webrtc/video_detector.js and its dependencies loaded to | 151 // chrome/test/data/webrtc/video_detector.js and its dependencies loaded to |
152 // make that work). Looks at a 320x240 area of the target video tag. | 152 // make that work). Looks at a 320x240 area of the target video tag. |
153 void StartDetectingVideo(content::WebContents* tab_contents, | 153 void StartDetectingVideo(content::WebContents* tab_contents, |
154 const std::string& video_element) const; | 154 const std::string& video_element) const; |
155 bool WaitForVideoToPlay(content::WebContents* tab_contents) const; | 155 bool WaitForVideoToPlay(content::WebContents* tab_contents) const; |
156 | 156 |
157 // Returns the stream size as a string on the format <width>x<height>. | 157 // Returns the stream size as a string on the format <width>x<height>. |
158 std::string GetStreamSize(content::WebContents* tab_contents, | 158 std::string GetStreamSize(content::WebContents* tab_contents, |
159 const std::string& video_element) const; | 159 const std::string& video_element) const; |
160 | 160 |
161 // Returns true if we're on win 8. | 161 // Returns true if we're on Windows 8 or higher. |
162 bool OnWin8() const; | 162 bool OnWin8OrHigher() const; |
163 | 163 |
164 void OpenDatabase(content::WebContents* tab) const; | 164 void OpenDatabase(content::WebContents* tab) const; |
165 void CloseDatabase(content::WebContents* tab) const; | 165 void CloseDatabase(content::WebContents* tab) const; |
166 void DeleteDatabase(content::WebContents* tab) const; | 166 void DeleteDatabase(content::WebContents* tab) const; |
167 | 167 |
168 void GenerateAndCloneCertificate(content::WebContents* tab, | 168 void GenerateAndCloneCertificate(content::WebContents* tab, |
169 const std::string& keygen_algorithm) const; | 169 const std::string& keygen_algorithm) const; |
170 | 170 |
171 void VerifyStatsGeneratedCallback(content::WebContents* tab) const; | 171 void VerifyStatsGeneratedCallback(content::WebContents* tab) const; |
172 double MeasureGetStatsCallbackPerformance(content::WebContents* tab) const; | 172 double MeasureGetStatsCallbackPerformance(content::WebContents* tab) const; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 infobars::InfoBar* GetUserMediaAndWaitForInfoBar( | 210 infobars::InfoBar* GetUserMediaAndWaitForInfoBar( |
211 content::WebContents* tab_contents, | 211 content::WebContents* tab_contents, |
212 const std::string& constraints) const; | 212 const std::string& constraints) const; |
213 | 213 |
214 bool detect_errors_in_javascript_; | 214 bool detect_errors_in_javascript_; |
215 | 215 |
216 DISALLOW_COPY_AND_ASSIGN(WebRtcTestBase); | 216 DISALLOW_COPY_AND_ASSIGN(WebRtcTestBase); |
217 }; | 217 }; |
218 | 218 |
219 #endif // CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_BASE_H_ | 219 #endif // CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_BASE_H_ |
OLD | NEW |