Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8222)

Unified Diff: chrome/test/functional/chromoting/chromoting_base.py

Issue 10821015: Initial checkin of the me2me pyauto automation: (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
+ *

Powered by Google App Engine
This is Rietveld 408576698