summaryrefslogtreecommitdiff
path: root/core/tests/bandwidthtests
diff options
context:
space:
mode:
authorSasha Smundak <asmundak@google.com>2019-04-05 03:06:44 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-04-05 03:06:44 -0700
commit7d6c615c82f9252c1c0fcbf7bfb73a50771fc6d0 (patch)
tree870a73bb22c4cf0ec5b29a184f4722db590ad4ef /core/tests/bandwidthtests
parent1de554dd19a9c71264bcc8dc44edcf3b30b73394 (diff)
parent37c0949bf59c154aed07d055c6048fcf130952db (diff)
Merge "Convert core/tests/**/Android.mk file to Android.bp" am: d0fc8c9d5b
am: 37c0949bf5 Change-Id: Ia4e91ee9eb77fbd5d9063ce28506fe60b86aec36
Diffstat (limited to 'core/tests/bandwidthtests')
-rw-r--r--core/tests/bandwidthtests/Android.bp26
-rw-r--r--core/tests/bandwidthtests/Android.mk36
2 files changed, 26 insertions, 36 deletions
diff --git a/core/tests/bandwidthtests/Android.bp b/core/tests/bandwidthtests/Android.bp
new file mode 100644
index 000000000000..5d881b8be68c
--- /dev/null
+++ b/core/tests/bandwidthtests/Android.bp
@@ -0,0 +1,26 @@
+// Copyright (C) 2011 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.
+
+android_test {
+ name: "BandwidthTests",
+ // Include all test java files.
+ srcs: ["src/**/*.java"],
+ libs: [
+ "android.test.runner",
+ "org.apache.http.legacy",
+ "android.test.base",
+ ],
+ static_libs: ["junit"],
+ platform_apis: true,
+}
diff --git a/core/tests/bandwidthtests/Android.mk b/core/tests/bandwidthtests/Android.mk
deleted file mode 100644
index dc80d00e42c1..000000000000
--- a/core/tests/bandwidthtests/Android.mk
+++ /dev/null
@@ -1,36 +0,0 @@
-# Copyright (C) 2011 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.
-
-LOCAL_PATH := $(call my-dir)
-include $(CLEAR_VARS)
-
-# We only want this apk build for tests.
-LOCAL_MODULE_TAGS := tests
-
-# Include all test java files.
-LOCAL_SRC_FILES := \
- $(call all-java-files-under, src)
-
-LOCAL_JAVA_LIBRARIES := \
- android.test.runner \
- org.apache.http.legacy \
- android.test.base \
-
-LOCAL_STATIC_JAVA_LIBRARIES := junit
-LOCAL_PACKAGE_NAME := BandwidthTests
-LOCAL_PRIVATE_PLATFORM_APIS := true
-
-include $(BUILD_PACKAGE)
-
-include $(call all-makefiles-under,$(LOCAL_PATH))