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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 // chrome/test/data/webrtc/video_detector.js and its dependencies loaded to | 144 // chrome/test/data/webrtc/video_detector.js and its dependencies loaded to |
145 // make that work). Looks at a 320x240 area of the target video tag. | 145 // make that work). Looks at a 320x240 area of the target video tag. |
146 void StartDetectingVideo(content::WebContents* tab_contents, | 146 void StartDetectingVideo(content::WebContents* tab_contents, |
147 const std::string& video_element) const; | 147 const std::string& video_element) const; |
148 bool WaitForVideoToPlay(content::WebContents* tab_contents) const; | 148 bool WaitForVideoToPlay(content::WebContents* tab_contents) const; |
149 | 149 |
150 // Returns the stream size as a string on the format <width>x<height>. | 150 // Returns the stream size as a string on the format <width>x<height>. |
151 std::string GetStreamSize(content::WebContents* tab_contents, | 151 std::string GetStreamSize(content::WebContents* tab_contents, |
152 const std::string& video_element) const; | 152 const std::string& video_element) const; |
153 | 153 |
| 154 // Methods to check what devices we have on the system. |
| 155 bool HasWebcamAvailableOnSystem(content::WebContents* tab_contents) const; |
| 156 |
154 // Returns true if we're on win 8. | 157 // Returns true if we're on win 8. |
155 bool OnWin8() const; | 158 bool OnWin8() const; |
156 | 159 |
157 void OpenDatabase(content::WebContents* tab) const; | 160 void OpenDatabase(content::WebContents* tab) const; |
158 void CloseDatabase(content::WebContents* tab) const; | 161 void CloseDatabase(content::WebContents* tab) const; |
159 void DeleteDatabase(content::WebContents* tab) const; | 162 void DeleteDatabase(content::WebContents* tab) const; |
160 | 163 |
161 void GenerateAndCloneCertificate(content::WebContents* tab, | 164 void GenerateAndCloneCertificate(content::WebContents* tab, |
162 const std::string& keygen_algorithm) const; | 165 const std::string& keygen_algorithm) const; |
163 | 166 |
(...skipping 21 matching lines...) Expand all Loading... |
185 infobars::InfoBar* GetUserMediaAndWaitForInfoBar( | 188 infobars::InfoBar* GetUserMediaAndWaitForInfoBar( |
186 content::WebContents* tab_contents, | 189 content::WebContents* tab_contents, |
187 const std::string& constraints) const; | 190 const std::string& constraints) const; |
188 | 191 |
189 bool detect_errors_in_javascript_; | 192 bool detect_errors_in_javascript_; |
190 | 193 |
191 DISALLOW_COPY_AND_ASSIGN(WebRtcTestBase); | 194 DISALLOW_COPY_AND_ASSIGN(WebRtcTestBase); |
192 }; | 195 }; |
193 | 196 |
194 #endif // CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_BASE_H_ | 197 #endif // CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_BASE_H_ |
OLD | NEW |