Sihua Ma
de5ef62967
Migrate GeneratedPreviewTest to multivalent
...
Test: atest NexusLauncherRoboTests
Test: SysUI studio
Fix: 325088369
Flag: TEST_ONLY
Change-Id: I2c88a357c8ac5fb0171a70e850be25e8fb11de33
2024-06-10 16:49:47 +00:00
Treehugger Robot
236bb12736
Merge "Move SettingsActivityTest to multivalent" into main
2024-05-30 04:26:56 +00:00
Kevin Liu
a39a4695af
Merge "Add strict_mode: false" into main
2024-05-28 20:09:05 +00:00
Sihua Ma
350c29a5f6
Move SettingsActivityTest to multivalent
...
Test: atest NexusLauncherRoboTests
Test: SysUI studio
Flag: None Test migration
Bug: 297950111
Fix: 325089136
Change-Id: I85a2ed62453088941cb12fee9067acb076819dc5
2024-05-28 18:05:14 +00:00
Uwais Ashraf
784b4f28b0
Fix some compile errors occurring as a result of robo enablement
...
Fix: 297950111
Test: :NexusLauncher.Robo:testGoogleWithQuickstepDebugUnitTest
Test: atest NexusLauncherRoboTests
Flag: NA
Change-Id: Ic9b09fff630d274558d09b7031d12ec28f10fbc7
2024-05-21 18:56:52 +00:00
Uwais Ashraf
029de6d10a
Fix mockito deviceless deps
...
Bug: 334825222
Test: TasksRepositoryTest
Flag: EXEMPT build files
Change-Id: Ia682e364d56b23a2b3c3a1ef6d83044d110e14d6
2024-05-21 11:59:05 +00:00
Kevin Liu
a75ea0b8cb
Add strict_mode: false
...
As strict mode is in place, the default strict_mode is now set to true. We are encourage teams to write tests in strict_mode to make tests Bivalent (able to run on device and devicelessly)
Flag: NONE
Test: atest Launcher3RoboTests
Bug: 334089788
Change-Id: I4b4f2ef9a21926eef63fcada81355b928bbe2870
2024-05-08 01:44:46 +00:00
Sihua Ma
1593bb4af2
Move cell layout tests to deviceless tests
...
Excluding Tapl tests
Also adding Launcher3 test assets to Launcher3TestResources
Bug: 297950111
Flag: None
Test: atest Launcher3RoboTests
Test: atest NexusLauncherRoboTests
Test: SysUI studio
Change-Id: I101fc7229252016ec7e5015ed5f6a5b4dbba894d
2024-05-08 00:52:43 +00:00
Sunny Goyal
0f4bc92653
Creating a custom runner for multivalent tests with Launcher specific features
...
Bug: 338128923
Test: Verified by modifying a test
Flag: None
Change-Id: I1f04e28847ff9c0f7af3c0d952038ad24d03c17e
2024-05-06 12:10:21 -07:00
Uwais Ashraf
7a0150d02e
Use script to auto-enable all tests that are currently working
...
Fix: 325088906
Test: presubmits passing, gradle robo run passing locally
Flag: NA
Change-Id: I481bfe9caeb8cc18b3e01ec8b7a58fb0eb36fdaa
2024-04-08 20:59:23 +00:00
Uwais Ashraf
6e9927e61f
Add test and android lifecycle coroutine libs
...
Fix: 330128421
Bug: 330127493
Test: Presubmit build passes
Flag: NA
Change-Id: I87cf3b5faaee6bcdb99c5afbe1999a11d031d98e
2024-03-27 10:23:36 +00:00
Sunny Goyal
77954bae4e
Cleaning up some build configurations
...
> Removing Launcher3Go-without-quickstep
> Removing src_ui_overrides to src_no_quickstep
> Removing unnecessary code swpa for GO builds
Bug: 330920490
Flag: None
Test: Presubmit, everything builds
Change-Id: I5746dbc7c5a37c1d99d78b55bf2a6adce1a711c9
2024-03-26 17:16:52 +00:00
Sihua Ma
444b8e6d0f
Revert^2 "Include AndroidX test rules in Robolectric tests"
...
c041b5c625
Change-Id: I0b93613ff8544cbe2a0a108da53bc085a532b074
2024-03-21 21:50:20 +00:00
Priyanka Advani
c041b5c625
Revert "Include AndroidX test rules in Robolectric tests"
...
Revert submission 26605558-robolectric-enable-androidx-rules
Reason for revert: Droid-monitor created revert due to build breakages in b/330752689.
Reverted changes: /q/submissionid:26605558-robolectric-enable-androidx-rules
Change-Id: I7737d713be09faff78327df80232d084e836b500
2024-03-21 19:07:50 +00:00
Sihua Ma
f62002bb7d
Merge "Include AndroidX test rules in Robolectric tests" into main
2024-03-21 17:06:45 +00:00
Sunny Goyal
5ca50490a3
Making some classess accessible in multivalent tests
...
Bug: 297950111
Flag: None
Test: Presubmit
Change-Id: I2e4b18fc279cb96b3f68d64f95703c11bb885b2a
2024-03-20 13:30:40 -07:00
Sihua Ma
6da8d07f83
Include AndroidX test rules in Robolectric tests
...
Test: atest Launcher3RoboTests
Bug: 297950111
Flag: N/A
Change-Id: I6f3c9ddeac9cb676644b3a236a00575c4faaa921
2024-03-19 20:26:40 +00:00
Kevin Lim
a14145aad4
[Deviceless] Create launcher-multivalent-src for referring from
...
NexusLauncherRoboTests
Bug: b/297950111
Bug: b/322393087
Flag: NA
Test: atest Launcher3RoboTests
Test: atest NexusLauncherRoboTests
Change-Id: I8ac58862d53f8574a6678502fcf9488f812eaa1f
2024-03-19 20:11:37 +00:00
Uwais Ashraf
f7c9e2c112
Adjust mockito dependencies to make them work for Robolectric
...
Fix: 327257788
Flag: NA
Test: Presubmit passing
Change-Id: I1eee4fe0f79b2d22fc6bc080c8cc88c19086c7d5
2024-03-11 12:08:02 +00:00
Uwais Ashraf
9c2f5a4c62
Remove classes related to E2E testing from deviceless test classpath
...
Fix: 327187136
Flag: NA
Test: gradlew :NexusLauncher:testGoogleWithQuickstepDebugUnitTest
Test: atest Launcher3RoboTests
Test: presubmits passing
Change-Id: I4f05524bdc55d8473f3b5115cc239eb8cc48a856
2024-03-04 13:45:32 +00:00
Willie Koomson
fda1b4b0d0
Merge "Use generated RemoteViews preview for widget picker if available" into main
2024-02-13 21:18:45 +00:00
Willie Koomson
fedc18e9a8
Use generated RemoteViews preview for widget picker if available
...
WidgetCell will use the generated RemoteViews preview to display
previews in the widget picker. It will fallback to current preview
methods if not available.
Introduces WidgetManagerHelper.loadGeneratedPreviews as a utility
function. WidgetManagerHelper is passed into the constructor of
WidgetItem to avoid calling
context.getSystemService(AppWidgetManager.class) for each widget.
Bug: 308041327
Test: atest Launcher3Tests:GeneratedPreviewTest
Flag: ACONFIG com.android.launcher3.enable_generated_previews DEVELOPMENT
Change-Id: I37429057cda83a5321884ace2537038e050b9a58
2024-02-13 18:49:44 +00:00
Sebastian Franco
2d8be10856
Adding unit test to makeSpaceForHotseatMigration
...
Flag: NA
Bug: 318417510
Test: atest HotseatReorderUnitTest
Change-Id: If4fe388d00138b2d43693df0cf79abb16f354291
2024-02-01 17:08:52 +00:00
Colin Cross
f156b6bc7c
Set use_resource_processor: false
...
These modules fail to compile when use_resource_processor is enabled
by default, disable them explicitly for now.
Bug: 319712088
Test: m javac-check
Flag: NA
Change-Id: I0f7ee108aab802ee1882f8017ea4b47346e38683
2024-01-24 15:52:06 -08:00
Uwais Ashraf
77b97c0729
Replace existing Robolectric test task with functioning one.
...
This CL does the following:
- Creates a dir for multivalentTests
- Creates symlinks for the dir to keep Android Studio happy
- Moves many files to the multivalentTests dir
- Adjusts gradle and soong build files to use the new dir as part of
their source sets.
Test: ./gradlew :NexusLauncher:testGoogleWithQuickstepDebugUnitTest
Test: atest Launcher3RoboTests
Fix: 316553886
Bug: 316553889
Flag: NA
Change-Id: Iae28fd0c0191b3ecf9bd2950800875950cca2622
2024-01-19 21:39:23 +00:00
Uwais Ashraf
861f2fdc81
Create Launcher3RoboTests and enable Robolectric on small set of tests
...
Test: atest Launcher3RoboTests
Bug: 316551909
Flag: NA
Change-Id: Ib1bbaf49e3e608f8c67005c129e090711df1e99c
2023-12-21 15:06:12 +00:00
Uwais Ashraf
e0a4feb664
Rename Tapl tests that do not match *Test.(kt|java) for easier groups
...
Test: presubmits passing
Bug: 316551909
Flag: NA
Change-Id: Ib2070d7610927777376acf0ddefcbc90e582e6f6
2023-12-19 11:54:10 +00:00
Sebastian Franco
d30100eaa9
Move classes inside of CellLayoutBoard to their own file
...
Previous step for adding unit testing for MultipageCellLayout.
Flag: LEGACY FOLDABLE_SINGLE_PAGE DISABLED
Bug: 270395274
Test: ReorderAlgorithmUnitTest
Change-Id: Ia5ca0b10481d7a21883594434b3406fb3a5ccf0b
2023-11-20 17:58:24 -06:00
Uwais Ashraf
aa7fa886d6
Add margins to top and bottom when grid only overview enabled
...
Fix: 299100244
Test: OverviewImageTest and dump tests
Flag: ACONFIG com.android.launcher3.enable_grid_only_overview TEAMFOOD
Change-Id: I22ebced5bf1e27974036d6e2ef72d2b8d63df824
2023-10-24 16:15:39 +00:00
Jordan Silva
4d95f79db5
Merge "Create a new test suite for screenshot tests" into main
2023-10-23 22:46:11 +00:00
Jordan Silva
e5fb55cf88
Create a new test suite for screenshot tests
...
Adding a new test suite NexusLauncherScreenshotTests to run the screenshot tests separate from the Launcher tests.
Bug: 303224992
Flag: N/A - tests
Test: atest NexusLauncherScreenshotTests
Change-Id: Ie4c328b829402f23fc22876481d66fc414aede3c
2023-10-23 15:22:16 +00:00
Pat Manning
954e3b8dee
Move overview tests to quickstep package.
...
Fix: 305394234
Test: TaplOverviewIconAppChipMenuTest, TaplOverviewIconTest
Flag: ACONFIG com.android.launcher3.enable_overview_icon_menu DEVELOPMENT
Change-Id: Ib39e2ec7f53de0c4b557558776c7ad428e4cab22
2023-10-23 16:15:33 +01:00
Pat Manning
24cec69361
Revert "Revert "Combine icon app tests to allow overriding flag ..."
...
Revert submission 25032768-revert-25007147-tapl-flag-SBORVHYDTI
Reason for revert: Resubmitting for b/304470271
Reverted changes: /q/submissionid:25032768-revert-25007147-tapl-flag-SBORVHYDTI
Change-Id: Ib0bd13a5c2a366160b185a2c6409c607ed7525a1
2023-10-17 15:56:48 +00:00
Sebastián Franco
87d482cd3e
Merge "Unifying constant app names used in Tests" into main
2023-10-13 18:28:38 +00:00
Tyler Freeman
22781d97d9
Merge "Revert "Combine icon app tests to allow overriding flag for new ..."" into main
2023-10-12 20:06:56 +00:00
Tyler Freeman
1468467706
Revert "Combine icon app tests to allow overriding flag for new ..."
...
Revert submission 25007147-tapl-flag
Reason for revert: Breaks build: https://b.corp.google.com/issues/305033049
Reverted changes: /q/submissionid:25007147-tapl-flag
Change-Id: I99b5883e64ae25476394a4207c5d6a4d22fc27dc
2023-10-12 18:04:05 +00:00
Pat Manning
654c05837e
Merge "Combine icon app tests to allow overriding flag for new icon app chip menu testing as well." into main
2023-10-12 15:59:17 +00:00
Pat Manning
236e738907
Combine icon app tests to allow overriding flag for new icon app chip menu testing as well.
...
Platinum exlude cl update: cl/572225659
Test: TaplOverviewAppIconMenuTest
Test: TaplAppIconAppChipMenuTest
Bug: 303329286
Bug: 303266562
Fix: 304470271
Change-Id: I4ca163401d6a42961e8955e06c164af0254b1231
2023-10-12 14:53:08 +01:00
Jeremy Sim
271fc9540c
Merge "Set up to use aconfig flags from WM Shell" into main
2023-10-11 19:21:00 +00:00
Krzysztof Kosiński
c1d05a7101
Merge "Clean up obsolete aliases for Truth." into main am: a4bc505d01 am: 6247399c9b am: f56d690e22 am: 42c39649a7 am: b085f9e819
...
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/2778094
Change-Id: Id239979be76a11ce08d564c13f174aa5d02deb3f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-10-11 00:16:49 +00:00
Jeremy Sim
9e44e378bb
Set up to use aconfig flags from WM Shell
...
This CL allows Launcher and Launcher test files to use aconfig flags from WM Shell.
Bug: 304597782
Test: N/A
Change-Id: I291b744207ec07d5955814879987c15f4aa13140
2023-10-10 15:16:53 -07:00
Krzysztof Kosiński
b085f9e819
Merge "Clean up obsolete aliases for Truth." into main am: a4bc505d01 am: 6247399c9b am: f56d690e22 am: 42c39649a7
...
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/2778094
Change-Id: Idc45788d21959e1569e0fd33686536a9675442ae
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-10-10 21:50:07 +00:00
Krzysztof Kosiński
6e3b7a6943
Clean up obsolete aliases for Truth.
...
Bug: 255714762
Test: presubmit
Change-Id: Idd56488c129096c520e4e69f175778f10156a569
2023-10-10 06:50:28 +00:00
Sebastian Franco
02a4fb41c7
Unifying constant app names used in Tests
...
Bug: 298234173
Test: No-op changes, all test should pass
Change-Id: I3cd4854b150d827393bff6eada7aa9a9201dadaa
2023-10-09 14:25:49 -07:00
Brian Isganitis
96224ef755
Merge "Migrate Kotlin tests to use mockito-kotlin2." into main
2023-10-06 17:54:56 +00:00
Sebastian Franco
547ddd4830
Moving tests form TaplTestsLauncher3 to TaplTestsAllAppsIconsWorking
...
Removing testGetAppIconName since that behaviour is already tested.
I'm also using this change to remove the TISBinder rule since it's not
needed.
Bug: 302869930
Test: atest TaplTestsAllAppsIconsWorking
Change-Id: Ie6b4f801254ca69b2485fe574914a73f947fc434
2023-10-04 16:43:19 -07:00
Sebastian Franco
fd96b78d14
Moving testWidgets from TaplTestsLauncher3 to TaplWorkspaceTest
...
Also, I'm taking advange of this change to update the name of
OopTaplOpenCloseAllApps to follow the standard TaplOpenCloseAllApps
and I'm also moving testPressBack to TaplOpenCloseAllApps since is
similar to the other methods in that class.
Bug: 298234173
Test: atest TaplWorkspaceTest
Change-Id: Ie933828baedf48b45e55f20853e238ecc6a594bd
2023-10-04 10:21:43 -07:00
Brian Isganitis
06139e079c
Migrate Kotlin tests to use mockito-kotlin2.
...
Test: atest
Bug: 300509464
Flag: No
Change-Id: I5e0d0f1f29d51cdbfacd51f7229afddf8bd66f7e
2023-10-03 16:04:19 -04:00
Sebastián Franco
bad922f50f
Merge "Moving testWidgets from TaplTestsLauncher3 to it's own test TaplWidgetPickerTest" into main
2023-10-03 03:05:15 +00:00
Vadim Tryshev
b57e25127e
Verifying that workspace looks correct at the end of the test.
...
I hope that this will lock bugs like b/298114205 in the test that created the bad condition, not the next one.
Bug: 298114205
Test: presubmit
Flag: N/A
Change-Id: If9b48fb5159fc35948607a99f87199d5a32e64d6
2023-09-29 18:31:04 -07:00