Chromium Code Reviews| Index: chrome/test/functional/webrtc_apprtc_call.py |
| diff --git a/chrome/test/functional/webrtc_apprtc_call.py b/chrome/test/functional/webrtc_apprtc_call.py |
| index 477399b0fabee71bba3c196a6afb9df3fc7312ae..da71a978738e75dfc7a7a64dbaf7ca0a5c2cb86d 100755 |
| --- a/chrome/test/functional/webrtc_apprtc_call.py |
| +++ b/chrome/test/functional/webrtc_apprtc_call.py |
| @@ -3,6 +3,8 @@ |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| +import random |
| + |
| # Note: pyauto_functional must come before pyauto. |
| import pyauto_functional |
| import pyauto |
| @@ -25,13 +27,29 @@ class WebrtcApprtcCallTest(webrtc_test_base.WebrtcTestBase): |
| self.assertEquals('', self.CheckErrorsAndCrashes(), |
| 'Chrome crashed or hit a critical error during test.') |
| - def testApprtcLoopbackVideoAudioCall(self): |
| + def testApprtcLoopbackCall(self): |
| self.NavigateToURL('http://apprtc.appspot.com/?debug=loopback') |
| self.WaitForInfobarCount(1, tab_index=0) |
| self.PerformActionOnInfobar('accept', infobar_index=0, tab_index=0) |
| self._WaitForCallEstablishment(tab_index=0) |
| + def testApprtcTabToTabCall(self): |
| + random_call_id = 'pyauto%d' % random.randint(0, 65536) |
|
dennis_jeffrey
2012/12/19 18:13:32
what benefit do we get by using a random int in th
phoglund_chromium
2013/01/02 10:18:55
The ID is used to refer to a call session, which i
|
| + apprtc_url = 'http://apprtc.appspot.com/?r=%s' % random_call_id |
| + |
| + self.NavigateToURL(apprtc_url) |
| + self.AppendTab(pyauto.GURL(apprtc_url)) |
| + |
| + self.WaitForInfobarCount(1, tab_index=0) |
| + self.WaitForInfobarCount(1, tab_index=1) |
| + |
| + self.PerformActionOnInfobar('accept', infobar_index=0, tab_index=0) |
| + self.PerformActionOnInfobar('accept', infobar_index=0, tab_index=1) |
| + |
| + self._WaitForCallEstablishment(tab_index=0) |
| + self._WaitForCallEstablishment(tab_index=1) |
| + |
| def _WaitForCallEstablishment(self, tab_index): |
| # AppRTC will set opacity to 1 for remote video when the call is up. |
| video_playing = self.WaitUntil( |