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 = "TestInstallInTest", 23 srcs = ["TestInstallInTest.java"], 24 compiler_deps = [ 25 ":InstallInModule", 26 "//:dagger_with_compiler", 27 "//java/dagger/hilt:install_in", 28 "//java/dagger/hilt:entry_point", 29 "//java/dagger/hilt/components", 30 "//java/dagger/hilt/android/internal/modules", 31 "//java/dagger/hilt/testing:test_install_in", 32 "//java/dagger/hilt/android/testing:hilt_android_test", 33 "@androidsdk//:platforms/android-30/android.jar", 34 ], 35 deps = [ 36 "@google_bazel_common//third_party/java/compile_testing", 37 "@google_bazel_common//third_party/java/junit", 38 "@google_bazel_common//third_party/java/truth", 39 "//javatests/dagger/hilt/android/processor:android_compilers", 40 ], 41) 42 43compiler_test( 44 name = "EarlyEntryPointProcessorTest", 45 srcs = ["EarlyEntryPointProcessorTest.java"], 46 compiler_deps = [ 47 "//java/dagger/hilt:entry_point", 48 "//java/dagger/hilt:install_in", 49 "//java/dagger/hilt/android:early_entry_point", 50 "//java/dagger/hilt/android/components", 51 "//java/dagger/hilt/android/testing:hilt_android_test", 52 "@androidsdk//:platforms/android-30/android.jar", 53 ], 54 deps = [ 55 "@google_bazel_common//third_party/java/compile_testing", 56 "@google_bazel_common//third_party/java/junit", 57 "@google_bazel_common//third_party/java/truth", 58 "//javatests/dagger/hilt/android/processor:android_compilers", 59 ], 60) 61 62java_library( 63 name = "InstallInModule", 64 srcs = ["InstallInModule.java"], 65 deps = [ 66 "//:dagger_with_compiler", 67 "//java/dagger/hilt:install_in", 68 "//java/dagger/hilt/components", 69 ], 70) 71