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_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" |
(...skipping 19 matching lines...) Expand all Loading... |
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 protected: |
39 WebRtcTestBase(); | 39 WebRtcTestBase(); |
40 virtual ~WebRtcTestBase(); | 40 ~WebRtcTestBase() override; |
41 | 41 |
42 // 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 |
43 // chrome/test/data/webrtc/message_handling.js. | 43 // chrome/test/data/webrtc/message_handling.js. |
44 void GetUserMediaAndAccept(content::WebContents* tab_contents) const; | 44 void GetUserMediaAndAccept(content::WebContents* tab_contents) const; |
45 void GetUserMediaWithSpecificConstraintsAndAccept( | 45 void GetUserMediaWithSpecificConstraintsAndAccept( |
46 content::WebContents* tab_contents, | 46 content::WebContents* tab_contents, |
47 const std::string& constraints) const; | 47 const std::string& constraints) const; |
48 void GetUserMediaAndDeny(content::WebContents* tab_contents); | 48 void GetUserMediaAndDeny(content::WebContents* tab_contents); |
49 void GetUserMediaWithSpecificConstraintsAndDeny( | 49 void GetUserMediaWithSpecificConstraintsAndDeny( |
50 content::WebContents* tab_contents, | 50 content::WebContents* tab_contents, |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 infobars::InfoBar* GetUserMediaAndWaitForInfoBar( | 130 infobars::InfoBar* GetUserMediaAndWaitForInfoBar( |
131 content::WebContents* tab_contents, | 131 content::WebContents* tab_contents, |
132 const std::string& constraints) const; | 132 const std::string& constraints) const; |
133 | 133 |
134 bool detect_errors_in_javascript_; | 134 bool detect_errors_in_javascript_; |
135 | 135 |
136 DISALLOW_COPY_AND_ASSIGN(WebRtcTestBase); | 136 DISALLOW_COPY_AND_ASSIGN(WebRtcTestBase); |
137 }; | 137 }; |
138 | 138 |
139 #endif // CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_BASE_H_ | 139 #endif // CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_BASE_H_ |
OLD | NEW |