| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 const std::string& video_element) const; | 103 const std::string& video_element) const; |
| 104 void WaitForVideoToPlay(content::WebContents* tab_contents) const; | 104 void WaitForVideoToPlay(content::WebContents* tab_contents) const; |
| 105 | 105 |
| 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. |
| 114 bool OnWinXp() const; |
| 115 |
| 113 private: | 116 private: |
| 114 void CloseInfoBarInTab(content::WebContents* tab_contents, | 117 void CloseInfoBarInTab(content::WebContents* tab_contents, |
| 115 infobars::InfoBar* infobar) const; | 118 infobars::InfoBar* infobar) const; |
| 116 | 119 |
| 117 std::string CreateLocalOffer(content::WebContents* from_tab) const; | 120 std::string CreateLocalOffer(content::WebContents* from_tab) const; |
| 118 std::string CreateAnswer(std::string local_offer, | 121 std::string CreateAnswer(std::string local_offer, |
| 119 content::WebContents* to_tab) const; | 122 content::WebContents* to_tab) const; |
| 120 void ReceiveAnswer(std::string answer, content::WebContents* from_tab) const; | 123 void ReceiveAnswer(std::string answer, content::WebContents* from_tab) const; |
| 121 void GatherAndSendIceCandidates(content::WebContents* from_tab, | 124 void GatherAndSendIceCandidates(content::WebContents* from_tab, |
| 122 content::WebContents* to_tab) const; | 125 content::WebContents* to_tab) const; |
| 123 | 126 |
| 124 infobars::InfoBar* GetUserMediaAndWaitForInfoBar( | 127 infobars::InfoBar* GetUserMediaAndWaitForInfoBar( |
| 125 content::WebContents* tab_contents, | 128 content::WebContents* tab_contents, |
| 126 const std::string& constraints) const; | 129 const std::string& constraints) const; |
| 127 | 130 |
| 128 bool detect_errors_in_javascript_; | 131 bool detect_errors_in_javascript_; |
| 129 | 132 |
| 130 DISALLOW_COPY_AND_ASSIGN(WebRtcTestBase); | 133 DISALLOW_COPY_AND_ASSIGN(WebRtcTestBase); |
| 131 }; | 134 }; |
| 132 | 135 |
| 133 #endif // CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_BASE_H_ | 136 #endif // CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_BASE_H_ |
| OLD | NEW |