/external/dagger2/javatests/dagger/internal/codegen/ |
D | ComponentCreatorTest.java | 85 JavaFileObject componentFile = in testEmptyCreator() local 116 Compilation compilation = compile(injectableTypeFile, componentFile); in testEmptyCreator() 139 JavaFileObject componentFile = in testCanInstantiateModulesUserCannotSet() local 192 Compilation compilation = compile(module, componentFile); in testCanInstantiateModulesUserCannotSet() 201 JavaFileObject componentFile = in testMoreThanOneCreatorOfSameTypeFails() local 221 Compilation compilation = compile(componentFile); in testMoreThanOneCreatorOfSameTypeFails() 228 .inFile(componentFile); in testMoreThanOneCreatorOfSameTypeFails() 233 JavaFileObject componentFile = in testBothBuilderAndFactoryFails() local 253 Compilation compilation = compile(componentFile); in testBothBuilderAndFactoryFails() 260 .inFile(componentFile); in testBothBuilderAndFactoryFails() [all …]
|
D | ComponentBuilderTest.java | 66 JavaFileObject componentFile = in testUsesBuildAndSetterNames() local 111 compilerWithOptions(compilerMode.javacopts()).compile(moduleFile, componentFile); in testUsesBuildAndSetterNames() 120 JavaFileObject componentFile = in testSetterMethodWithMoreThanOneArgFails() local 138 compilerWithOptions(compilerMode.javacopts()).compile(componentFile); in testSetterMethodWithMoreThanOneArgFails() 142 .inFile(componentFile) in testSetterMethodWithMoreThanOneArgFails() 146 .inFile(componentFile) in testSetterMethodWithMoreThanOneArgFails() 152 JavaFileObject componentFile = in testInheritedSetterMethodWithMoreThanOneArgFails() local 171 compilerWithOptions(compilerMode.javacopts()).compile(componentFile); in testInheritedSetterMethodWithMoreThanOneArgFails() 178 .inFile(componentFile) in testInheritedSetterMethodWithMoreThanOneArgFails() 184 JavaFileObject componentFile = in testSetterReturningNonVoidOrBuilderFails() local [all …]
|
D | SubcomponentCreatorValidationTest.java | 55 JavaFileObject componentFile = in testRefSubcomponentAndSubCreatorFails() local 80 Compilation compilation = compile(componentFile, childComponentFile); in testRefSubcomponentAndSubCreatorFails() 88 .inFile(componentFile); in testRefSubcomponentAndSubCreatorFails() 93 JavaFileObject componentFile = preprocessedJavaFile("test.ParentComponent", in testRefSubCreatorTwiceFails() local 116 Compilation compilation = compile(componentFile, childComponentFile); in testRefSubCreatorTwiceFails() 123 .inFile(componentFile); in testRefSubCreatorTwiceFails() 128 JavaFileObject componentFile = preprocessedJavaFile("test.ParentComponent", in testMoreThanOneCreatorFails() local 155 Compilation compilation = compile(componentFile, childComponentFile); in testMoreThanOneCreatorFails() 167 JavaFileObject componentFile = preprocessedJavaFile("test.ParentComponent", in testMoreThanOneCreatorFails_differentTypes() local 194 Compilation compilation = compile(componentFile, childComponentFile); in testMoreThanOneCreatorFails_differentTypes() [all …]
|
D | ComponentValidationTest.java | 35 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.NotAComponent", in componentOnConcreteClass() local 42 Compilation compilation = daggerCompiler().compile(componentFile); in componentOnConcreteClass() 49 JavaFileObject componentFile = in componentOnOverridingBuilder_failsWhenMethodNameConflictsWithStaticCreatorName() local 74 Compilation compilation = daggerCompiler().compile(componentFile, moduleFile); in componentOnOverridingBuilder_failsWhenMethodNameConflictsWithStaticCreatorName() 82 JavaFileObject componentFile = in componentOnOverridingCreate_failsWhenGeneratedCreateMethod() local 107 Compilation compilation = daggerCompiler().compile(componentFile, moduleFile); in componentOnOverridingCreate_failsWhenGeneratedCreateMethod() 115 JavaFileObject componentFile = in subcomponentMethodNameBuilder_succeeds() local 155 Compilation compilation = daggerCompiler().compile(componentFile, subcomponentFile, moduleFile); in subcomponentMethodNameBuilder_succeeds() 160 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.NotAComponent", in componentOnEnum() local 169 Compilation compilation = daggerCompiler().compile(componentFile); in componentOnEnum() [all …]
|
D | ProductionComponentProcessorTest.java | 48 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.NotAComponent", in componentOnConcreteClass() local 55 Compilation compilation = daggerCompiler().compile(componentFile); in componentOnConcreteClass() 61 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.NotAComponent", in componentOnEnum() local 71 compilerWithOptions(compilerMode.javacopts()).compile(componentFile); in componentOnEnum() 77 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.NotAComponent", in componentOnAnnotation() local 85 compilerWithOptions(compilerMode.javacopts()).compile(componentFile); in componentOnAnnotation() 91 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.NotAComponent", in nonModuleModule() local 99 compilerWithOptions(compilerMode.javacopts()).compile(componentFile); in nonModuleModule() 140 JavaFileObject componentFile = in dependsOnProductionExecutor() local 160 .compile(moduleFile, producerModuleFile, componentFile); in dependsOnProductionExecutor() [all …]
|
D | RepeatedModuleValidationTest.java | 53 JavaFileObject componentFile = in moduleRepeatedInSubcomponentFactoryMethod() local 65 daggerCompiler().compile(MODULE_FILE, subcomponentFile, componentFile); in moduleRepeatedInSubcomponentFactoryMethod() 69 .inFile(componentFile) in moduleRepeatedInSubcomponentFactoryMethod() 91 JavaFileObject componentFile = in moduleRepeatedInSubcomponentBuilderMethod() local 103 daggerCompiler().compile(MODULE_FILE, subcomponentFile, componentFile); in moduleRepeatedInSubcomponentBuilderMethod() 120 JavaFileObject componentFile = in moduleRepeatedButNotPassed() local 132 daggerCompiler().compile(MODULE_FILE, subcomponentFile, componentFile); in moduleRepeatedButNotPassed()
|
D | ComponentFactoryTest.java | 66 JavaFileObject componentFile = in testUsesParameterNames() local 100 compilerWithOptions(compilerMode.javacopts()).compile(moduleFile, componentFile); in testUsesParameterNames() 109 JavaFileObject componentFile = in testSetterMethodFails() local 126 compilerWithOptions(compilerMode.javacopts()).compile(componentFile); in testSetterMethodFails() 130 .inFile(componentFile) in testSetterMethodFails() 136 JavaFileObject componentFile = in testInheritedSetterMethodFails() local 155 compilerWithOptions(compilerMode.javacopts()).compile(componentFile); in testInheritedSetterMethodFails() 159 .inFile(componentFile) in testInheritedSetterMethodFails()
|
D | SubcomponentValidationTest.java | 48 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in factoryMethod_missingModulesWithParameters() local 86 .compile(componentFile, childComponentFile, moduleFile); in factoryMethod_missingModulesWithParameters() 93 .inFile(componentFile) in factoryMethod_missingModulesWithParameters() 167 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in factoryMethod_nonModuleParameter() local 185 .compile(componentFile, childComponentFile); in factoryMethod_nonModuleParameter() 190 .inFile(componentFile) in factoryMethod_nonModuleParameter() 203 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in factoryMethod_duplicateParameter() local 221 .compile(moduleFile, componentFile, childComponentFile); in factoryMethod_duplicateParameter() 227 .inFile(componentFile) in factoryMethod_duplicateParameter() 240 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in factoryMethod_superflouousModule() local [all …]
|
D | MapBindingComponentProcessorTest.java | 116 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in mapBindingsWithEnumKey() local 138 componentFile); in mapBindingsWithEnumKey() 288 JavaFileObject componentFile = in mapBindingsWithInaccessibleKeys() local 310 Compilation compilation = daggerCompiler().compile(mapKeys, moduleFile, componentFile); in mapBindingsWithInaccessibleKeys() 481 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in mapBindingsWithStringKey() local 501 componentFile); in mapBindingsWithStringKey() 639 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in mapBindingsWithWrappedKey() local 660 componentFile); in mapBindingsWithWrappedKey() 801 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in mapBindingsWithNonProviderValue() local 823 componentFile); in mapBindingsWithNonProviderValue() [all …]
|
D | ComponentProcessorTest.java | 95 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.BadComponent", in doubleBindingFromResolvedModules() local 108 .compile(parent, child, another, componentFile); in doubleBindingFromResolvedModules() 131 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.BadComponent", in privateNestedClassWithWarningThatIsAnErrorInComponent() local 143 .compile(outerClass, componentFile); in privateNestedClassWithWarningThatIsAnErrorInComponent() 158 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.SimpleComponent", in simpleComponent() local 236 .compile(injectableTypeFile, componentFile); in simpleComponent() 254 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.SimpleComponent", in componentWithScope() local 323 .compile(injectableTypeFile, componentFile); in componentWithScope() 420 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in componentWithModule() local 476 .compile(aFile, bFile, cFile, moduleFile, componentFile); in componentWithModule() [all …]
|
D | ComponentDependenciesTest.java | 49 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in dependenciesWithTwoOfSameMethodOnDifferentInterfaces_fail() local 59 interfaceOne, interfaceTwo, mergedInterface, componentFile); in dependenciesWithTwoOfSameMethodOnDifferentInterfaces_fail() 86 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in dependenciesWithTwoOfSameMethodOnDifferentInterfaces_producers_fail() local 97 interfaceOne, interfaceTwo, mergedInterface, componentFile); in dependenciesWithTwoOfSameMethodOnDifferentInterfaces_producers_fail() 121 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in dependenciesWithTwoOfSameMethodButDifferentNullability_fail() local 131 interfaceOne, interfaceTwo, mergedInterface, componentFile); in dependenciesWithTwoOfSameMethodButDifferentNullability_fail()
|
D | ElidedFactoriesTest.java | 69 JavaFileObject componentFile = in simpleComponent() local 117 .compile(injectedType, dependsOnInjected, componentFile); in simpleComponent() 162 JavaFileObject componentFile = in simpleComponent_injectsProviderOf_dependsOnScoped() local 178 .compile(scopedType, dependsOnScoped, componentFile, needsProvider); in simpleComponent_injectsProviderOf_dependsOnScoped() 261 JavaFileObject componentFile = in scopedBinding_onlyUsedInSubcomponent() local 288 .compile(scopedType, dependsOnScoped, componentFile, subcomponentFile); in scopedBinding_onlyUsedInSubcomponent()
|
D | SetBindingRequestFulfillmentWithGuavaTest.java | 80 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in setBindings() local 124 .compile(emptySetModuleFile, setModuleFile, componentFile); in setBindings() 178 JavaFileObject componentFile = in inaccessible() local 218 .compile(module, inaccessible, inaccessible2, usesInaccessible, componentFile); in inaccessible() 309 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in productionComponents() local 371 .compile(emptySetModuleFile, componentFile); in productionComponents()
|
D | MapRequestRepresentationWithGuavaTest.java | 88 JavaFileObject componentFile = in mapBindings() local 323 .compile(mapModuleFile, componentFile, subcomponentModuleFile, subcomponent); in mapBindings() 360 JavaFileObject componentFile = in inaccessible() local 392 .compile(module, inaccessible, usesInaccessible, componentFile); in inaccessible() 482 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in productionComponents() local 517 .compile(mapModuleFile, componentFile); in productionComponents()
|
D | SetBindingRequestFulfillmentTest.java | 78 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in setBindings() local 113 daggerCompilerWithoutGuava().compile(emptySetModuleFile, setModuleFile, componentFile); in setBindings() 167 JavaFileObject componentFile = in inaccessible() local 209 .compile(module, inaccessible, inaccessible2, usesInaccessible, componentFile); in inaccessible()
|
D | MapRequestRepresentationTest.java | 69 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in mapBindings() local 198 Compilation compilation = daggerCompilerWithoutGuava().compile(mapModuleFile, componentFile); in mapBindings() 238 JavaFileObject componentFile = in inaccessible() local 270 daggerCompilerWithoutGuava().compile(module, inaccessible, usesInaccessible, componentFile); in inaccessible()
|
D | ScopingValidationTest.java | 35 JavaFileObject componentFile = in componentWithoutScopeIncludesScopedBindings_Fail() local 75 Compilation compilation = daggerCompiler().compile(componentFile, typeFile, moduleFile); in componentWithoutScopeIncludesScopedBindings_Fail() 171 JavaFileObject componentFile = in componentWithScopeIncludesIncompatiblyScopedBindings_Fail() local 234 .compile(componentFile, scopeFile, scopeWithAttribute, typeFile, moduleFile); in componentWithScopeIncludesIncompatiblyScopedBindings_Fail() 249 .inFile(componentFile) in componentWithScopeIncludesIncompatiblyScopedBindings_Fail() 254 .compile(componentFile, scopeFile, scopeWithAttribute, typeFile, moduleFile); in componentWithScopeIncludesIncompatiblyScopedBindings_Fail()
|
D | MembersInjectionTest.java | 74 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in parentClass_noInjectedMembers() local 97 .compile(childFile, parentFile, componentFile); in parentClass_noInjectedMembers() 131 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in parentClass_injectedMembersInSupertype() local 163 .compile(childFile, parentFile, depFile, componentFile); in parentClass_injectedMembersInSupertype()
|