OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 import pyauto_functional | 6 import pyauto_functional |
7 import webrtc_test_base | 7 import webrtc_test_base |
8 | 8 |
9 | 9 |
10 class WebrtcBrutalityTest(webrtc_test_base.WebrtcTestBase): | 10 class WebrtcBrutalityTest(webrtc_test_base.WebrtcTestBase): |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 self.GetUserMedia(tab_index=0, action='allow') | 68 self.GetUserMedia(tab_index=0, action='allow') |
69 self.CloseTab(tab_index=0) | 69 self.CloseTab(tab_index=0) |
70 | 70 |
71 def _GetUserMediaWithoutTakingAction(self, tab_index): | 71 def _GetUserMediaWithoutTakingAction(self, tab_index): |
72 self.assertEquals('ok-requested', self.ExecuteJavascript( | 72 self.assertEquals('ok-requested', self.ExecuteJavascript( |
73 'getUserMedia(true, true)', tab_index=0)) | 73 'getUserMedia(true, true)', tab_index=0)) |
74 | 74 |
75 | 75 |
76 if __name__ == '__main__': | 76 if __name__ == '__main__': |
77 pyauto_functional.Main() | 77 pyauto_functional.Main() |
OLD | NEW |