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_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 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 bool OnWin8() const; | 155 bool OnWin8() const; |
156 | 156 |
157 void OpenDatabase(content::WebContents* tab) const; | 157 void OpenDatabase(content::WebContents* tab) const; |
158 void CloseDatabase(content::WebContents* tab) const; | 158 void CloseDatabase(content::WebContents* tab) const; |
159 void DeleteDatabase(content::WebContents* tab) const; | 159 void DeleteDatabase(content::WebContents* tab) const; |
160 | 160 |
161 void GenerateAndCloneCertificate(content::WebContents* tab, | 161 void GenerateAndCloneCertificate(content::WebContents* tab, |
162 const std::string& keygen_algorithm) const; | 162 const std::string& keygen_algorithm) const; |
163 | 163 |
164 void VerifyStatsGeneratedCallback(content::WebContents* tab) const; | 164 void VerifyStatsGeneratedCallback(content::WebContents* tab) const; |
165 void VerifyStatsGeneratedPromise(content::WebContents* tab) const; | 165 std::vector<std::string> VerifyStatsGeneratedPromise( |
| 166 content::WebContents* tab) const; |
| 167 std::vector<std::string> GetWhitelistedStatsTypes( |
| 168 content::WebContents* tab) const; |
166 | 169 |
167 // Change the default video codec in the offer SDP. | 170 // Change the default video codec in the offer SDP. |
168 void SetDefaultVideoCodec(content::WebContents* tab, | 171 void SetDefaultVideoCodec(content::WebContents* tab, |
169 const std::string& video_codec) const; | 172 const std::string& video_codec) const; |
170 | 173 |
171 // Add 'usedtx=1' to the offer SDP. | 174 // Add 'usedtx=1' to the offer SDP. |
172 void EnableOpusDtx(content::WebContents* tab) const; | 175 void EnableOpusDtx(content::WebContents* tab) const; |
173 | 176 |
174 private: | 177 private: |
175 void CloseInfoBarInTab(content::WebContents* tab_contents, | 178 void CloseInfoBarInTab(content::WebContents* tab_contents, |
(...skipping 10 matching lines...) Expand all Loading... |
186 infobars::InfoBar* GetUserMediaAndWaitForInfoBar( | 189 infobars::InfoBar* GetUserMediaAndWaitForInfoBar( |
187 content::WebContents* tab_contents, | 190 content::WebContents* tab_contents, |
188 const std::string& constraints) const; | 191 const std::string& constraints) const; |
189 | 192 |
190 bool detect_errors_in_javascript_; | 193 bool detect_errors_in_javascript_; |
191 | 194 |
192 DISALLOW_COPY_AND_ASSIGN(WebRtcTestBase); | 195 DISALLOW_COPY_AND_ASSIGN(WebRtcTestBase); |
193 }; | 196 }; |
194 | 197 |
195 #endif // CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_BASE_H_ | 198 #endif // CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_BASE_H_ |
OLD | NEW |