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

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

Issue 227633002: Fixed quality tests after PyAuto test purge. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: .gitignore'ing resource files Created 6 years, 8 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 video locations. 19 // Reference file locations.
20 20
21 // Checks if the user has the reference video files, 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 kAdviseOnGclientSolution. The reason for this is 23 // .gclient as described in chrome/test/data/webrtc/resources/README. The reason
24 // that we don't want to burden regular chrome devs with downloading these 24 // for this is that we don't want to burden regular chrome devs with downloading
25 // sizable reference files by default. 25 // these sizable reference files by default.
26 bool HasReferenceFilesInCheckout(); 26 bool HasReferenceFilesInCheckout();
27 27
28 // Retrieves the reference video dir, to which file names can be appended. 28 // Retrieves the reference files dir, to which file names can be appended.
29 base::FilePath GetReferenceVideosDir(); 29 base::FilePath GetReferenceFilesDir();
30 30
31 extern const base::FilePath::CharType kReferenceFileName360p[]; 31 extern const base::FilePath::CharType kReferenceFileName360p[];
32 extern const base::FilePath::CharType kYuvFileExtension[]; 32 extern const base::FilePath::CharType kYuvFileExtension[];
33 extern const base::FilePath::CharType kY4mFileExtension[]; 33 extern const base::FilePath::CharType kY4mFileExtension[];
34 34
35 // Executes javascript code which will sleep for |timeout_msec| milliseconds. 35 // Executes javascript code which will sleep for |timeout_msec| milliseconds.
36 // Returns true on success. 36 // Returns true on success.
37 bool SleepInJavascript(content::WebContents* tab_contents, int timeout_msec); 37 bool SleepInJavascript(content::WebContents* tab_contents, int timeout_msec);
38 38
39 // This function will execute the provided |javascript| until it causes a call 39 // This function will execute the provided |javascript| until it causes a call
(...skipping 25 matching lines...) Expand all
65 65
66 static void KillAllPeerConnectionServers(); 66 static void KillAllPeerConnectionServers();
67 67
68 private: 68 private:
69 base::ProcessHandle server_pid_; 69 base::ProcessHandle server_pid_;
70 }; 70 };
71 71
72 } // namespace test 72 } // namespace test
73 73
74 #endif // CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_COMMON_H_ 74 #endif // CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_COMMON_H_
OLDNEW
« no previous file with comments | « chrome/browser/media/chrome_webrtc_video_quality_browsertest.cc ('k') | chrome/browser/media/webrtc_browsertest_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698