summaryrefslogtreecommitdiffstats
path: root/testing/android
diff options
context:
space:
mode:
authorshashishekhar@chromium.org <shashishekhar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-10 17:21:09 +0000
committershashishekhar@chromium.org <shashishekhar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-10 17:21:09 +0000
commit413e32da4f13000441f390b8aa721ede3d9c181a (patch)
tree52594108e53e102107e263141e4275556a2730c3 /testing/android
parenteb040998b02d1514cb008cd141925581ad9d2433 (diff)
downloadchromium_src-413e32da4f13000441f390b8aa721ede3d9c181a.zip
chromium_src-413e32da4f13000441f390b8aa721ede3d9c181a.tar.gz
chromium_src-413e32da4f13000441f390b8aa721ede3d9c181a.tar.bz2
Nuke unused test code.
SDK build is the default build, we do not need Android.mk based compilation. Review URL: https://chromiumcodereview.appspot.com/11066094 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161127 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'testing/android')
-rwxr-xr-xtesting/android/generate_native_test.py25
1 files changed, 3 insertions, 22 deletions
diff --git a/testing/android/generate_native_test.py b/testing/android/generate_native_test.py
index aff4f70..169ea66 100755
--- a/testing/android/generate_native_test.py
+++ b/testing/android/generate_native_test.py
@@ -130,11 +130,8 @@ class NativeTestApkGenerator(object):
logging.warn('%s --> %s', jar, dest)
shutil.copyfile(jar, dest)
- def CreateBundle(self, sdk_build):
+ def CreateBundle(self):
"""Create the apk bundle source and assemble components."""
- if not sdk_build:
- self._SOURCE_FILES.append('Android.mk')
- self._REPLACEME_FILES.append('Android.mk')
self._CopyTemplateFilesAndClearDir()
self._ReplaceStrings()
self._CopyLibraryAndJars()
@@ -159,17 +156,6 @@ class NativeTestApkGenerator(object):
logging.error('Ant return code %d', p.returncode)
sys.exit(p.returncode)
- def CompileAndroidMk(self):
- """Build the generated apk within Android source tree using Android.mk."""
- try:
- import compile_android_mk # pylint: disable=F0401
- except:
- raise AssertionError('Not in Android source tree. '
- 'Please use --sdk-build.')
- compile_android_mk.CompileAndroidMk(self._native_library,
- self._output_directory)
-
-
def main(argv):
parser = optparse.OptionParser()
parser.add_option('--verbose',
@@ -217,13 +203,8 @@ def main(argv):
strip_binary=options.strip_binary,
output_directory=options.output,
target_abi=options.app_abi)
- ntag.CreateBundle(options.sdk_build)
-
- if options.sdk_build:
- ntag.Compile(options.ant_args)
- else:
- ntag.CompileAndroidMk()
-
+ ntag.CreateBundle()
+ ntag.Compile(options.ant_args)
logging.warn('COMPLETE.')
if __name__ == '__main__':