Home
last modified time | relevance | path

Searched refs:compilerWithOptions (Results 1 – 25 of 32) sorted by relevance

12

/external/dagger2/javatests/dagger/internal/codegen/
DAssistedFactoryErrorsTest.java20 import static dagger.internal.codegen.Compilers.compilerWithOptions;
54 Compilation compilation = compilerWithOptions(compilerMode.javacopts()).compile(factory); in testFactoryNotAbstract()
82 Compilation compilation = compilerWithOptions(compilerMode.javacopts()).compile(foo); in testNestedFactoryNotStatic()
99 Compilation compilation = compilerWithOptions(compilerMode.javacopts()).compile(factory); in testFactoryMissingAbstractMethod()
141 compilerWithOptions(compilerMode.javacopts()).compile(factory, noInject, noAssistedParam); in testFactoryReturnsNonDeclaredType()
216 compilerWithOptions(compilerMode.javacopts()).compile(foo, fooFactory, fooFactoryInterface); in testFactoryMultipleAbstractMethods()
251 compilerWithOptions(compilerMode.javacopts()).compile(foo, fooFactory); in testFactoryMismatchingParameter()
288 compilerWithOptions(compilerMode.javacopts()).compile(foo, fooFactory); in testFactoryMismatchingGenericParameter()
325 compilerWithOptions(compilerMode.javacopts()).compile(foo, fooFactory); in testFactoryDuplicateGenericParameter()
393 compilerWithOptions(compilerMode.javacopts()).compile(foo, bar, module, component); in testAssistedInjectionRequest()
[all …]
DFullBindingGraphValidationTest.java20 import static dagger.internal.codegen.Compilers.compilerWithOptions;
91 compilerWithOptions("-Adagger.fullBindingGraphValidation=ERROR") in moduleWithErrors_validationTypeError()
107 compilerWithOptions("-Adagger.fullBindingGraphValidation=WARNING") in moduleWithErrors_validationTypeWarning()
141 compilerWithOptions("-Adagger.fullBindingGraphValidation=ERROR") in includesModuleWithErrors_validationTypeError()
162 compilerWithOptions("-Adagger.fullBindingGraphValidation=WARNING") in includesModuleWithErrors_validationTypeWarning()
234 compilerWithOptions("-Adagger.fullBindingGraphValidation=ERROR") in moduleIncludingModuleWithCombinedErrors_validationTypeError()
250 compilerWithOptions("-Adagger.fullBindingGraphValidation=WARNING") in moduleIncludingModuleWithCombinedErrors_validationTypeWarning()
326 compilerWithOptions("-Adagger.fullBindingGraphValidation=ERROR") in subcomponentWithErrors_validationTypeError()
342 compilerWithOptions("-Adagger.fullBindingGraphValidation=WARNING") in subcomponentWithErrors_validationTypeWarning()
378 compilerWithOptions("-Adagger.fullBindingGraphValidation=ERROR") in moduleWithSubcomponentWithErrors_validationTypeError()
[all …]
DAssistedInjectErrorsTest.java20 import static dagger.internal.codegen.Compilers.compilerWithOptions;
59 Compilation compilation = compilerWithOptions(compilerMode.javacopts()).compile(foo); in testAssistedInjectWithDuplicateTypesFails()
84 Compilation compilation = compilerWithOptions(compilerMode.javacopts()).compile(foo); in testAssistedInjectWithDuplicateTypesEmptyQualifierFails()
109 Compilation compilation = compilerWithOptions(compilerMode.javacopts()).compile(foo); in testAssistedInjectWithDuplicateQualifiedTypesFails()
136 Compilation compilation = compilerWithOptions(compilerMode.javacopts()).compile(foo); in testAssistedInjectWithDuplicateGenericTypesFails()
162 Compilation compilation = compilerWithOptions(compilerMode.javacopts()).compile(foo); in testAssistedInjectWithDuplicateParameterizedTypesFails()
187 Compilation compilation = compilerWithOptions(compilerMode.javacopts()).compile(foo); in testAssistedInjectWithUniqueParameterizedTypesPasses()
207 Compilation compilation = compilerWithOptions(compilerMode.javacopts()).compile(foo); in testAssistedInjectWithUniqueGenericTypesPasses()
231 Compilation compilation = compilerWithOptions(compilerMode.javacopts()).compile(foo); in testAssistedInjectWithUniqueQualifiedTypesPasses()
DSubcomponentValidationTest.java22 import static dagger.internal.codegen.Compilers.compilerWithOptions;
87 compilerWithOptions(compilerMode.javacopts()) in factoryMethod_missingModulesWithParameters()
155 compilerWithOptions(compilerMode.javacopts()) in factoryMethod_grandchild()
186 compilerWithOptions(compilerMode.javacopts()) in factoryMethod_nonModuleParameter()
222 compilerWithOptions(compilerMode.javacopts()) in factoryMethod_duplicateParameter()
259 compilerWithOptions(compilerMode.javacopts()) in factoryMethod_superflouousModule()
302 compilerWithOptions(compilerMode.javacopts()) in missingBinding()
322 compilerWithOptions(compilerMode.javacopts()).compile(subcomponentFile); in subcomponentOnConcreteType()
360 compilerWithOptions(compilerMode.javacopts()) in scopeMismatch()
582 compilerWithOptions(compilerMode.javacopts()) in delegateFactoryNotCreatedForSubcomponentWhenProviderExistsInParent()
[all …]
DDuplicateBindingsValidationTest.java20 import static dagger.internal.codegen.Compilers.compilerWithOptions;
86 compilerWithOptions( in duplicateExplicitBindings_ProvidesAndComponentProvision()
140 compilerWithOptions( in duplicateExplicitBindings_TwoProvidesMethods()
208 compilerWithOptions( in duplicateExplicitBindings_ProvidesVsBinds()
278 compilerWithOptions( in duplicateExplicitBindings_multibindingsAndExplicitSets()
349 compilerWithOptions( in duplicateExplicitBindings_multibindingsAndExplicitMaps()
406 compilerWithOptions( in duplicateExplicitBindings_UniqueBindingAndMultibindingDeclaration_Set()
461 compilerWithOptions( in duplicateExplicitBindings_UniqueBindingAndMultibindingDeclaration_Map()
590 compilerWithOptions( in duplicateBindings_TruncateAfterLimit()
664 compilerWithOptions( in childBindingConflictsWithParent()
[all …]
DComponentBuilderTest.java20 import static dagger.internal.codegen.Compilers.compilerWithOptions;
112 compilerWithOptions(compilerMode.javacopts()).compile(moduleFile, componentFile); in testUsesBuildAndSetterNames()
139 compilerWithOptions(compilerMode.javacopts()).compile(componentFile); in testSetterMethodWithMoreThanOneArgFails()
172 compilerWithOptions(compilerMode.javacopts()).compile(componentFile); in testInheritedSetterMethodWithMoreThanOneArgFails()
202 compilerWithOptions(compilerMode.javacopts()).compile(componentFile); in testSetterReturningNonVoidOrBuilderFails()
231 compilerWithOptions(compilerMode.javacopts()).compile(componentFile); in testInheritedSetterReturningNonVoidOrBuilderFails()
260 compilerWithOptions(compilerMode.javacopts()).compile(componentFile); in testGenericsOnSetterMethodFails()
289 compilerWithOptions(compilerMode.javacopts()).compile(componentFile); in testGenericsOnInheritedSetterMethodFails()
322 compilerWithOptions(compilerMode.javacopts()).compile(componentFile); in testBindsInstanceNotAllowedOnBothSetterAndParameter()
356 compilerWithOptions(compilerMode.javacopts()).compile(componentFile); in testBindsInstanceNotAllowedOnBothSetterAndParameter_inherited()
DComponentProcessorTest.java23 import static dagger.internal.codegen.Compilers.compilerWithOptions;
109 compilerWithOptions(compilerMode.javacopts()) in doubleBindingFromResolvedModules()
143 compilerWithOptions( in privateNestedClassWithWarningThatIsAnErrorInComponent()
261 compilerWithOptions(compilerMode.javacopts()) in simpleComponent()
386 compilerWithOptions(compilerMode.javacopts()) in componentWithScope()
444 compilerWithOptions(compilerMode.javacopts()).compile(nestedTypesFile); in simpleComponentWithNesting()
540 compilerWithOptions(compilerMode.javacopts()) in componentWithModule()
621 compilerWithOptions(compilerMode.javacopts()) in componentWithAbstractModule()
750 compilerWithOptions(compilerMode.javacopts()) in transitiveModuleDeps()
784 compilerWithOptions(compilerMode.javacopts()).compile(rootModule, component)) in generatedTransitiveModule()
[all …]
DProductionComponentProcessorTest.java22 import static dagger.internal.codegen.Compilers.compilerWithOptions;
73 compilerWithOptions(compilerMode.javacopts()).compile(componentFile); in componentOnEnum()
87 compilerWithOptions(compilerMode.javacopts()).compile(componentFile); in componentOnAnnotation()
101 compilerWithOptions(compilerMode.javacopts()).compile(componentFile); in nonModuleModule()
170 compilerWithOptions("-Adagger.fullBindingGraphValidation=ERROR") in dependsOnProductionExecutor()
595 compilerWithOptions(compilerMode.javacopts()).compile(component); in nullableProducersAreNotErrors()
644 compilerWithOptions(compilerMode.javacopts()) in productionScope_injectConstructor()
DMembersInjectionTest.java25 import static dagger.internal.codegen.Compilers.compilerWithOptions;
98 compilerWithOptions(compilerMode.javacopts()) in parentClass_noInjectedMembers()
163 compilerWithOptions(compilerMode.javacopts()) in parentClass_injectedMembersInSupertype()
993 compilerWithOptions(compilerMode.javacopts()) in lowerCaseNamedMembersInjector_forLowerCaseType()
1111 Compilation compilation = compilerWithOptions(compilerMode.javacopts()).compile(file); in privateNestedClassError()
1131 compilerWithOptions( in privateNestedClassWarning()
1154 Compilation compilation = compilerWithOptions(compilerMode.javacopts()).compile(file); in privateSuperclassIsOkIfNotInjectedInto()
1178 Compilation compilation = compilerWithOptions(compilerMode.javacopts()).compile(file); in rawFrameworkTypeField()
1199 Compilation compilation = compilerWithOptions(compilerMode.javacopts()).compile(file); in throwExceptionInjectedMethod()
1228 Compilation compilation = compilerWithOptions(compilerMode.javacopts()).compile(file); in rawFrameworkTypeParameter()
[all …]
DCompilers.java60 public static Compiler compilerWithOptions(CompilerMode... compilerModes) { in compilerWithOptions() method in Compilers
65 return compilerWithOptions(options.build()); in compilerWithOptions()
68 public static Compiler compilerWithOptions(String... options) { in compilerWithOptions() method in Compilers
69 return compilerWithOptions(Arrays.asList(options)); in compilerWithOptions()
72 public static Compiler compilerWithOptions(Iterable<String> options) { in compilerWithOptions() method in Compilers
DDelegateBindingExpressionTest.java22 import static dagger.internal.codegen.Compilers.compilerWithOptions;
393 compilerWithOptions(compilerMode.javacopts()) in castNeeded_rawTypes_Provider_get()
501 compilerWithOptions(compilerMode.javacopts()) in noCast_rawTypes_Provider_get_toInaccessibleType()
591 compilerWithOptions(compilerMode.javacopts()) in castedToRawType()
692 compilerWithOptions(compilerMode.javacopts()) in doubleBinds()
797 compilerWithOptions(compilerMode.javacopts()) in inlineFactoryOfInacessibleType()
889 Compilation compilation = compilerWithOptions(compilerMode.javacopts()) in providerWhenBindsScopeGreaterThanDependencyScope()
974 compilerWithOptions(compilerMode.javacopts()) in assertThatCompilationWithModule()
DComponentRequirementFieldTest.java20 import static dagger.internal.codegen.Compilers.compilerWithOptions;
69 compilerWithOptions(compilerMode.javacopts()).compile(component); in bindsInstance()
164 compilerWithOptions(compilerMode.javacopts()) in instanceModuleMethod()
237 compilerWithOptions(compilerMode.javacopts()) in componentInstances()
424 compilerWithOptions(compilerMode.javacopts()) in componentRequirementNeededInFactoryCreationOfSubcomponent()
DSetBindingRequestFulfillmentWithGuavaTest.java20 import static dagger.internal.codegen.Compilers.compilerWithOptions;
125 compilerWithOptions(compilerMode.javacopts()) in setBindings()
219 compilerWithOptions(compilerMode.javacopts()) in inaccessible()
286 compilerWithOptions(compilerMode.javacopts()).compile(parent, parentModule, child); in subcomponentOmitsInheritedBindings()
370 compilerWithOptions(compilerMode.javacopts()) in productionComponents()
DMapBindingExpressionWithGuavaTest.java22 import static dagger.internal.codegen.Compilers.compilerWithOptions;
343 compilerWithOptions(compilerMode.javacopts()) in mapBindings()
412 compilerWithOptions(compilerMode.javacopts()) in inaccessible()
482 compilerWithOptions(compilerMode.javacopts()).compile(parent, parentModule, child); in subcomponentOmitsInheritedBindings()
535 compilerWithOptions( in productionComponents()
DComponentFactoryTest.java20 import static dagger.internal.codegen.Compilers.compilerWithOptions;
101 compilerWithOptions(compilerMode.javacopts()).compile(moduleFile, componentFile); in testUsesParameterNames()
127 compilerWithOptions(compilerMode.javacopts()).compile(componentFile); in testSetterMethodFails()
156 compilerWithOptions(compilerMode.javacopts()).compile(componentFile); in testInheritedSetterMethodFails()
DMapBindingComponentProcessorTest.java20 import static dagger.internal.codegen.Compilers.compilerWithOptions;
238 compilerWithOptions(compilerMode.javacopts()) in mapBindingsWithEnumKey()
645 compilerWithOptions(compilerMode.javacopts()) in mapBindingsWithStringKey()
856 compilerWithOptions(compilerMode.javacopts()) in mapBindingsWithWrappedKey()
1031 compilerWithOptions(compilerMode.javacopts()) in mapBindingsWithNonProviderValue()
1090 compilerWithOptions(compilerMode.javacopts()) in injectMapWithoutMapBinding()
DElidedFactoriesTest.java20 import static dagger.internal.codegen.Compilers.compilerWithOptions;
115 compilerWithOptions(compilerMode.javacopts()) in simpleComponent()
309 compilerWithOptions(compilerMode.javacopts()) in simpleComponent_injectsProviderOf_dependsOnScoped()
487 compilerWithOptions(compilerMode.javacopts()) in scopedBinding_onlyUsedInSubcomponent()
DAssistedErrorsTest.java20 import static dagger.internal.codegen.Compilers.compilerWithOptions;
62 Compilation compilation = compilerWithOptions(compilerMode.javacopts()).compile(foo); in testAssistedNotWithAssistedInjectionConstructor()
96 Compilation compilation = compilerWithOptions(compilerMode.javacopts()).compile(foo); in testNestedFactoryNotStatic()
DAssistedFactoryTest.java22 import static dagger.internal.codegen.Compilers.compilerWithOptions;
94 compilerWithOptions(compilerMode.javacopts()).compile(foo, bar, fooFactory, component); in testAssistedFactory()
190 compilerWithOptions(compilerMode.javacopts()).compile(foo, bar, fooFactory, component); in testAssistedFactoryCycle()
DOptionalBindingRequestFulfillmentTest.java22 import static dagger.internal.codegen.Compilers.compilerWithOptions;
179 compilerWithOptions( in inlinedOptionalBindings()
271 compilerWithOptions( in requestForFuture()
DScopingValidationTest.java20 import static dagger.internal.codegen.Compilers.compilerWithOptions;
246 compilerWithOptions("-Adagger.fullBindingGraphValidation=ERROR") in componentWithScopeIncludesIncompatiblyScopedBindings_Fail()
264 compilerWithOptions( in fullBindingGraphValidationDoesNotReportForOneScope()
288 compilerWithOptions( in fullBindingGraphValidationDoesNotReportInjectBindings()
853 compilerWithOptions("-Adagger.validateTransitiveComponentDependencies=DISABLED") in componentScopeAncestryMustNotCycle()
DInjectConstructorFactoryGeneratorTest.java23 import static dagger.internal.codegen.Compilers.compilerWithOptions;
655 compilerWithOptions("-Adagger.privateMemberValidation=WARNING").compile(file); in injectConstructorWithCheckedExceptionsWarning()
694 compilerWithOptions("-Adagger.privateMemberValidation=WARNING").compile(file); in privateInjectClassWarning()
737 compilerWithOptions("-Adagger.privateMemberValidation=WARNING").compile(file); in nestedInPrivateInjectClassWarning()
789 compilerWithOptions("-Adagger.privateMemberValidation=WARNING").compile(file); in privateInjectFieldWarning()
820 compilerWithOptions("-Adagger.staticMemberValidation=WARNING").compile(file); in staticInjectFieldWarning()
891 compilerWithOptions("-Adagger.privateMemberValidation=WARNING").compile(file); in privateInjectMethodWarning()
922 compilerWithOptions("-Adagger.staticMemberValidation=WARNING").compile(file); in staticInjectMethodWarning()
DComponentCreatorTestHelper.java19 import static dagger.internal.codegen.Compilers.compilerWithOptions;
90 return compilerWithOptions(compilerMode.javacopts()).compile(files); in compile()
DMapMultibindingValidationTest.java20 import static dagger.internal.codegen.Compilers.compilerWithOptions;
76 compilerWithOptions("-Adagger.fullBindingGraphValidation=ERROR") in duplicateMapKeys_UnwrappedMapKey()
266 compilerWithOptions("-Adagger.fullBindingGraphValidation=ERROR") in inconsistentMapKeyAnnotations()
DComponentValidationTest.java20 import static dagger.internal.codegen.Compilers.compilerWithOptions;
226 compilerWithOptions("-Adagger.validateTransitiveComponentDependencies=DISABLED") in componentDependencyMustNotCycle_Direct()
300 compilerWithOptions("-Adagger.validateTransitiveComponentDependencies=DISABLED") in componentDependencyMustNotCycle_Indirect()

12