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

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

Issue 2392643003: Removes files from //build that we don't need (Closed)
Patch Set: Created 4 years, 2 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
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4
5 """Class representing uiautomator test package."""
6
7 import os
8
9 from pylib import constants
10 from pylib.instrumentation import test_jar
11
12
13 class TestPackage(test_jar.TestJar):
14
15 UIAUTOMATOR_PATH = 'uiautomator/'
16 UIAUTOMATOR_DEVICE_DIR = os.path.join(constants.TEST_EXECUTABLE_DIR,
17 UIAUTOMATOR_PATH)
18
19 def __init__(self, jar_path, jar_info_path):
20 test_jar.TestJar.__init__(self, jar_info_path)
21
22 if not os.path.exists(jar_path):
23 raise Exception('%s not found, please build it' % jar_path)
24 self._jar_path = jar_path
25
26 def GetPackageName(self):
27 """Returns the JAR named that is installed on the device."""
28 return os.path.basename(self._jar_path)
29
30 # Override.
31 def Install(self, device):
32 device.PushChangedFiles([(self._jar_path, self.UIAUTOMATOR_DEVICE_DIR +
33 self.GetPackageName())])
OLDNEW
« no previous file with comments | « build/android/pylib/uiautomator/test_options.py ('k') | build/android/pylib/uiautomator/test_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698