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

Side by Side Diff: chrome/browser/media/webrtc_browsertest_common.h

Issue 247723006: Add HD browser test to WebRTC suite. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Win compile error Created 6 years, 7 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 | Annotate | Revision Log
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_BROWSERTEST_COMMON_H_ 5 #ifndef CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_COMMON_H_
6 #define CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_COMMON_H_ 6 #define CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_COMMON_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/process/process_handle.h" 11 #include "base/process/process_handle.h"
12 12
13 namespace content { 13 namespace content {
14 class WebContents; 14 class WebContents;
15 } 15 }
16 16
17 namespace test { 17 namespace test {
18 18
19 // Reference file locations. 19 // Reference file locations.
20 20
21 // Checks if the user has the reference files directory, returns true if so. 21 // Checks if the user has the reference files directory, returns true if so.
22 // If the user's checkout don't have these dirs, they need to configure their 22 // If the user's checkout don't have these dirs, they need to configure their
23 // .gclient as described in chrome/test/data/webrtc/resources/README. The reason 23 // .gclient as described in chrome/test/data/webrtc/resources/README. The reason
24 // for this is that we don't want to burden regular chrome devs with downloading 24 // for this is that we don't want to burden regular chrome devs with downloading
25 // these sizable reference files by default. 25 // these sizable reference files by default.
26 bool HasReferenceFilesInCheckout(); 26 bool HasReferenceFilesInCheckout();
27 27
28 // Verifies both the YUV and Y4M version of the reference file exists.
29 bool HasYuvAndY4mFile(const base::FilePath::CharType* reference_file);
30
28 // Retrieves the reference files dir, to which file names can be appended. 31 // Retrieves the reference files dir, to which file names can be appended.
29 base::FilePath GetReferenceFilesDir(); 32 base::FilePath GetReferenceFilesDir();
30 33
31 extern const base::FilePath::CharType kReferenceFileName360p[]; 34 extern const base::FilePath::CharType kReferenceFileName360p[];
35 extern const base::FilePath::CharType kReferenceFileName720p[];
32 extern const base::FilePath::CharType kYuvFileExtension[]; 36 extern const base::FilePath::CharType kYuvFileExtension[];
33 extern const base::FilePath::CharType kY4mFileExtension[]; 37 extern const base::FilePath::CharType kY4mFileExtension[];
34 38
35 // Executes javascript code which will sleep for |timeout_msec| milliseconds. 39 // Executes javascript code which will sleep for |timeout_msec| milliseconds.
36 // Returns true on success. 40 // Returns true on success.
37 bool SleepInJavascript(content::WebContents* tab_contents, int timeout_msec); 41 bool SleepInJavascript(content::WebContents* tab_contents, int timeout_msec);
38 42
39 // This function will execute the provided |javascript| until it causes a call 43 // This function will execute the provided |javascript| until it causes a call
40 // to window.domAutomationController.send() with |evaluates_to| as the message. 44 // to window.domAutomationController.send() with |evaluates_to| as the message.
41 // That is, we are NOT checking what the javascript evaluates to. Returns false 45 // That is, we are NOT checking what the javascript evaluates to. Returns false
(...skipping 23 matching lines...) Expand all
65 69
66 static void KillAllPeerConnectionServers(); 70 static void KillAllPeerConnectionServers();
67 71
68 private: 72 private:
69 base::ProcessHandle server_pid_; 73 base::ProcessHandle server_pid_;
70 }; 74 };
71 75
72 } // namespace test 76 } // namespace test
73 77
74 #endif // CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_COMMON_H_ 78 #endif // CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_COMMON_H_
OLDNEW
« no previous file with comments | « chrome/browser/media/webrtc_browsertest_base.h ('k') | chrome/browser/media/webrtc_browsertest_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698