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

Side by Side 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, 4 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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:executable
+ *
OLDNEW
(Empty)
1 #!/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.
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
4 # found in the LICENSE file.
5
6 import chromoting
7 import pyauto
8
9
10 class ChromotingBase(chromoting.ChromotingMixIn, pyauto.PyUITest):
11 """Chromoting pyauto test base class."""
12
13 _EXTRA_CHROME_FLAGS = [
14 '--allow-nacl-socket-api=*',
15 ]
16
17 def ExtraChromeFlags(self):
18 """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.
19
20 Overrides the default list of extra flags passed to Chrome. See
21 ExtraChromeFlags() in pyauto.py.
22
Nirnimesh 2012/08/06 19:13:53 remove blank line
yihongg 2012/08/08 01:04:48 Done.
23 """
24 return pyauto.PyUITest.ExtraChromeFlags(self) + self._EXTRA_CHROME_FLAGS
25
26 def setUp(self):
27 """Prepares chromoting client, host, etc."""
28 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.
29
30 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__
31 self.host = self
32 self.client = self if self.client_local else self.remote
33 self.client_tab_index = 2 if self.client_local else 1
34
35
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698