Android.bp 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. // Copyright (C) 2021 The Android Open Source Project
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. //
  15. // Launcher Robolectric test target.
  16. //
  17. // "robolectric_android-all-stub", not needed, we write our own stubs
  18. package {
  19. // See: http://go/android-license-faq
  20. // A large-scale-change added 'default_applicable_licenses' to import
  21. // all of the 'license_kinds' from "packages_apps_Launcher3_license"
  22. // to get the below license kinds:
  23. // SPDX-license-identifier-Apache-2.0
  24. default_applicable_licenses: ["packages_apps_Launcher3_license"],
  25. }
  26. filegroup {
  27. name: "launcher3-robolectric-resources",
  28. path: "resources",
  29. srcs: ["resources/*"],
  30. }
  31. filegroup {
  32. name: "launcher3-robolectric-src",
  33. srcs: ["src/**/*.java"],
  34. }
  35. android_robolectric_test {
  36. name: "LauncherRoboTests",
  37. srcs: [
  38. ":launcher3-robolectric-src",
  39. ":launcher3-test-src-common",
  40. ],
  41. java_resources: [":launcher3-robolectric-resources"],
  42. static_libs: [
  43. "truth-prebuilt",
  44. "androidx.test.espresso.contrib",
  45. "androidx.test.espresso.core",
  46. "androidx.test.espresso.intents",
  47. "androidx.test.ext.junit",
  48. "androidx.test.runner",
  49. "androidx.test.rules",
  50. "mockito-robolectric-prebuilt",
  51. "SystemUISharedLib",
  52. ],
  53. robolectric_prebuilt_version: "4.5.1",
  54. instrumentation_for: "Launcher3",
  55. test_options: {
  56. timeout: 36000,
  57. },
  58. }