Index: chrome/test/functional/webrtc_call.py |
diff --git a/chrome/test/functional/webrtc_call.py b/chrome/test/functional/webrtc_call.py |
index 4c1db7e201a80c5fc4ee7752143603c2c549b3ec..8e8842afe43c8f7cad9c748e1ed2be30ac6deb73 100755 |
--- a/chrome/test/functional/webrtc_call.py |
+++ b/chrome/test/functional/webrtc_call.py |
@@ -5,18 +5,16 @@ |
import os |
import subprocess |
-import time |
-import unittest |
import pyauto_functional |
import pyauto |
- |
+import webrtc_test_base |
class MissingRequiredBinaryException(Exception): |
pass |
-class WebRTCCallTest(pyauto.PyUITest): |
+class WebRTCCallTest(webrtc_test_base.WebrtcTestBase): |
"""Test we can set up a WebRTC call and disconnect it. |
Prerequisites: This test case must run on a machine with a webcam, either |
@@ -184,16 +182,6 @@ class WebRTCCallTest(pyauto.PyUITest): |
self.assertEquals('ok-disconnected', self.ExecuteJavascript( |
'disconnect()', tab_index=tab_index)) |
- def _WaitForGetUserMediaResult(self, tab_index): |
- def HasResult(): |
- return self._GetUserMediaResult(tab_index) != 'not-called-yet' |
- self.assertTrue(self.WaitUntil(HasResult), |
- msg='Timed out while waiting for getUserMedia callback.') |
- |
- def _GetUserMediaResult(self, tab_index): |
- return self.ExecuteJavascript( |
- 'obtainGetUserMediaResult()', tab_index=tab_index) |
- |
def _StartDetectingVideo(self, tab_index, video_element): |
self.assertEquals('ok-started', self.ExecuteJavascript( |
'startDetection("%s", "frame_buffer", 320, 240)' % video_element, |