diff options
author | jbudorick@chromium.org <jbudorick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-28 23:06:17 +0000 |
---|---|---|
committer | jbudorick@chromium.org <jbudorick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-28 23:06:17 +0000 |
commit | 2eea487ace0cf824ad51cb33d54b4ad440653c77 (patch) | |
tree | f03e2473efa3b9bed2b8c1ae8320eb65800c72e4 /base/test/android | |
parent | 617e6716b1b2bd19556ebec69485cac2ff70d7e5 (diff) | |
download | chromium_src-2eea487ace0cf824ad51cb33d54b4ad440653c77.zip chromium_src-2eea487ace0cf824ad51cb33d54b4ad440653c77.tar.gz chromium_src-2eea487ace0cf824ad51cb33d54b4ad440653c77.tar.bz2 |
[Android] Configurable instrumentation test runner + test SDK levels.
This patch:
- extracts the instrumentation test runner from the
AndroidManifest.xml file in the apk.
- allows test authors to specify a minimum SDK level for
instrumentation test classes via the MinAndroidSdkLevel annotation.
- filters the list of instrumentation tests according to the sdk
levels of all attached devices.
- speeds up our proguard function by dumping to a temporary file.
BUG=
Review URL: https://codereview.chromium.org/415463002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286014 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/test/android')
-rw-r--r-- | base/test/android/javatests/src/org/chromium/base/test/util/MinAndroidSdkLevel.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/base/test/android/javatests/src/org/chromium/base/test/util/MinAndroidSdkLevel.java b/base/test/android/javatests/src/org/chromium/base/test/util/MinAndroidSdkLevel.java new file mode 100644 index 0000000..d7c45e7 --- /dev/null +++ b/base/test/android/javatests/src/org/chromium/base/test/util/MinAndroidSdkLevel.java @@ -0,0 +1,19 @@ +// Copyright 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package org.chromium.base.test.util; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Inherited; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Inherited +@Retention(RetentionPolicy.RUNTIME) +@Target({ElementType.TYPE}) +public @interface MinAndroidSdkLevel { + int value() default 0; +} + |