/external/dagger2/javatests/dagger/internal/codegen/ |
D | ComponentCreatorTest.java | 87 JavaFileObject componentFile = in testEmptyCreator() local 118 Compilation compilation = compile(injectableTypeFile, componentFile); in testEmptyCreator() 141 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 | 67 JavaFileObject componentFile = in testUsesBuildAndSetterNames() local 112 compilerWithOptions(compilerMode.javacopts()).compile(moduleFile, componentFile); in testUsesBuildAndSetterNames() 121 JavaFileObject componentFile = in testSetterMethodWithMoreThanOneArgFails() local 139 compilerWithOptions(compilerMode.javacopts()).compile(componentFile); in testSetterMethodWithMoreThanOneArgFails() 143 .inFile(componentFile) in testSetterMethodWithMoreThanOneArgFails() 147 .inFile(componentFile) in testSetterMethodWithMoreThanOneArgFails() 153 JavaFileObject componentFile = in testInheritedSetterMethodWithMoreThanOneArgFails() local 172 compilerWithOptions(compilerMode.javacopts()).compile(componentFile); in testInheritedSetterMethodWithMoreThanOneArgFails() 179 .inFile(componentFile) in testInheritedSetterMethodWithMoreThanOneArgFails() 185 JavaFileObject componentFile = in testSetterReturningNonVoidOrBuilderFails() local [all …]
|
D | SubcomponentCreatorValidationTest.java | 55 JavaFileObject componentFile = preprocessedJavaFile("test.ParentComponent", in testRefSubcomponentAndSubCreatorFails() local 78 Compilation compilation = compile(componentFile, childComponentFile); in testRefSubcomponentAndSubCreatorFails() 86 .inFile(componentFile); in testRefSubcomponentAndSubCreatorFails() 91 JavaFileObject componentFile = preprocessedJavaFile("test.ParentComponent", in testRefSubCreatorTwiceFails() local 114 Compilation compilation = compile(componentFile, childComponentFile); in testRefSubCreatorTwiceFails() 121 .inFile(componentFile); in testRefSubCreatorTwiceFails() 126 JavaFileObject componentFile = preprocessedJavaFile("test.ParentComponent", in testMoreThanOneCreatorFails() local 153 Compilation compilation = compile(componentFile, childComponentFile); in testMoreThanOneCreatorFails() 165 JavaFileObject componentFile = preprocessedJavaFile("test.ParentComponent", in testMoreThanOneCreatorFails_differentTypes() local 192 Compilation compilation = compile(componentFile, childComponentFile); in testMoreThanOneCreatorFails_differentTypes() [all …]
|
D | ProductionComponentProcessorTest.java | 50 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.NotAComponent", in componentOnConcreteClass() local 57 Compilation compilation = daggerCompiler().compile(componentFile); in componentOnConcreteClass() 63 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.NotAComponent", in componentOnEnum() local 73 compilerWithOptions(compilerMode.javacopts()).compile(componentFile); in componentOnEnum() 79 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.NotAComponent", in componentOnAnnotation() local 87 compilerWithOptions(compilerMode.javacopts()).compile(componentFile); in componentOnAnnotation() 93 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.NotAComponent", in nonModuleModule() local 101 compilerWithOptions(compilerMode.javacopts()).compile(componentFile); in nonModuleModule() 142 JavaFileObject componentFile = in dependsOnProductionExecutor() local 162 .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 | 67 JavaFileObject componentFile = in testUsesParameterNames() local 101 compilerWithOptions(compilerMode.javacopts()).compile(moduleFile, componentFile); in testUsesParameterNames() 110 JavaFileObject componentFile = in testSetterMethodFails() local 127 compilerWithOptions(compilerMode.javacopts()).compile(componentFile); in testSetterMethodFails() 131 .inFile(componentFile) in testSetterMethodFails() 137 JavaFileObject componentFile = in testInheritedSetterMethodFails() local 156 compilerWithOptions(compilerMode.javacopts()).compile(componentFile); in testInheritedSetterMethodFails() 160 .inFile(componentFile) in testInheritedSetterMethodFails()
|
D | MapBindingComponentProcessorTest.java | 113 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in mapBindingsWithEnumKey() local 247 componentFile); in mapBindingsWithEnumKey() 329 JavaFileObject componentFile = in mapBindingsWithInaccessibleKeys() local 351 Compilation compilation = daggerCompiler().compile(mapKeys, moduleFile, componentFile); in mapBindingsWithInaccessibleKeys() 520 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in mapBindingsWithStringKey() local 652 componentFile); in mapBindingsWithStringKey() 720 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in mapBindingsWithWrappedKey() local 864 componentFile); in mapBindingsWithWrappedKey() 933 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in mapBindingsWithNonProviderValue() local 1040 componentFile); in mapBindingsWithNonProviderValue() [all …]
|
D | SubcomponentValidationTest.java | 50 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in factoryMethod_missingModulesWithParameters() local 88 .compile(componentFile, childComponentFile, moduleFile); in factoryMethod_missingModulesWithParameters() 95 .inFile(componentFile) in factoryMethod_missingModulesWithParameters() 169 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in factoryMethod_nonModuleParameter() local 187 .compile(componentFile, childComponentFile); in factoryMethod_nonModuleParameter() 192 .inFile(componentFile) in factoryMethod_nonModuleParameter() 205 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in factoryMethod_duplicateParameter() local 223 .compile(moduleFile, componentFile, childComponentFile); in factoryMethod_duplicateParameter() 229 .inFile(componentFile) in factoryMethod_duplicateParameter() 242 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in factoryMethod_superflouousModule() local [all …]
|
D | ComponentProcessorTest.java | 97 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.BadComponent", in doubleBindingFromResolvedModules() local 110 .compile(parent, child, another, componentFile); in doubleBindingFromResolvedModules() 133 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.BadComponent", in privateNestedClassWithWarningThatIsAnErrorInComponent() local 145 .compile(outerClass, componentFile); in privateNestedClassWithWarningThatIsAnErrorInComponent() 160 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.SimpleComponent", in simpleComponent() local 262 .compile(injectableTypeFile, componentFile); in simpleComponent() 280 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.SimpleComponent", in componentWithScope() local 387 .compile(injectableTypeFile, componentFile); in componentWithScope() 484 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in componentWithModule() local 541 .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 116 .compile(injectedType, dependsOnInjected, componentFile); in simpleComponent() 161 JavaFileObject componentFile = in simpleComponent_injectsProviderOf_dependsOnScoped() local 310 .compile(scopedType, dependsOnScoped, componentFile, needsProvider); in simpleComponent_injectsProviderOf_dependsOnScoped() 343 JavaFileObject componentFile = in scopedBinding_onlyUsedInSubcomponent() local 488 .compile(scopedType, dependsOnScoped, componentFile, subcomponentFile); in scopedBinding_onlyUsedInSubcomponent()
|
D | ComponentValidationTest.java | 35 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.NotAComponent", in componentOnConcreteClass() local 42 Compilation compilation = daggerCompiler().compile(componentFile); in componentOnConcreteClass() 48 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.NotAComponent", in componentOnEnum() local 57 Compilation compilation = daggerCompiler().compile(componentFile); in componentOnEnum() 63 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.NotAComponent", in componentOnAnnotation() local 70 Compilation compilation = daggerCompiler().compile(componentFile); in componentOnAnnotation() 76 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.NotAComponent", in nonModuleModule() local 83 Compilation compilation = daggerCompiler().compile(componentFile); in nonModuleModule()
|
D | SetBindingRequestFulfillmentWithGuavaTest.java | 82 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in setBindings() local 126 .compile(emptySetModuleFile, setModuleFile, componentFile); in setBindings() 180 JavaFileObject componentFile = in inaccessible() local 220 .compile(module, inaccessible, inaccessible2, usesInaccessible, componentFile); in inaccessible() 311 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in productionComponents() local 371 .compile(emptySetModuleFile, componentFile); in productionComponents()
|
D | MapBindingExpressionWithGuavaTest.java | 89 JavaFileObject componentFile = in mapBindings() local 344 .compile(mapModuleFile, componentFile, subcomponentModuleFile, subcomponent); in mapBindings() 381 JavaFileObject componentFile = in inaccessible() local 413 .compile(module, inaccessible, usesInaccessible, componentFile); in inaccessible() 504 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in productionComponents() local 539 .compile(mapModuleFile, componentFile); in productionComponents()
|
D | SetBindingRequestFulfillmentTest.java | 80 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in setBindings() local 115 daggerCompilerWithoutGuava().compile(emptySetModuleFile, setModuleFile, componentFile); in setBindings() 169 JavaFileObject componentFile = in inaccessible() local 211 .compile(module, inaccessible, inaccessible2, usesInaccessible, componentFile); in inaccessible()
|
D | MapBindingExpressionTest.java | 70 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in mapBindings() local 214 Compilation compilation = daggerCompilerWithoutGuava().compile(mapModuleFile, componentFile); in mapBindings() 254 JavaFileObject componentFile = in inaccessible() local 286 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() 168 JavaFileObject componentFile = in componentWithScopeIncludesIncompatiblyScopedBindings_Fail() local 231 .compile(componentFile, scopeFile, scopeWithAttribute, typeFile, moduleFile); in componentWithScopeIncludesIncompatiblyScopedBindings_Fail() 242 .inFile(componentFile) in componentWithScopeIncludesIncompatiblyScopedBindings_Fail() 247 .compile(componentFile, scopeFile, scopeWithAttribute, typeFile, moduleFile); in componentWithScopeIncludesIncompatiblyScopedBindings_Fail()
|
D | MembersInjectionTest.java | 76 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in parentClass_noInjectedMembers() local 99 .compile(childFile, parentFile, componentFile); in parentClass_noInjectedMembers() 133 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in parentClass_injectedMembersInSupertype() local 164 .compile(childFile, parentFile, depFile, componentFile); in parentClass_injectedMembersInSupertype()
|