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("@rules_java//java:defs.bzl", "java_library") 18load("//java/dagger/testing/compile:macros.bzl", "compiler_test") 19 20package(default_visibility = ["//:src"]) 21 22compiler_test( 23 name = "TestInstallInTest", 24 srcs = ["TestInstallInTest.java"], 25 compiler_deps = [ 26 ":InstallInModule", 27 "//:dagger_with_compiler", 28 "//java/dagger/hilt:install_in", 29 "//java/dagger/hilt:entry_point", 30 "//java/dagger/hilt/components", 31 "//java/dagger/hilt/android/internal/modules", 32 "//java/dagger/hilt/testing:test_install_in", 33 "//java/dagger/hilt/android/testing:hilt_android_test", 34 "@androidsdk//:platforms/android-34/android.jar", 35 ], 36 deps = [ 37 "//java/dagger/hilt/android/testing/compile", 38 "//java/dagger/internal/codegen/xprocessing:xprocessing-testing", 39 "//third_party/java/compile_testing", 40 "//third_party/java/junit", 41 ], 42) 43 44compiler_test( 45 name = "EarlyEntryPointProcessorTest", 46 srcs = ["EarlyEntryPointProcessorTest.java"], 47 compiler_deps = [ 48 "//java/dagger/hilt:entry_point", 49 "//java/dagger/hilt:install_in", 50 "//java/dagger/hilt/android:early_entry_point", 51 "//java/dagger/hilt/android/components", 52 "//java/dagger/hilt/android/testing:hilt_android_test", 53 "@androidsdk//:platforms/android-34/android.jar", 54 ], 55 deps = [ 56 "//java/dagger/hilt/android/testing/compile", 57 "//java/dagger/internal/codegen/xprocessing:xprocessing-testing", 58 "//third_party/java/junit", 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