/external/guice/extensions/multibindings/test/com/google/inject/multibindings/ |
D | MapBinderTest.java | 138 Key.get(Types.mapOf(String.class, Types.setOf(String.class))), in testAllBindings() 140 Key.get(Types.mapOf(String.class, Types.setOf(Types.providerOf(String.class)))), in testAllBindings() 142 Key.get(Types.setOf(mapEntryOf(String.class, Types.providerOf(String.class)))), in testAllBindings() 188 assertMapVisitor(Key.get(mapOfString), stringType, stringType, setOf(abc, de), BOTH, false, 0, in testMapBinderAggregatesMultipleModules() 214 assertMapVisitor(key, stringType, stringType, setOf(module), BOTH, false, 0, in testMapBinderAggregationForAnnotationInstance() 240 assertMapVisitor(key, stringType, stringType, setOf(module), BOTH, false, 0, in testMapBinderAggregationForAnnotationType() 271 assertMapVisitor(abcKey, stringType, stringType, setOf(module), BOTH, false, 1, in testMapBinderWithMultipleAnnotationValueSets() 273 assertMapVisitor(deKey, stringType, stringType, setOf(module), BOTH, false, 1, in testMapBinderWithMultipleAnnotationValueSets() 306 assertMapVisitor(abcKey, stringType, stringType, setOf(module), BOTH, false, 1, in testMapBinderWithMultipleAnnotationTypeSets() 308 assertMapVisitor(deKey, stringType, stringType, setOf(module), BOTH, false, 1, in testMapBinderWithMultipleAnnotationTypeSets() [all …]
|
D | MultibinderTest.java | 123 Set<String> results = setOf("A", "B", "C", "D", "E"); in testMultibinderAggregatesMultipleModules() 126 assertSetVisitor(setKey, stringType, setOf(abc, de), BOTH, false, 0, in testMultibinderAggregatesMultipleModules() 146 Set<String> results = setOf("A", "B", "C"); in testMultibinderAggregationForAnnotationInstance() 148 assertSetVisitor(setKey, stringType, setOf(module), BOTH, false, 0, in testMultibinderAggregationForAnnotationInstance() 168 Set<String> results = setOf("A", "B", "C"); in testMultibinderAggregationForAnnotationType() 170 assertSetVisitor(setKey, stringType, setOf(module), BOTH, false, 0, in testMultibinderAggregationForAnnotationType() 195 Set<String> abcResults = setOf("A", "B", "C"); in testMultibinderWithMultipleAnnotationValueSets() 197 Set<String> deResults = setOf("D", "E"); in testMultibinderWithMultipleAnnotationValueSets() 199 assertSetVisitor(abcSetKey, stringType, setOf(module), BOTH, false, 1, in testMultibinderWithMultipleAnnotationValueSets() 201 assertSetVisitor(deSetKey, stringType, setOf(module), BOTH, false, 1, in testMultibinderWithMultipleAnnotationValueSets() [all …]
|
D | OptionalBinderTest.java | 164 assertOptionalVisitor(stringKey, setOf(module), VisitType.BOTH, 0, null, null, null); in testOptionalIsAbsentByDefault() 200 setOf(module), in testUsesUserBoundValue() 241 assertOptionalVisitor(stringKey, setOf(module), VisitType.BOTH, 0, instance("a"), null, null); in testSetDefault() 280 assertOptionalVisitor(stringKey, setOf(module), VisitType.BOTH, 0, null, instance("a"), null); in testSetBinding() 323 setOf(module), in testSetBindingOverridesDefault() 379 setOf(module1, module2, module3), in testSpreadAcrossModules() 426 assertOptionalVisitor(stringKey, setOf(module), VisitType.BOTH, 0, instance("a"), null, null); in testExactSameBindingCollapses_defaults() 468 assertOptionalVisitor(stringKey, setOf(module), VisitType.BOTH, 0, null, instance("a"), null); in testExactSameBindingCollapses_actual() 591 setOf(module1, module2, module3), in testQualifiedAggregatesTogether() 633 assertOptionalVisitor(stringKey, setOf(module), VisitType.BOTH, 3, instance("a"), null, null); in testMultipleDifferentOptionals() [all …]
|
D | SpiUtils.java | 26 import static com.google.inject.multibindings.Multibinder.setOf; 171 Key<?> mapOfSet = mapKey.ofType(mapOf(keyType, setOf(valueType))); in mapInjectorTest() 172 Key<?> setOfEntry = mapKey.ofType(setOf(entryOfProviderOf(keyType, valueType))); in mapInjectorTest() 284 Key<?> mapOfSet = mapKey.ofType(mapOf(keyType, setOf(valueType))); in mapModuleTest() 285 Key<?> setOfEntry = mapKey.ofType(setOf(entryOfProviderOf(keyType, valueType))); in mapModuleTest()
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | TestUtil.java | 23 public static <T> Set<T> setOf(T... elements) { in setOf() method in TestUtil 24 return setOf(Arrays.asList(elements)); in setOf() 27 public static <T> Set<T> setOf(Collection<T> elements) { in setOf() method in TestUtil
|
D | CertificatePinnerTest.java | 25 import static com.squareup.okhttp.TestUtil.setOf; 226 Set<ByteString> expectedPins = setOf(certA1PinBase64, certB1PinBase64); in successfulFindMatchingPins() 239 Set<ByteString> expectedPins = setOf(certA1PinBase64, certB1PinBase64); in successfulFindMatchingPinsForWildcardAndDirectCertificates()
|
/external/guice/core/test/com/google/inject/ |
D | TypeLiteralTypeResolutionTest.java | 25 import static com.google.inject.util.Types.setOf; 66 Type entryStringInteger = setOf(newParameterizedTypeWithOwner( 166 assertEquals(setOf(arrayOf(Short.class)), resolver.getReturnType(getSetOfArray).getType()); in testArrays() 275 typeResolver = TypeLiteral.get(Types.setOf(Integer.class)); in testOnObject()
|
/external/guice/core/src/com/google/inject/util/ |
D | Types.java | 109 public static ParameterizedType setOf(Type elementType) { in setOf() method in Types
|
/external/guice/extensions/multibindings/src/com/google/inject/multibindings/ |
D | Multibinder.java | 178 key.ofType(setOf(key.getTypeLiteral()))); in newRealSetBinder() 193 static <T> TypeLiteral<Set<T>> setOf(TypeLiteral<T> elementType) { in setOf() method in Multibinder 194 Type type = Types.setOf(elementType.getType()); in setOf()
|
D | MapBinder.java | 22 import static com.google.inject.multibindings.Multibinder.setOf; 229 Types.mapOf(keyType.getType(), Types.setOf(Types.providerOf(valueType.getType())))); in mapOfSetOfProviderOf() 338 this.multimapKey = mapKey.ofType(mapOf(keyType, setOf(valueType))); in RealMapBinder()
|
/external/guice/core/test/com/google/inject/util/ |
D | TypesTest.java | 77 assertEqualsBothWays(setString, Types.setOf(String.class)); in testListSetMap()
|
/external/guice/core/test/com/google/inject/spi/ |
D | ProviderMethodsTest.java | 229 injector.getInstance(Key.get(Types.setOf(String.class)))); 234 injector.getInstance(Key.get(Types.setOf(Integer.class))));
|