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

Side by Side Diff: chrome/browser/media/webrtc_browsertest_base.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_BASE_H_ 5 #ifndef CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_BASE_H_
6 #define CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_BASE_H_ 6 #define CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_BASE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/test/base/in_process_browser_test.h" 10 #include "chrome/test/base/in_process_browser_test.h"
11 11
12 namespace infobars { 12 namespace infobars {
13 class InfoBar; 13 class InfoBar;
14 } 14 }
15 15
16 namespace content { 16 namespace content {
17 class WebContents; 17 class WebContents;
18 } 18 }
19 19
20 // Base class for WebRTC browser tests with useful primitives for interacting 20 // Base class for WebRTC browser tests with useful primitives for interacting
21 // getUserMedia. We use inheritance here because it makes the test code look 21 // getUserMedia. We use inheritance here because it makes the test code look
22 // as clean as it can be. 22 // as clean as it can be.
23 class WebRtcTestBase : public InProcessBrowserTest { 23 class WebRtcTestBase : public InProcessBrowserTest {
24 protected: 24 public:
25 // Typical constraints. 25 // Typical constraints.
26 static const char kAudioVideoCallConstraints[]; 26 static const char kAudioVideoCallConstraints[];
27 static const char kAudioOnlyCallConstraints[]; 27 static const char kAudioOnlyCallConstraints[];
28 static const char kVideoOnlyCallConstraints[]; 28 static const char kVideoOnlyCallConstraints[];
29 static const char kAudioVideoCallConstraintsQVGA[]; 29 static const char kAudioVideoCallConstraintsQVGA[];
30 static const char kAudioVideoCallConstraints360p[]; 30 static const char kAudioVideoCallConstraints360p[];
31 static const char kAudioVideoCallConstraintsVGA[]; 31 static const char kAudioVideoCallConstraintsVGA[];
32 static const char kAudioVideoCallConstraints720p[]; 32 static const char kAudioVideoCallConstraints720p[];
33 static const char kAudioVideoCallConstraints1080p[]; 33 static const char kAudioVideoCallConstraints1080p[];
34 34
35 static const char kFailedWithPermissionDeniedError[]; 35 static const char kFailedWithPermissionDeniedError[];
36 static const char kFailedWithPermissionDismissedError[]; 36 static const char kFailedWithPermissionDismissedError[];
37 37
38 protected:
38 WebRtcTestBase(); 39 WebRtcTestBase();
39 virtual ~WebRtcTestBase(); 40 virtual ~WebRtcTestBase();
40 41
41 // These all require that the loaded page fulfills the public interface in 42 // These all require that the loaded page fulfills the public interface in
42 // chrome/test/data/webrtc/message_handling.js. 43 // chrome/test/data/webrtc/message_handling.js.
43 void GetUserMediaAndAccept(content::WebContents* tab_contents) const; 44 void GetUserMediaAndAccept(content::WebContents* tab_contents) const;
44 void GetUserMediaWithSpecificConstraintsAndAccept( 45 void GetUserMediaWithSpecificConstraintsAndAccept(
45 content::WebContents* tab_contents, 46 content::WebContents* tab_contents,
46 const std::string& constraints) const; 47 const std::string& constraints) const;
47 void GetUserMediaAndDeny(content::WebContents* tab_contents); 48 void GetUserMediaAndDeny(content::WebContents* tab_contents);
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 infobars::InfoBar* GetUserMediaAndWaitForInfoBar( 111 infobars::InfoBar* GetUserMediaAndWaitForInfoBar(
111 content::WebContents* tab_contents, 112 content::WebContents* tab_contents,
112 const std::string& constraints) const; 113 const std::string& constraints) const;
113 114
114 bool detect_errors_in_javascript_; 115 bool detect_errors_in_javascript_;
115 116
116 DISALLOW_COPY_AND_ASSIGN(WebRtcTestBase); 117 DISALLOW_COPY_AND_ASSIGN(WebRtcTestBase);
117 }; 118 };
118 119
119 #endif // CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_BASE_H_ 120 #endif // CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_BASE_H_
OLDNEW
« no previous file with comments | « chrome/browser/media/chrome_webrtc_video_quality_browsertest.cc ('k') | chrome/browser/media/webrtc_browsertest_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698