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

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

Issue 19799003: [android] Instumentation tests determine whether to install test apk based on Md5Sum. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed install of APK to be tested, turns out there isn't a consistent pattern to the naming Created 7 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 | Annotate | Revision Log
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 instrumentation test apk and jar.""" 5 """Class representing instrumentation test apk and jar."""
6 6
7 import os 7 import os
8 import re
frankf 2013/07/25 18:31:02 remove this
8 9
9 from pylib.utils import apk_helper 10 from pylib.utils import apk_helper
10 11
11 import test_jar 12 import test_jar
12 13
13 14
14 class TestPackage(test_jar.TestJar): 15 class TestPackage(test_jar.TestJar):
15 def __init__(self, apk_path, jar_path): 16 def __init__(self, apk_path, jar_path):
16 test_jar.TestJar.__init__(self, jar_path) 17 test_jar.TestJar.__init__(self, jar_path)
17 18
(...skipping 11 matching lines...) Expand all
29 """Returns the name of the apk without the suffix.""" 30 """Returns the name of the apk without the suffix."""
30 return self._apk_name 31 return self._apk_name
31 32
32 def GetPackageName(self): 33 def GetPackageName(self):
33 """Returns the package name of this APK.""" 34 """Returns the package name of this APK."""
34 return self._package_name 35 return self._package_name
35 36
36 # Override. 37 # Override.
37 def Install(self, adb): 38 def Install(self, adb):
38 adb.ManagedInstall(self.GetApkPath(), package_name=self.GetPackageName()) 39 adb.ManagedInstall(self.GetApkPath(), package_name=self.GetPackageName())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698