• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2022 Google LLC
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.
14load("@build_bazel_rules_android//android:rules.bzl", "android_local_test")
15
16package(
17    default_applicable_licenses = ["//:license"],
18    default_visibility = ["//:__subpackages__"],
19    licenses = ["notice"],
20)
21
22android_local_test(
23    name = "MigrationProxyPopulatorTest",
24    srcs = ["MigrationProxyPopulatorTest.java"],
25    manifest_values = {
26        "minSdkVersion": "16",
27        "targetSdkVersion": "27",
28    },
29    deps = [
30        "//java/com/google/android/libraries/mobiledatadownload",
31        "//java/com/google/android/libraries/mobiledatadownload/populator:MigrationProxyPopulator",
32        "@com_google_guava_guava",
33        "@mockito",
34        "@truth",
35    ],
36)
37
38android_local_test(
39    name = "LocationProviderImplTest",
40    srcs = ["LocationProviderImplTest.java"],
41    manifest_values = {
42        "minSdkVersion": "16",
43        "targetSdkVersion": "27",
44    },
45    deps = [
46        "//java/com/google/android/libraries/mobiledatadownload/populator:LocationProvider",
47        "@mockito",
48        "@truth",
49    ],
50)
51
52android_local_test(
53    name = "ManifestConfigFlagPopulatorTest",
54    srcs = ["ManifestConfigFlagPopulatorTest.java"],
55    manifest_values = {
56        "minSdkVersion": "16",
57        "targetSdkVersion": "27",
58    },
59    deps = [
60        "//java/com/google/android/libraries/mobiledatadownload",
61        "//java/com/google/android/libraries/mobiledatadownload/populator:ManifestConfigFlagPopulator",
62        "//java/com/google/android/libraries/mobiledatadownload/populator:ManifestConfigHelper",
63        "//java/com/google/android/libraries/mobiledatadownload/populator:ManifestConfigOverrider",
64        "//proto:download_config_java_proto_lite",
65        "@com_google_guava_guava",
66        "@mockito",
67        "@truth",
68    ],
69)
70
71android_local_test(
72    name = "LocaleOverriderTest",
73    srcs = ["LocaleOverriderTest.java"],
74    manifest_values = {
75        "minSdkVersion": "16",
76        "targetSdkVersion": "27",
77    },
78    deps = [
79        "//java/com/google/android/libraries/mobiledatadownload/populator:LocaleOverrider",
80        "//proto:download_config_java_proto_lite",
81        "@com_google_guava_guava",
82        "@truth",
83    ],
84)
85
86android_local_test(
87    name = "MigrationProxyLocaleOverriderTest",
88    srcs = ["MigrationProxyLocaleOverriderTest.java"],
89    manifest_values = {
90        "minSdkVersion": "16",
91        "targetSdkVersion": "27",
92    },
93    deps = [
94        "//java/com/google/android/libraries/mobiledatadownload:Flags",
95        "//java/com/google/android/libraries/mobiledatadownload/populator:LocaleOverrider",
96        "//java/com/google/android/libraries/mobiledatadownload/populator:MigrationProxyLocaleOverrider",
97        "//proto:download_config_java_proto_lite",
98        "@truth",
99    ],
100)
101