summaryrefslogtreecommitdiffstats
path: root/tests/TileBenchmark
diff options
context:
space:
mode:
authorGuang Zhu <guangzhu@google.com>2012-01-05 15:07:16 -0800
committerGuang Zhu <guangzhu@google.com>2012-01-05 15:16:42 -0800
commit57420bf883ce8c11ae7a1e3acd8f1eebe71edd56 (patch)
treeafbe9efbd8df92aa14143a51ae9b12a54837e656 /tests/TileBenchmark
parent6b14d5858056d49d2cd2162cd043908794e5a4df (diff)
downloadframeworks_base-57420bf883ce8c11ae7a1e3acd8f1eebe71edd56.zip
frameworks_base-57420bf883ce8c11ae7a1e3acd8f1eebe71edd56.tar.gz
frameworks_base-57420bf883ce8c11ae7a1e3acd8f1eebe71edd56.tar.bz2
Small tweaks to Tile Benchmark test
* tag the module as 'tests' so the apk gets includes in test build * merge the instrumentation into TileBenchmark app and eliminate the test apk entirely * changed the default test suite to 'alexa25_2011' which is a suite of pages based on top 25 news sites from alexa, includes primarily english sites, and 3 CJK sites Change-Id: Icd40a70b560bfd7c521adf8ad4b1068483698103
Diffstat (limited to 'tests/TileBenchmark')
-rw-r--r--tests/TileBenchmark/Android.mk10
-rw-r--r--tests/TileBenchmark/AndroidManifest.xml4
-rw-r--r--tests/TileBenchmark/src/com/test/tilebenchmark/PerformanceTest.java (renamed from tests/TileBenchmark/tests/src/com/test/tilebenchmark/PerformanceTest.java)2
-rw-r--r--tests/TileBenchmark/tests/Android.mk16
-rw-r--r--tests/TileBenchmark/tests/AndroidManifest.xml27
5 files changed, 8 insertions, 51 deletions
diff --git a/tests/TileBenchmark/Android.mk b/tests/TileBenchmark/Android.mk
index 430f0f1..5851113 100644
--- a/tests/TileBenchmark/Android.mk
+++ b/tests/TileBenchmark/Android.mk
@@ -21,12 +21,8 @@ LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_PACKAGE_NAME := TileBenchmark
-include $(BUILD_PACKAGE)
+LOCAL_MODULE_TAGS := tests
-##################################################
-include $(CLEAR_VARS)
-
-include $(BUILD_MULTI_PREBUILT)
+LOCAL_JAVA_LIBRARIES := android.test.runner
-# Use the folloing include to make our test apk.
-include $(call all-makefiles-under,$(LOCAL_PATH))
+include $(BUILD_PACKAGE) \ No newline at end of file
diff --git a/tests/TileBenchmark/AndroidManifest.xml b/tests/TileBenchmark/AndroidManifest.xml
index ab61a9e..f125c70 100644
--- a/tests/TileBenchmark/AndroidManifest.xml
+++ b/tests/TileBenchmark/AndroidManifest.xml
@@ -18,5 +18,9 @@
android:label="@string/playback_activity"
android:theme="@android:style/Theme.Holo.NoActionBar">
</activity>
+ <uses-library android:name="android.test.runner" />
</application>
+ <instrumentation android:name="android.test.InstrumentationTestRunner"
+ android:targetPackage="com.test.tilebenchmark"
+ android:label="Tests for WebView Tiles."/>
</manifest>
diff --git a/tests/TileBenchmark/tests/src/com/test/tilebenchmark/PerformanceTest.java b/tests/TileBenchmark/src/com/test/tilebenchmark/PerformanceTest.java
index 6bf6f6b..cc39b75 100644
--- a/tests/TileBenchmark/tests/src/com/test/tilebenchmark/PerformanceTest.java
+++ b/tests/TileBenchmark/src/com/test/tilebenchmark/PerformanceTest.java
@@ -80,7 +80,7 @@ public class PerformanceTest extends
private static final String URL_POSTFIX = "/index.html?skip=true";
private static final int MAX_ITERATIONS = 4;
private static final String TEST_DIRS[] = {
- "intl1"//, "alexa_us", "android", "dom", "intl2", "moz", "moz2"
+ "alexa25_2011"//, "alexa_us", "android", "dom", "intl2", "moz", "moz2"
};
public PerformanceTest() {
diff --git a/tests/TileBenchmark/tests/Android.mk b/tests/TileBenchmark/tests/Android.mk
deleted file mode 100644
index 8b235ec..0000000
--- a/tests/TileBenchmark/tests/Android.mk
+++ /dev/null
@@ -1,16 +0,0 @@
-LOCAL_PATH:= $(call my-dir)
-include $(CLEAR_VARS)
-
-# We only want this apk build for tests.
-LOCAL_MODULE_TAGS := tests
-
-LOCAL_JAVA_LIBRARIES := android.test.runner
-
-# Include all test java files.
-LOCAL_SRC_FILES := $(call all-java-files-under, src)
-
-LOCAL_PACKAGE_NAME := TileBenchmarkTests
-
-LOCAL_INSTRUMENTATION_FOR := TileBenchmark
-
-include $(BUILD_PACKAGE)
diff --git a/tests/TileBenchmark/tests/AndroidManifest.xml b/tests/TileBenchmark/tests/AndroidManifest.xml
deleted file mode 100644
index 703b152..0000000
--- a/tests/TileBenchmark/tests/AndroidManifest.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2008 The Android Open Source Project
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="com.test.tilebenchmark.tests">
-
- <application>
- <uses-library android:name="android.test.runner" />
- </application>
-
- <instrumentation android:name="android.test.InstrumentationTestRunner"
- android:targetPackage="com.test.tilebenchmark"
- android:label="Tests for WebView Tiles."/>
-</manifest>