diff options
author | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-01-17 18:26:44 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-01-17 18:26:44 +0000 |
commit | 670057b3178e6d91ee550a1fb421cd47ffebeda5 (patch) | |
tree | 5d327c65a77f337a90f8b3a03f4c6294c4a60207 /tests | |
parent | 120ef9fec3f272ce776e0f7aacdea6c2b33b65c4 (diff) | |
parent | 0a42add425a719375487a97694997eed5b535929 (diff) | |
download | platform_packages_apps_Car_Dialer-670057b3178e6d91ee550a1fb421cd47ffebeda5.tar.gz platform_packages_apps_Car_Dialer-670057b3178e6d91ee550a1fb421cd47ffebeda5.tar.bz2 platform_packages_apps_Car_Dialer-670057b3178e6d91ee550a1fb421cd47ffebeda5.zip |
Convert CarDialer to Android.bp am: 0a42add425
Change-Id: I92f5237ecc1886fe952c4d61326c74e5e9bd7b68
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Android.mk | 19 | ||||
-rw-r--r-- | tests/robotests/Android.bp | 17 | ||||
-rw-r--r-- | tests/robotests/Android.mk | 49 |
3 files changed, 17 insertions, 68 deletions
diff --git a/tests/Android.mk b/tests/Android.mk deleted file mode 100644 index 0903c90c..00000000 --- a/tests/Android.mk +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright (C) 2018 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) - -# Include all makefiles in subdirectories -include $(call all-makefiles-under,$(LOCAL_PATH)) diff --git a/tests/robotests/Android.bp b/tests/robotests/Android.bp new file mode 100644 index 00000000..4d843dfa --- /dev/null +++ b/tests/robotests/Android.bp @@ -0,0 +1,17 @@ +//############################################################ +// Car Dialer Robolectric test target. # +//############################################################ +android_robolectric_test { + name: "CarDialerRoboTests", + + srcs: ["src/**/*.java"], + + java_resource_dirs: ["config"], + + // Include the testing libraries + libs: [ + "android.car", + ], + + instrumentation_for: "CarDialerAppForTesting", +} diff --git a/tests/robotests/Android.mk b/tests/robotests/Android.mk deleted file mode 100644 index 26134454..00000000 --- a/tests/robotests/Android.mk +++ /dev/null @@ -1,49 +0,0 @@ -LOCAL_PATH := $(call my-dir) -############################################################# -# Car Dialer Robolectric test target. # -############################################################# -include $(CLEAR_VARS) - -LOCAL_MODULE := CarDialerRoboTests -LOCAL_MODULE_CLASS := JAVA_LIBRARIES - -LOCAL_SRC_FILES := $(call all-java-files-under, src) - -LOCAL_JAVA_RESOURCE_DIRS := config - -# Include the testing libraries -LOCAL_JAVA_LIBRARIES := \ - android.car \ - robolectric_android-all-stub \ - Robolectric_all-target \ - mockito-robolectric-prebuilt \ - truth-prebuilt - -LOCAL_INSTRUMENTATION_FOR := CarDialerAppForTesting - -LOCAL_MODULE_TAGS := optional - -# Generate test_config.properties -include external/robolectric-shadows/gen_test_config.mk -include $(BUILD_STATIC_JAVA_LIBRARY) - -############################################################# -# Car Dialer runner target to run the previous target. # -############################################################# -include $(CLEAR_VARS) - -LOCAL_MODULE := RunCarDialerRoboTests - -LOCAL_JAVA_LIBRARIES := \ - android.car \ - CarDialerRoboTests \ - robolectric_android-all-stub \ - Robolectric_all-target \ - mockito-robolectric-prebuilt \ - truth-prebuilt - -LOCAL_TEST_PACKAGE := CarDialerAppForTesting - -LOCAL_INSTRUMENT_SOURCE_DIRS := $(dir $(LOCAL_PATH))../src - -include external/robolectric-shadows/run_robotests.mk |