1# Copyright (C) 2020 The Dagger Authors.
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# Description:
15#   Tests for internal code for implementing Hilt processors.
16
17load("//java/dagger/testing/compile:macros.bzl", "compiler_test")
18
19package(default_visibility = ["//:src"])
20
21compiler_test(
22    name = "ActivityGeneratorTest",
23    srcs = ["ActivityGeneratorTest.java"],
24    compiler_deps = [
25        "//java/dagger/hilt/android:android_entry_point",
26        "@androidsdk//:platforms/android-30/android.jar",
27    ],
28    deps = [
29        "@google_bazel_common//third_party/java/compile_testing",
30        "@google_bazel_common//third_party/java/junit",
31        "@google_bazel_common//third_party/java/truth",
32        "//javatests/dagger/hilt/android/processor:android_compilers",
33    ],
34)
35
36compiler_test(
37    name = "AndroidEntryPointProcessorTest",
38    srcs = ["AndroidEntryPointProcessorTest.java"],
39    compiler_deps = [
40        "//java/dagger/hilt/android:hilt_android_app",
41        "//java/dagger/hilt/android:android_entry_point",
42        "@androidsdk//:platforms/android-30/android.jar",
43    ],
44    deps = [
45        "@google_bazel_common//third_party/java/compile_testing",
46        "@google_bazel_common//third_party/java/junit",
47        "@google_bazel_common//third_party/java/truth",
48        "//javatests/dagger/hilt/android/processor:android_compilers",
49    ],
50)
51
52compiler_test(
53    name = "KotlinAndroidEntryPointProcessorTest",
54    srcs = ["KotlinAndroidEntryPointProcessorTest.java"],
55    compiler_deps = [
56        "//java/dagger/hilt/android:hilt_android_app",
57        "//java/dagger/hilt/android:android_entry_point",
58        "@androidsdk//:platforms/android-30/android.jar",
59    ],
60    deps = [
61        "//java/dagger/internal/guava:collect",
62        "@google_bazel_common//third_party/java/junit",
63        "@google_bazel_common//third_party/java/truth",
64        "//javatests/dagger/hilt/android/processor:android_compilers",
65        "@maven//:com_github_tschuchortdev_kotlin_compile_testing",
66    ],
67)
68