From 0b138083cbcddd7ad9bc9c88576b5904c78e71aa Mon Sep 17 00:00:00 2001 From: Weilin Xu Date: Tue, 2 Jan 2024 16:08:59 -0800 Subject: Add unit tests for program selector extension Bug: 266834749 Test: atest ProgramSelectorExtTest Change-Id: Ia1f7e74bbf3e2c8bbeb8aeda12a06a0e8806a01b --- car-broadcastradio-support/tests/Android.bp | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 car-broadcastradio-support/tests/Android.bp (limited to 'car-broadcastradio-support/tests/Android.bp') diff --git a/car-broadcastradio-support/tests/Android.bp b/car-broadcastradio-support/tests/Android.bp new file mode 100644 index 0000000..14fa2ba --- /dev/null +++ b/car-broadcastradio-support/tests/Android.bp @@ -0,0 +1,34 @@ +// +// Copyright (C) 2024 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. +// + +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + +android_test { + name: "CarBroadcastRadioSupportTests", + srcs: ["src/**/*.java"], + static_libs: [ + "car-broadcastradio-support", + "androidx.test.rules", + "truth", + ], + libs: ["android.test.base"], + test_suites: [ + "general-tests", + "automotive-general-tests", + ], +} -- cgit v1.2.3 From 8606813e25ec1114b0e17f611a8d907d9cea1951 Mon Sep 17 00:00:00 2001 From: Weilin Xu Date: Wed, 3 Jan 2024 15:43:00 -0800 Subject: Add unit tests for program info extension Bug: 266834749 Test: atest ProgramInfoExtTest Change-Id: Id132eee08ad5ff70209b616afc46ab0a45b72cbc --- car-broadcastradio-support/tests/Android.bp | 1 + 1 file changed, 1 insertion(+) (limited to 'car-broadcastradio-support/tests/Android.bp') diff --git a/car-broadcastradio-support/tests/Android.bp b/car-broadcastradio-support/tests/Android.bp index 14fa2ba..2ae08c6 100644 --- a/car-broadcastradio-support/tests/Android.bp +++ b/car-broadcastradio-support/tests/Android.bp @@ -20,6 +20,7 @@ package { android_test { name: "CarBroadcastRadioSupportTests", + platform_apis: true, srcs: ["src/**/*.java"], static_libs: [ "car-broadcastradio-support", -- cgit v1.2.3 From 4cb68ddb60658cec7c3df6a68917f45c4dddfd8e Mon Sep 17 00:00:00 2001 From: Weilin Xu Date: Wed, 3 Jan 2024 16:23:12 -0800 Subject: Add unit tests for ProgramInfoExt about metadata Add unit tests for methods related to metadata in program info extension class. Bug: 266834749 Test: atest ProgramInfoExtTest Change-Id: Ide9dc066273c7521f99e9edb6bf0df965093d3b9 --- car-broadcastradio-support/tests/Android.bp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'car-broadcastradio-support/tests/Android.bp') diff --git a/car-broadcastradio-support/tests/Android.bp b/car-broadcastradio-support/tests/Android.bp index 2ae08c6..af0aac9 100644 --- a/car-broadcastradio-support/tests/Android.bp +++ b/car-broadcastradio-support/tests/Android.bp @@ -26,10 +26,16 @@ android_test { "car-broadcastradio-support", "androidx.test.rules", "truth", + "mockito-target-extended", ], libs: ["android.test.base"], test_suites: [ "general-tests", "automotive-general-tests", ], + // mockito-target-inline dependency + jni_libs: [ + "libdexmakerjvmtiagent", + "libstaticjvmtiagent", + ], } -- cgit v1.2.3 From 3de342c5fb3d1a0a57544259ee170a0a112813ba Mon Sep 17 00:00:00 2001 From: Weilin Xu Date: Tue, 13 Feb 2024 13:38:40 -0800 Subject: Migrate car radio lib to new test owner model Bug: 324978397 Test: build okay Change-Id: I2138eb0669d3a02e5feec4299419e832f36de600 --- car-broadcastradio-support/tests/Android.bp | 1 + 1 file changed, 1 insertion(+) (limited to 'car-broadcastradio-support/tests/Android.bp') diff --git a/car-broadcastradio-support/tests/Android.bp b/car-broadcastradio-support/tests/Android.bp index 14fa2ba..b6ee8aa 100644 --- a/car-broadcastradio-support/tests/Android.bp +++ b/car-broadcastradio-support/tests/Android.bp @@ -15,6 +15,7 @@ // package { + default_team: "trendy_team_aaos_framework", default_applicable_licenses: ["Android-Apache-2.0"], } -- cgit v1.2.3