| 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_COMMON_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_COMMON_H_ |
| 6 #define CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_COMMON_H_ | 6 #define CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_COMMON_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 // TODO(phoglund): Consider a better interaction method with the javascript | 55 // TODO(phoglund): Consider a better interaction method with the javascript |
| 56 // than polling javascript methods. | 56 // than polling javascript methods. |
| 57 bool PollingWaitUntil(const std::string& javascript, | 57 bool PollingWaitUntil(const std::string& javascript, |
| 58 const std::string& evaluates_to, | 58 const std::string& evaluates_to, |
| 59 content::WebContents* tab_contents); | 59 content::WebContents* tab_contents); |
| 60 bool PollingWaitUntil(const std::string& javascript, | 60 bool PollingWaitUntil(const std::string& javascript, |
| 61 const std::string& evaluates_to, | 61 const std::string& evaluates_to, |
| 62 content::WebContents* tab_contents, | 62 content::WebContents* tab_contents, |
| 63 int poll_interval_msec); | 63 int poll_interval_msec); |
| 64 | 64 |
| 65 // Same as above but we assume the message is a boolean type, thus we wait until |
| 66 // executing |javascript| sends a 'true' message. |
| 67 bool PollingWaitUntil(const std::string& javascript, |
| 68 content::WebContents* tab_contents, |
| 69 int poll_interval_msec); |
| 70 |
| 65 } // namespace test | 71 } // namespace test |
| 66 | 72 |
| 67 #endif // CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_COMMON_H_ | 73 #endif // CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_COMMON_H_ |
| OLD | NEW |