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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 // Returns the stream size as a string on the format <width>x<height>. | 106 // Returns the stream size as a string on the format <width>x<height>. |
107 std::string GetStreamSize(content::WebContents* tab_contents, | 107 std::string GetStreamSize(content::WebContents* tab_contents, |
108 const std::string& video_element) const; | 108 const std::string& video_element) const; |
109 | 109 |
110 // Methods to check what devices we have on the system. | 110 // Methods to check what devices we have on the system. |
111 bool HasWebcamAvailableOnSystem(content::WebContents* tab_contents) const; | 111 bool HasWebcamAvailableOnSystem(content::WebContents* tab_contents) const; |
112 | 112 |
113 // Returns true if we're on WinXP, that lovely operating system of bliss. | 113 // Returns true if we're on WinXP, that lovely operating system of bliss. |
114 bool OnWinXp() const; | 114 bool OnWinXp() const; |
115 | 115 |
| 116 // Returns true if we're on win 8. |
| 117 bool OnWin8() const; |
| 118 |
116 private: | 119 private: |
117 void CloseInfoBarInTab(content::WebContents* tab_contents, | 120 void CloseInfoBarInTab(content::WebContents* tab_contents, |
118 infobars::InfoBar* infobar) const; | 121 infobars::InfoBar* infobar) const; |
119 | 122 |
120 std::string CreateLocalOffer(content::WebContents* from_tab) const; | 123 std::string CreateLocalOffer(content::WebContents* from_tab) const; |
121 std::string CreateAnswer(std::string local_offer, | 124 std::string CreateAnswer(std::string local_offer, |
122 content::WebContents* to_tab) const; | 125 content::WebContents* to_tab) const; |
123 void ReceiveAnswer(std::string answer, content::WebContents* from_tab) const; | 126 void ReceiveAnswer(std::string answer, content::WebContents* from_tab) const; |
124 void GatherAndSendIceCandidates(content::WebContents* from_tab, | 127 void GatherAndSendIceCandidates(content::WebContents* from_tab, |
125 content::WebContents* to_tab) const; | 128 content::WebContents* to_tab) const; |
126 | 129 |
127 infobars::InfoBar* GetUserMediaAndWaitForInfoBar( | 130 infobars::InfoBar* GetUserMediaAndWaitForInfoBar( |
128 content::WebContents* tab_contents, | 131 content::WebContents* tab_contents, |
129 const std::string& constraints) const; | 132 const std::string& constraints) const; |
130 | 133 |
131 bool detect_errors_in_javascript_; | 134 bool detect_errors_in_javascript_; |
132 | 135 |
133 DISALLOW_COPY_AND_ASSIGN(WebRtcTestBase); | 136 DISALLOW_COPY_AND_ASSIGN(WebRtcTestBase); |
134 }; | 137 }; |
135 | 138 |
136 #endif // CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_BASE_H_ | 139 #endif // CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_BASE_H_ |
OLD | NEW |