Home
last modified time | relevance | path

Searched refs:ReadProtoOpener (Results 1 – 5 of 5) sorted by relevance

/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/openers/
DReadProtoOpenerTest.java61 ReadProtoOpener<FooProto> opener = ReadProtoOpener.create(FooProto.parser()); in create_fromMessageParser_returnsOpenerWithCorrectGenericType()
65 unusedToCheckCompilation = storage.open(uri, ReadProtoOpener.create(FooProto.parser())); in create_fromMessageParser_returnsOpenerWithCorrectGenericType()
73 ReadProtoOpener<FooProto> opener = ReadProtoOpener.create(TEST_PROTO); in create_fromMessageInstance_returnsOpenerWithCorrectGenericType()
77 unusedToCheckCompilation = storage.open(uri, ReadProtoOpener.create(TEST_PROTO)); in create_fromMessageInstance_returnsOpenerWithCorrectGenericType()
85 assertThat(storage.open(uri, ReadProtoOpener.create(FooProto.parser()))).isEqualTo(TEST_PROTO); in open_readsFullProtoFromFile()
86 assertThat(storage.open(uri, ReadProtoOpener.create(TEST_PROTO))).isEqualTo(TEST_PROTO); in open_readsFullProtoFromFile()
95 assertThat(storage.open(uri, ReadProtoOpener.create(FooProto.parser()))).isEqualTo(emptyProto); in open_readsEmptyProtoFromFile()
103 assertThat(storage.open(uri, ReadProtoOpener.create(FooProto.parser()))).isEqualTo(TEST_PROTO); in open_invokesTransforms()
113 () -> storage.open(uri, ReadProtoOpener.create(FooProto.parser()))); in open_throwsIOExceptionOnBadParse()
122 ReadProtoOpener<ExtendableProto> opener = in withRegistry_readsExtension()
[all …]
DWriteProtoOpenerTest.java62 FooProto actual = storage.open(uri, ReadProtoOpener.create(FooProto.parser())); in writesProto()
71 FooProto actual = storage.open(uri, ReadProtoOpener.create(FooProto.parser())); in writesProto_withTransform()
88 FooProto actual = storage.open(uri, ReadProtoOpener.create(FooProto.parser())); in failedWrite_noChange()
104 FooProto actual = storage.open(uri, ReadProtoOpener.create(FooProto.parser())); in failedRename_noChange()
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/file/openers/
DReadProtoOpener.java39 public final class ReadProtoOpener<T extends MessageLite> implements Opener<T> { class
44 private ReadProtoOpener(Parser<T> parser) { in ReadProtoOpener() method in ReadProtoOpener
49 public static <T extends MessageLite> ReadProtoOpener<T> create(Parser<T> parser) { in create()
50 return new ReadProtoOpener<T>(parser); in create()
57 public static <T extends MessageLite> ReadProtoOpener<T> create(T message) { in create()
60 return new ReadProtoOpener<T>(parser); in create()
65 public ReadProtoOpener<T> withExtensionRegistry(ExtensionRegistryLite registry) { in withExtensionRegistry()
DBUILD102 "ReadProtoOpener.java",
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/populator/
DManifestConfigFileParser.java24 import com.google.android.libraries.mobiledatadownload.file.openers.ReadProtoOpener;
56 … fileStorage.open(fileUri, ReadProtoOpener.create(ManifestConfig.parser())); in parse()