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 |
+# 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 os |
+ |
+import chromoting |
+import pyauto |
+ |
+class ChromotingBase(chromoting.ChromotingMixIn, pyauto.PyUITest): |
+ """Chromoting pyatuo test base class.""" |
simonmorris
2012/07/30 22:44:24
pyatuo -> pyauto
yihongg1
2012/08/03 00:40:06
Done.
|
+ |
+ _EXTRA_CHROME_FLAGS = [ |
+ '--allow-nacl-socket-api=*', |
+ ] |
+ |
+ def ExtraChromeFlags(self): |
+ """Ensures Chrome is launched with some custom flags. |
+ |
+ Overrides the default list of extra flags passed to Chrome. See |
+ ExtraChromeFlags() in pyauto.py. |
+ """ |
+ return pyauto.PyUITest.ExtraChromeFlags(self) + self._EXTRA_CHROME_FLAGS |
+ |
+ def setUp(self): |
+ """Prepares chromoting client, host, etc.""" |
+ super(ChromotingBase, self).setUp() |
+ |
+ self.client_local = (self.remote == None) |
+ 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 |
+ * |