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

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

Issue 2309823005: WIP: Add Firefox interop tests for different formats.
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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 // 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
151 // (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).
152 void DetectErrorsInJavaScript(); 152 void DetectErrorsInJavaScript();
153 153
154 // 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
155 // 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
156 // make that work). Looks at a 320x240 area of the target video tag. 156 // make that work). Looks at a 320x240 area of the target video tag.
157 void StartDetectingVideo(content::WebContents* tab_contents, 157 void StartDetectingVideo(content::WebContents* tab_contents,
158 const std::string& video_element) const; 158 const std::string& video_element) const;
159 bool WaitForVideoToPlay(content::WebContents* tab_contents) const; 159 bool WaitForVideoToPlay(content::WebContents* tab_contents) const;
160 void CheckVideoFormat(content::WebContents* tab_contents,
161 std::string const& format) const;
160 162
161 // Returns the stream size as a string on the format <width>x<height>. 163 // Returns the stream size as a string on the format <width>x<height>.
162 std::string GetStreamSize(content::WebContents* tab_contents, 164 std::string GetStreamSize(content::WebContents* tab_contents,
163 const std::string& video_element) const; 165 const std::string& video_element) const;
164 166
165 // Returns true if we're on Windows 8 or higher. 167 // Returns true if we're on Windows 8 or higher.
166 bool OnWin8OrHigher() const; 168 bool OnWin8OrHigher() const;
167 169
168 void OpenDatabase(content::WebContents* tab) const; 170 void OpenDatabase(content::WebContents* tab) const;
169 void CloseDatabase(content::WebContents* tab) const; 171 void CloseDatabase(content::WebContents* tab) const;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 infobars::InfoBar* GetUserMediaAndWaitForInfoBar( 216 infobars::InfoBar* GetUserMediaAndWaitForInfoBar(
215 content::WebContents* tab_contents, 217 content::WebContents* tab_contents,
216 const std::string& constraints) const; 218 const std::string& constraints) const;
217 219
218 bool detect_errors_in_javascript_; 220 bool detect_errors_in_javascript_;
219 221
220 DISALLOW_COPY_AND_ASSIGN(WebRtcTestBase); 222 DISALLOW_COPY_AND_ASSIGN(WebRtcTestBase);
221 }; 223 };
222 224
223 #endif // CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_BASE_H_ 225 #endif // CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_BASE_H_
OLDNEW
« no previous file with comments | « chrome/browser/media/webrtc/webrtc_apprtc_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