From 8ce4d4290029b8f94a35ad4ed2459dd4d980b36b Mon Sep 17 00:00:00 2001 From: Andrey Epin Date: Wed, 28 Sep 2022 14:37:37 -0700 Subject: Move shortcut processing logic into separate components. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As part of the ongoing architectural change, move shortcut processing logic from ChooserListAdapter and ChooserActivity into spaparte components with no functional changes; add unit tests. The new ShrtcutToChooserTargetConverter class now contains previous ChooserActivity’s convertToChooserTarget method; two related test cases were moved from UnboundedChooserActivityTest class into the new component’s test class. The new ShortcutSelectionLogic class now contains previous ChooserListAdapter’s addServiceResults and insertServiceTarget methods; new unit tests added. Test: atest IntentResolverUnitTests:ShortcutSelectionLogicTest Test: atest IntentResolverUnitTests:ShortcutToChooserTargetConverterTest Test: manual test Fix: 249166394 Change-Id: I49baf7d4a435b1f270554fdf6e004875117a01d8 --- java/tests/Android.bp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'java/tests/Android.bp') diff --git a/java/tests/Android.bp b/java/tests/Android.bp index fdabc4e0..92974aba 100644 --- a/java/tests/Android.bp +++ b/java/tests/Android.bp @@ -7,7 +7,7 @@ android_test { name: "IntentResolverUnitTests", // Include all test java files. - srcs: ["src/**/*.java"], + srcs: ["src/**/*.java", "src/**/*.kt"], libs: [ "android.test.runner", -- cgit v1.2.3-59-g8ed1b