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

Side by Side Diff: build/android/pylib/uiautomator/test_package.py

Issue 358993003: [Android] Switch to DeviceUtils versions of file functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 unified diff | Download patch
« no previous file with comments | « build/android/pylib/screenshot.py ('k') | build/android/pylib/utils/reraiser_thread.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Class representing uiautomator test package.""" 5 """Class representing uiautomator test package."""
6 6
7 import os 7 import os
8 8
9 from pylib import constants 9 from pylib import constants
10 from pylib.instrumentation import test_jar 10 from pylib.instrumentation import test_jar
11 11
12 12
13 class TestPackage(test_jar.TestJar): 13 class TestPackage(test_jar.TestJar):
14 def __init__(self, jar_path, jar_info_path): 14 def __init__(self, jar_path, jar_info_path):
15 test_jar.TestJar.__init__(self, jar_info_path) 15 test_jar.TestJar.__init__(self, jar_info_path)
16 16
17 if not os.path.exists(jar_path): 17 if not os.path.exists(jar_path):
18 raise Exception('%s not found, please build it' % jar_path) 18 raise Exception('%s not found, please build it' % jar_path)
19 self._jar_path = jar_path 19 self._jar_path = jar_path
20 20
21 def GetPackageName(self): 21 def GetPackageName(self):
22 """Returns the JAR named that is installed on the device.""" 22 """Returns the JAR named that is installed on the device."""
23 return os.path.basename(self._jar_path) 23 return os.path.basename(self._jar_path)
24 24
25 # Override. 25 # Override.
26 def Install(self, device): 26 def Install(self, device):
27 device.old_interface.PushIfNeeded(self._jar_path, 27 device.PushChangedFiles(self._jar_path, constants.TEST_EXECUTABLE_DIR)
28 constants.TEST_EXECUTABLE_DIR)
OLDNEW
« no previous file with comments | « build/android/pylib/screenshot.py ('k') | build/android/pylib/utils/reraiser_thread.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698