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 "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
159 // Returns true if we're on win 8. | 159 // Returns true if we're on win 8. |
160 bool OnWin8() const; | 160 bool OnWin8() const; |
161 | 161 |
162 void OpenDatabase(content::WebContents* tab) const; | 162 void OpenDatabase(content::WebContents* tab) const; |
163 void CloseDatabase(content::WebContents* tab) const; | 163 void CloseDatabase(content::WebContents* tab) const; |
164 void DeleteDatabase(content::WebContents* tab) const; | 164 void DeleteDatabase(content::WebContents* tab) const; |
165 | 165 |
166 void GenerateAndCloneCertificate(content::WebContents* tab, | 166 void GenerateAndCloneCertificate(content::WebContents* tab, |
167 const std::string& keygen_algorithm) const; | 167 const std::string& keygen_algorithm) const; |
168 | 168 |
169 void GetStats(content::WebContents* tab) const; | |
phoglund_chromium
2016/07/27 12:52:10
The name is misleading since it doesn't really get
hbos_chromium
2016/07/27 13:50:31
Done.
| |
170 | |
169 private: | 171 private: |
170 void CloseInfoBarInTab(content::WebContents* tab_contents, | 172 void CloseInfoBarInTab(content::WebContents* tab_contents, |
171 infobars::InfoBar* infobar) const; | 173 infobars::InfoBar* infobar) const; |
172 | 174 |
173 std::string CreateLocalOffer( | 175 std::string CreateLocalOffer( |
174 content::WebContents* from_tab, | 176 content::WebContents* from_tab, |
175 std::string default_video_codec = kUseDefaultVideoCodec) const; | 177 std::string default_video_codec = kUseDefaultVideoCodec) const; |
176 std::string CreateAnswer( | 178 std::string CreateAnswer( |
177 std::string local_offer, | 179 std::string local_offer, |
178 content::WebContents* to_tab, | 180 content::WebContents* to_tab, |
179 std::string default_video_codec = kUseDefaultVideoCodec) const; | 181 std::string default_video_codec = kUseDefaultVideoCodec) const; |
180 void ReceiveAnswer(const std::string& answer, | 182 void ReceiveAnswer(const std::string& answer, |
181 content::WebContents* from_tab) const; | 183 content::WebContents* from_tab) const; |
182 void GatherAndSendIceCandidates(content::WebContents* from_tab, | 184 void GatherAndSendIceCandidates(content::WebContents* from_tab, |
183 content::WebContents* to_tab) const; | 185 content::WebContents* to_tab) const; |
184 | 186 |
185 infobars::InfoBar* GetUserMediaAndWaitForInfoBar( | 187 infobars::InfoBar* GetUserMediaAndWaitForInfoBar( |
186 content::WebContents* tab_contents, | 188 content::WebContents* tab_contents, |
187 const std::string& constraints) const; | 189 const std::string& constraints) const; |
188 | 190 |
189 bool detect_errors_in_javascript_; | 191 bool detect_errors_in_javascript_; |
190 | 192 |
191 DISALLOW_COPY_AND_ASSIGN(WebRtcTestBase); | 193 DISALLOW_COPY_AND_ASSIGN(WebRtcTestBase); |
192 }; | 194 }; |
193 | 195 |
194 #endif // CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_BASE_H_ | 196 #endif // CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_BASE_H_ |
OLD | NEW |