Chromium Code Reviews| Index: chrome/test/functional/chromoting/chromoting_base.py |
| =================================================================== |
| --- chrome/test/functional/chromoting/chromoting_base.py (revision 0) |
| +++ chrome/test/functional/chromoting/chromoting_base.py (revision 0) |
| @@ -0,0 +1,35 @@ |
| +#!/usr/bin/env python |
|
Nirnimesh
2012/08/06 19:13:53
This file need not be executable
yihongg
2012/08/08 01:04:48
Done.
|
| +# Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +import chromoting |
| +import pyauto |
| + |
| + |
| +class ChromotingBase(chromoting.ChromotingMixIn, pyauto.PyUITest): |
| + """Chromoting pyauto test base class.""" |
| + |
| + _EXTRA_CHROME_FLAGS = [ |
| + '--allow-nacl-socket-api=*', |
| + ] |
| + |
| + def ExtraChromeFlags(self): |
| + """Ensures Chrome is launched with some custom flags. |
|
Nirnimesh
2012/08/06 19:13:53
Replace this placeholder string with description o
yihongg
2012/08/08 01:04:48
Done.
|
| + |
| + Overrides the default list of extra flags passed to Chrome. See |
| + ExtraChromeFlags() in pyauto.py. |
| + |
|
Nirnimesh
2012/08/06 19:13:53
remove blank line
yihongg
2012/08/08 01:04:48
Done.
|
| + """ |
| + return pyauto.PyUITest.ExtraChromeFlags(self) + self._EXTRA_CHROME_FLAGS |
| + |
| + def setUp(self): |
| + """Prepares chromoting client, host, etc.""" |
| + super(ChromotingBase, self).setUp() |
|
Nirnimesh
2012/08/06 19:13:53
prefer pyauto.PyUITest.setUp(self)
for consistency
yihongg
2012/08/08 01:04:48
Done.
|
| + |
| + self.client_local = (self.remote == None) |
|
Nirnimesh
2012/08/06 19:13:53
are these vars used in child classes? If so declar
yihongg
2012/08/08 01:04:48
Made change to put instance variables in __init__
|
| + self.host = self |
| + self.client = self if self.client_local else self.remote |
| + self.client_tab_index = 2 if self.client_local else 1 |
| + |
| + |
| Property changes on: chrome/test/functional/chromoting/chromoting_base.py |
| ___________________________________________________________________ |
| Added: svn:executable |
| + * |