/external/dagger2/javatests/dagger/internal/codegen/ |
D | MembersInjectionValidationTest.java | 20 import static dagger.internal.codegen.Compilers.daggerCompiler; 50 Compilation compilation = daggerCompiler().compile(injectsUnboundedType); in membersInjectDependsOnUnboundedType() 73 Compilation compilation = daggerCompiler().compile(component); in membersInjectPrimitive() 94 Compilation compilation = daggerCompiler().compile(component); in membersInjectArray() 116 Compilation compilation = daggerCompiler().compile(component); in membersInjectorOfArray() 138 Compilation compilation = daggerCompiler().compile(component); in membersInjectRawType() 158 Compilation compilation = daggerCompiler().compile(component); in qualifiedMembersInjector() 181 Compilation compilation = daggerCompiler().compile(component); in qualifiedMembersInjectionMethod() 204 Compilation compilation = daggerCompiler().compile(component); in qualifiedMembersInjectionMethodParameter() 235 Compilation compilation = daggerCompiler().compile(injected, component); in staticFieldInjection() [all …]
|
D | MapMultibindingValidationTest.java | 21 import static dagger.internal.codegen.Compilers.daggerCompiler; 59 daggerCompiler() in duplicateMapKeys_UnwrappedMapKey() 91 daggerCompiler() in duplicateMapKeys_UnwrappedMapKey() 106 daggerCompiler() in duplicateMapKeys_UnwrappedMapKey() 121 daggerCompiler() in duplicateMapKeys_UnwrappedMapKey() 134 compilation = daggerCompiler().compile(module, component("Map<String, Object> objects();")); in duplicateMapKeys_UnwrappedMapKey() 143 daggerCompiler() in duplicateMapKeys_UnwrappedMapKey() 153 daggerCompiler() in duplicateMapKeys_UnwrappedMapKey() 197 Compilation compilation = daggerCompiler().compile(component, module); in duplicateMapKeys_WrappedMapKey() 248 daggerCompiler() in inconsistentMapKeyAnnotations() [all …]
|
D | ComponentValidationTest.java | 21 import static dagger.internal.codegen.Compilers.daggerCompiler; 42 Compilation compilation = daggerCompiler().compile(componentFile); in componentOnConcreteClass() 57 Compilation compilation = daggerCompiler().compile(componentFile); in componentOnEnum() 70 Compilation compilation = daggerCompiler().compile(componentFile); in componentOnAnnotation() 83 Compilation compilation = daggerCompiler().compile(componentFile); in nonModuleModule() 113 Compilation compilation = daggerCompiler().compile(module, component); in componentWithInvalidModule() 136 Compilation compilation = daggerCompiler().compile(testComponent); in attemptToInjectWildcardGenerics() 153 Compilation compilation = daggerCompiler().compile(testComponent); in invalidComponentDependencies() 169 Compilation compilation = daggerCompiler().compile(testComponent); in invalidComponentModules() 197 Compilation compilation = daggerCompiler().compile(testModule, testComponent); in moduleInDependencies() [all …]
|
D | MissingBindingValidationTest.java | 20 import static dagger.internal.codegen.Compilers.daggerCompiler; 57 Compilation compilation = daggerCompiler().compile(component, injectable, nonInjectable); in dependOnInterface() 83 Compilation compilation = daggerCompiler().compile(component); in entryPointDependsOnInterface() 113 Compilation compilation = daggerCompiler().compile(component); in entryPointDependsOnQualifiedInterface() 144 Compilation compilation = daggerCompiler().compile(component); in constructorInjectionWithoutAnnotation() 179 Compilation compilation = daggerCompiler().compile(component); in membersInjectWithoutProvision() 216 Compilation compilation = daggerCompiler().compile(self, component); in missingBindingWithSameKeyAsMembersInjectionMethod() 248 Compilation compilation = daggerCompiler().compile(component, foo); in genericInjectClassWithWildcardDependencies() 308 Compilation compilation = daggerCompiler().compile(component); in longChainOfDependencies() 363 daggerCompiler().compile(component, module, interfaceFile, implementationFile); in bindsMethodAppearsInTrace() [all …]
|
D | ProductionGraphValidationTest.java | 21 import static dagger.internal.codegen.Compilers.daggerCompiler; 77 Compilation compilation = daggerCompiler().compile(EXECUTOR_MODULE, module, component); in componentWithUnprovidedInput() 103 Compilation compilation = daggerCompiler().compile(EXECUTOR_MODULE, component); in componentProductionWithNoDependencyChain() 149 Compilation compilation = daggerCompiler().compile(EXECUTOR_MODULE, component); in provisionDependsOnProduction() 193 Compilation compilation = daggerCompiler().compile(EXECUTOR_MODULE, component); in provisionEntryPointDependsOnProduction() 252 Compilation compilation = daggerCompiler().compile(EXECUTOR_MODULE, component); in providingMultibindingWithProductions() 302 Compilation compilation = daggerCompiler().compile(EXECUTOR_MODULE, component); in monitoringDependsOnUnboundType() 356 Compilation compilation = daggerCompiler().compile(EXECUTOR_MODULE, component); in monitoringDependsOnProduction() 403 Compilation compilation = daggerCompiler().compile(EXECUTOR_MODULE, component, module); in cycleNotBrokenByMap() 448 Compilation compilation = daggerCompiler().compile(EXECUTOR_MODULE, component, module); in cycleNotBrokenByProducerMap() [all …]
|
D | InjectConstructorFactoryGeneratorTest.java | 24 import static dagger.internal.codegen.Compilers.daggerCompiler; 77 Compilation compilation = daggerCompiler().compile(file); in injectOnPrivateConstructor() 96 Compilation compilation = daggerCompiler().compile(file); in injectConstructorOnInnerClass() 115 Compilation compilation = daggerCompiler().compile(file); in injectConstructorOnAbstractClass() 551 Compilation compilation = daggerCompiler().compile(file); in multipleInjectConstructors() 572 Compilation compilation = daggerCompiler().compile(file, QUALIFIER_A, QUALIFIER_B); in multipleQualifiersOnInjectConstructorParameter() 590 Compilation compilation = daggerCompiler().compile(file, SCOPE_A, SCOPE_B); in injectConstructorOnClassWithMultipleScopes() 616 Compilation compilation = daggerCompiler().compile(file, QUALIFIER_A, QUALIFIER_B); in injectConstructorWithQualifier() 637 Compilation compilation = daggerCompiler().compile(file); in injectConstructorWithCheckedExceptionsError() 674 Compilation compilation = daggerCompiler().compile(file); in privateInjectClassError() [all …]
|
D | DependencyCycleValidationTest.java | 21 import static dagger.internal.codegen.Compilers.daggerCompiler; 72 Compilation compilation = daggerCompiler().compile(SIMPLE_CYCLIC_DEPENDENCY); in cyclicDependency() 168 Compilation compilation = daggerCompiler().compile(component); in cyclicDependencyNotIncludingEntryPoint() 231 Compilation compilation = daggerCompiler().compile(component); in cyclicDependencyNotBrokenByMapBinding() 292 Compilation compilation = daggerCompiler().compile(component); in cyclicDependencyWithSetBinding() 348 Compilation compilation = daggerCompiler().compile(component); in falsePositiveCyclicDependencyIndirectionDetected() 432 Compilation compilation = daggerCompiler().compile(parent, child, grandchild, cycleModule); in cyclicDependencyInSubcomponents() 514 Compilation compilation = daggerCompiler().compile(parent, child, grandchild, cycleModule); in cyclicDependencyInSubcomponentsWithChildren() 565 Compilation compilation = daggerCompiler().compile(qualifier, module, component); in circularBindsMethods() 607 Compilation compilation = daggerCompiler().compile(module, component); in selfReferentialBinds() [all …]
|
D | ModuleValidationTest.java | 20 import static dagger.internal.codegen.Compilers.daggerCompiler; 87 Compilation compilation = daggerCompiler().compile(module, notASubcomponent); in moduleSubcomponents_notASubcomponent() 121 Compilation compilation = daggerCompiler().compile(module, subcomponent); in moduleSubcomponents_listsSubcomponentBuilder() 155 Compilation compilation = daggerCompiler().compile(module, subcomponent); in moduleSubcomponents_listsSubcomponentFactory() 189 Compilation compilation = daggerCompiler().compile(module, subcomponent); in moduleSubcomponents_listsProductionSubcomponentBuilder() 223 Compilation compilation = daggerCompiler().compile(module, subcomponent); in moduleSubcomponents_listsProductionSubcomponentFactory() 252 Compilation compilation = daggerCompiler().compile(module, subcomponent); in moduleSubcomponents_noSubcomponentCreator() 284 Compilation compilation = daggerCompiler().compile(module, subcomponent); in moduleSubcomponents_noProductionSubcomponentCreator() 307 Compilation compilation = daggerCompiler().compile(module); in moduleSubcomponentsAreTypes() 345 Compilation compilation = daggerCompiler().compile(badModule, module); in invalidIncludedModule() [all …]
|
D | BindsInstanceValidationTest.java | 20 import static dagger.internal.codegen.Compilers.daggerCompiler; 45 Compilation compilation = daggerCompiler().compile(testModule); in bindsInstanceInModule() 66 Compilation compilation = daggerCompiler().compile(testComponent); in bindsInstanceInComponent() 87 Compilation compilation = daggerCompiler().compile(notAbstract); in bindsInstanceNotAbstract() 107 Compilation compilation = daggerCompiler().compile(notAbstract); in bindsInstanceNoParameters() 128 Compilation compilation = daggerCompiler().compile(notAbstract); in bindsInstanceManyParameters() 152 Compilation compilation = daggerCompiler().compile(bindsFrameworkType); in bindsInstanceFrameworkType()
|
D | ScopingValidationTest.java | 21 import static dagger.internal.codegen.Compilers.daggerCompiler; 75 Compilation compilation = daggerCompiler().compile(componentFile, typeFile, moduleFile); in componentWithoutScopeIncludesScopedBindings_Fail() 156 daggerCompiler().compile(childScope, foo, fooImpl, parentModule, parent, child); in bindsWithChildScope_inParentModule_notAllowed() 230 daggerCompiler() in componentWithScopeIncludesIncompatiblyScopedBindings_Fail() 458 daggerCompiler() in componentWithScopeCanDependOnMultipleScopedComponents() 566 daggerCompiler() in componentWithScopeCanDependOnMultipleScopedComponentsEvenDoingADiamond() 611 Compilation compilation = daggerCompiler().compile(type, scopedComponent, unscopedComponent); in componentWithoutScopeCannotDependOnScopedComponent() 668 daggerCompiler().compile(type, simpleScope, simpleScoped, singletonScoped); in componentWithSingletonScopeMayNotDependOnOtherScope() 754 daggerCompiler() in componentScopeWithMultipleScopedDependenciesMustNotCycle() 838 daggerCompiler().compile(type, scopeA, scopeB, longLifetime, mediumLifetime, shortLifetime); in componentScopeAncestryMustNotCycle() [all …]
|
D | SubcomponentBuilderValidationTest.java | 20 import static dagger.internal.codegen.Compilers.daggerCompiler; 55 Compilation compilation = daggerCompiler().compile(childComponentFile); in testMoreThanOneArgFails() 84 Compilation compilation = daggerCompiler().compile(childComponentFile); in testInheritedMoreThanOneArgFails() 110 Compilation compilation = daggerCompiler().compile(childComponentFile); in testSetterReturningNonVoidOrBuilderFails() 135 Compilation compilation = daggerCompiler().compile(childComponentFile); in testInheritedSetterReturningNonVoidOrBuilderFails() 160 Compilation compilation = daggerCompiler().compile(childComponentFile); in testGenericsOnSetterMethodFails() 185 Compilation compilation = daggerCompiler().compile(childComponentFile); in testGenericsOnInheritedSetterMethodFails()
|
D | BindsMissingDelegateValidationTest.java | 20 import static dagger.internal.codegen.Compilers.daggerCompiler; 59 Compilation compilation = daggerCompiler().compile(component); in bindsMissingDelegate() 92 Compilation compilation = daggerCompiler().compile(component); in bindsMissingDelegate_duplicateBinding() 132 Compilation compilation = daggerCompiler().compile(component); in bindsMissingDelegate_setBinding() 167 Compilation compilation = daggerCompiler().compile(component); in bindsMissingDelegate_mapBinding() 206 Compilation compilation = daggerCompiler().compile(component); in bindsMissingDelegate_mapBinding_sameKey()
|
D | ModuleFactoryGeneratorTest.java | 24 import static dagger.internal.codegen.Compilers.daggerCompiler; 129 Compilation compilation = daggerCompiler().compile(moduleFile); in modulesWithTypeParamsMustBeAbstract() 202 Compilation compilation = daggerCompiler().compile(module); in validatesIncludedModules() 618 Compilation compilation = daggerCompiler().compile(moduleFile); in multipleProvidesMethodsWithSameName() 652 Compilation compilation = daggerCompiler().compile(moduleFile); in providesMethodThrowsChecked() 700 Compilation compilation = daggerCompiler().compile(moduleFile); in providedTypes() 715 Compilation compilation = daggerCompiler().compile(moduleFile); in privateModule() 737 Compilation compilation = daggerCompiler().compile(moduleFile); in enclosedInPrivateModule() 794 daggerCompiler() in publicModuleNonPublicIncludes() 1241 Compilation compilation = daggerCompiler().compile(moduleFile, QUALIFIER_A, QUALIFIER_B); in providesMethodMultipleQualifiersOnMethod() [all …]
|
D | ComponentHierarchyValidationTest.java | 21 import static dagger.internal.codegen.Compilers.daggerCompiler; 61 Compilation compilation = daggerCompiler().compile(component, subcomponent); in singletonSubcomponent() 124 daggerCompiler().compile(component, subcomponent, parentModule, childModule); in productionComponents_productionScopeImplicitOnBoth() 159 Compilation compilation = daggerCompiler().compile(component, subcomponent, repeatedModule); in producerModuleRepeated() 211 Compilation compilation = daggerCompiler().compile(module, component, subcomponent); in factoryMethodForSubcomponentWithBuilder_isNotAllowed() 279 daggerCompiler() in repeatedModulesWithScopes() 345 daggerCompiler() in repeatedModulesWithReusableScope()
|
D | MultibindingTest.java | 20 import static dagger.internal.codegen.Compilers.daggerCompiler; 51 Compilation compilation = daggerCompiler().compile(module); in providesWithTwoMultibindingAnnotations_failsToCompile() 79 Compilation compilation = daggerCompiler().compile(someType); in appliedOnInvalidMethods_failsToCompile() 130 Compilation compilation = daggerCompiler().compile(module, component); in concreteBindingForMultibindingAlias() 182 Compilation compilation = daggerCompiler().compile(module, component); in produceConcreteSet_andRequestSetOfProduced() 255 Compilation compilation = daggerCompiler().compile(parent, parentModule, child, childModule); in provideExplicitSetInParent_AndMultibindingContributionInChild()
|
D | ConflictingEntryPointsTest.java | 20 import static dagger.internal.codegen.Compilers.daggerCompiler; 69 Compilation compilation = daggerCompiler().compile(base1, base2, component); in covariantType() 117 Compilation compilation = daggerCompiler().compile(base1, base2, component); in covariantTypeFromGenericSupertypes() 168 Compilation compilation = daggerCompiler().compile(base1, base2, component); in differentQualifier() 215 Compilation compilation = daggerCompiler().compile(base1, base2, component); in sameKey() 259 Compilation compilation = daggerCompiler().compile(base1, base2, component); in sameQualifiedKey()
|
D | PluginsVisitFullBindingGraphTest.java | 72 Compilation compilation = daggerCompiler().compile(MODULE_WITH_ERRORS); in testNoFlags() 79 daggerCompiler() in testWithVisitPlugins() 94 daggerCompiler() in testWithValidationNone() 104 daggerCompiler() in testWithValidationError() 119 daggerCompiler() in testWithValidationErrorAndVisitPlugins() 140 private static Compiler daggerCompiler() { in daggerCompiler() method in PluginsVisitFullBindingGraphTest
|
D | MultipleRequestTest.java | 20 import static dagger.internal.codegen.Compilers.daggerCompiler; 42 daggerCompiler() in multipleRequests_constructor() 69 daggerCompiler() in multipleRequests_field() 98 daggerCompiler() in multipleRequests_providesMethod()
|
D | RepeatedModuleValidationTest.java | 20 import static dagger.internal.codegen.Compilers.daggerCompiler; 65 daggerCompiler().compile(MODULE_FILE, subcomponentFile, componentFile); in moduleRepeatedInSubcomponentFactoryMethod() 103 daggerCompiler().compile(MODULE_FILE, subcomponentFile, componentFile); in moduleRepeatedInSubcomponentBuilderMethod() 132 daggerCompiler().compile(MODULE_FILE, subcomponentFile, componentFile); in moduleRepeatedButNotPassed()
|
D | ProducerModuleFactoryGeneratorTest.java | 23 import static dagger.internal.codegen.Compilers.daggerCompiler; 179 Compilation compilation = daggerCompiler().compile(moduleFile); in multipleProducesMethodsWithSameName() 209 Compilation compilation = daggerCompiler().compile(moduleFile); in privateModule() 231 Compilation compilation = daggerCompiler().compile(moduleFile); in enclosedInPrivateModule() 253 Compilation compilation = daggerCompiler().compile(xFile, moduleFile); in includesNonModule() 311 daggerCompiler() in publicModuleNonPublicIncludes() 341 Compilation compilation = daggerCompiler().compile(moduleFile); in argumentNamedModuleCompiles()
|
D | ComponentDependenciesTest.java | 20 import static dagger.internal.codegen.Compilers.daggerCompiler; 58 Compilation compilation = daggerCompiler().compile( in dependenciesWithTwoOfSameMethodOnDifferentInterfaces_fail() 96 Compilation compilation = daggerCompiler().compile( in dependenciesWithTwoOfSameMethodOnDifferentInterfaces_producers_fail() 130 Compilation compilation = daggerCompiler().compile( in dependenciesWithTwoOfSameMethodButDifferentNullability_fail()
|
D | MissingBindingSuggestionsTest.java | 20 import static dagger.internal.codegen.Compilers.daggerCompiler; 96 daggerCompiler().compile(fooComponent, barComponent, topComponent, foo, bar, barModule); in suggestsBindingInSeparateComponent() 156 daggerCompiler() in suggestsBindingInNestedSubcomponent() 215 Compilation compilation = daggerCompiler().compile(parent, child, foo, bar, baz, bazModule); in missingBindingInParentComponent() 298 daggerCompiler().compile(parent, child1, child2, foo, bar, baz, bazModule); in missingBindingInSiblingComponent()
|
D | FullBindingGraphValidationTest.java | 21 import static dagger.internal.codegen.Compilers.daggerCompiler; 84 Compilation compilation = daggerCompiler().compile(MODULE_WITH_ERRORS); in moduleWithErrors_validationTypeNone() 134 daggerCompiler().compile(MODULE_WITH_ERRORS, INCLUDES_MODULE_WITH_ERRORS); in includesModuleWithErrors_validationTypeNone() 226 Compilation compilation = daggerCompiler().compile(A_MODULE, COMBINED_WITH_A_MODULE_HAS_ERRORS); in moduleIncludingModuleWithCombinedErrors_validationTypeNone() 318 Compilation compilation = daggerCompiler().compile(SUBCOMPONENT_WITH_ERRORS, A_MODULE); in subcomponentWithErrors_validationTypeNone() 369 daggerCompiler() in moduleWithSubcomponentWithErrors_validationTypeNone() 469 daggerCompiler().compile(COMBINED_WITH_A_SUBCOMPONENT_HAS_ERRORS, A_SUBCOMPONENT, A_MODULE); in moduleWithSubcomponentWithCombinedErrors_validationTypeNone()
|
D | BindsDependsOnSubcomponentValidationTest.java | 21 import static dagger.internal.codegen.Compilers.daggerCompiler; 99 daggerCompiler() in testBinds() 174 daggerCompiler() in testSetBindings() 254 daggerCompiler() in testSetValueBindings()
|
D | MissingAndroidProcessorTest.java | 20 import static dagger.internal.codegen.Compilers.daggerCompiler; 52 Compilation compilation = daggerCompiler().compile(module, contributesAndroidInjectorStub); in missingProcessor()
|