/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/ |
D | CodedInputStreamTest.java | 94 CodedInputStream input = CodedInputStream.newInstance(data); in assertReadVarint() 97 input = CodedInputStream.newInstance(data); in assertReadVarint() 103 input = CodedInputStream.newInstance( in assertReadVarint() 107 input = CodedInputStream.newInstance( in assertReadVarint() 129 CodedInputStream input = CodedInputStream.newInstance(data); in assertReadVarintFailure() 137 input = CodedInputStream.newInstance(data); in assertReadVarintFailure() 182 CodedInputStream input = CodedInputStream.newInstance(data); in assertReadLittleEndian32() 188 input = CodedInputStream.newInstance( in assertReadLittleEndian32() 201 CodedInputStream input = CodedInputStream.newInstance(data); in assertReadLittleEndian64() 207 input = CodedInputStream.newInstance( in assertReadLittleEndian64() [all …]
|
D | CodedOutputStreamTest.java | 85 CodedOutputStream output = CodedOutputStream.newInstance(rawOutput); in assertWriteVarint() 97 CodedOutputStream output = CodedOutputStream.newInstance(rawOutput); in assertWriteVarint() 113 CodedOutputStream.newInstance(rawOutput, blockSize); in assertWriteVarint() 122 CodedOutputStream.newInstance(rawOutput, blockSize); in assertWriteVarint() 167 CodedOutputStream output = CodedOutputStream.newInstance(rawOutput); in assertWriteLittleEndian32() 175 output = CodedOutputStream.newInstance(rawOutput, blockSize); in assertWriteLittleEndian32() 189 CodedOutputStream output = CodedOutputStream.newInstance(rawOutput); in assertWriteLittleEndian64() 197 output = CodedOutputStream.newInstance(rawOutput, blockSize); in assertWriteLittleEndian64() 290 CodedOutputStream.newInstance(rawOutput, blockSize); in testWriteWholeMessage()
|
D | ParserTest.java | 81 CodedInputStream.newInstance(data), registry)); in assertRoundTripEquals() 98 CodedInputStream.newInstance(data))); in assertRoundTripEquals() 137 CodedInputStream.newInstance(data))); in testParsePartial() 165 parser.parseFrom(CodedInputStream.newInstance( in testParsePartial() 202 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testOptimizeForSize() 258 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testParsingMerge()
|
D | WireFormatTest.java | 115 CodedOutputStream codedOutput = CodedOutputStream.newInstance(outputStream); in testSerializationPackedWithoutGetSerializedSize() 222 ExtensionRegistry result = ExtensionRegistry.newInstance(); in getTestFieldOrderingsRegistry() 333 ExtensionRegistry extensionRegistry = ExtensionRegistry.newInstance(); in testParseMessageSetWithFlag() 396 ExtensionRegistry extensionRegistry = ExtensionRegistry.newInstance(); in testParseMessageSetExtensionWithFlag() 435 ExtensionRegistry extensionRegistry = ExtensionRegistry.newInstance(); in testMergeLazyMessageSetExtensionWithFlag()
|
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | ParseExceptionsTest.java | 99 return DescriptorProto.parseFrom(in, ExtensionRegistry.newInstance()); in message_parseFrom_InputStreamAndExtensionRegistry() 111 return DescriptorProto.parseFrom(CodedInputStream.newInstance(in)); in message_parseFrom_CodedInputStream() 124 CodedInputStream.newInstance(in), ExtensionRegistry.newInstance()); in message_parseFrom_CodedInputStreamAndExtensionRegistry() 148 return DescriptorProto.parseDelimitedFrom(in, ExtensionRegistry.newInstance()); in message_parseDelimitedFrom_InputStreamAndExtensionRegistry() 173 .mergeFrom(in, ExtensionRegistry.newInstance()) in messageBuilder_mergeFrom_InputStreamAndExtensionRegistry() 186 return DescriptorProto.newBuilder().mergeFrom(CodedInputStream.newInstance(in)).build(); in messageBuilder_mergeFrom_CodedInputStream() 199 .mergeFrom(CodedInputStream.newInstance(in), ExtensionRegistry.newInstance()) in messageBuilder_mergeFrom_CodedInputStreamAndExtensionRegistry() 222 CodedOutputStream cos = CodedOutputStream.newInstance(body); in messageBuilder_mergeDelimitedFrom_InputStream_malformed() 244 builder.mergeDelimitedFrom(in, ExtensionRegistry.newInstance()); in messageBuilder_mergeDelimitedFrom_InputStreamAndExtensionRegistry()
|
D | AbstractSchemaTest.java | 58 Protobuf.getInstance().registerSchemaOverride(schema.newInstance().getClass(), schema); in registerSchemas() 78 Reader reader = BinaryReader.newInstance(invalidUtf8Bytes, /* bufferIsImmutable= */ true); in invalidUtf8StringParsing() 80 T newMsg = schema.newInstance(); in invalidUtf8StringParsing() 100 T message = schema.newInstance(); in mergeFromByteArrayFastPathMayThrowIndexOutOfBoundsException() 120 M newMsg = schema.newInstance(); in roundtrip() 126 M newMsg = schema.newInstance(); in roundtrip() 127 Reader reader = BinaryReader.newInstance(ByteBuffer.wrap(serializedBytes), true); in roundtrip()
|
D | CodedInputStreamTest.java | 63 return CodedInputStream.newInstance(data); in newDecoder() 69 return CodedInputStream.newInstance(ByteBuffer.wrap(data)); in newDecoder() 78 return CodedInputStream.newInstance(buffer); in newDecoder() 84 return CodedInputStream.newInstance(new SmallBlockInputStream(data, blockSize)); in newDecoder() 101 return CodedInputStream.newInstance(input); in newDecoder() 118 return CodedInputStream.newInstance(new IterableByteBufferInputStream(input)); in newDecoder() 455 CodedInputStream input = CodedInputStream.newInstance(bytes, 1); // Tiny buffer in testSkipRawBytesActuallySkips() 481 CodedInputStream.newInstance(is).skipRawBytes(Integer.MAX_VALUE); in testSkipMaliciouslyHugeBlob() 517 CodedOutputStream output = CodedOutputStream.newInstance(rawOutput); in testReadMaliciouslyLargeBlob() 667 CodedInputStream.newInstance( in testSizeLimit() [all …]
|
D | ExtensionRegistryFactoryTest.java | 106 ExtensionRegistryLite registry1 = ExtensionRegistryLite.newInstance(); in testAdd() 110 ExtensionRegistryLite registry2 = ExtensionRegistryLite.newInstance(); in testAdd() 140 ExtensionRegistryLite registry1 = ExtensionRegistryLite.newInstance().getUnmodifiable(); in testAdd_immutable() 152 ExtensionRegistryLite registry2 = ExtensionRegistryLite.newInstance().getUnmodifiable(); in testAdd_immutable() 192 ExtensionRegistryLite registry = ExtensionRegistryLite.newInstance(); in testAdd() 203 ExtensionRegistryLite registry = ExtensionRegistryLite.newInstance().getUnmodifiable(); in testAdd_immutable() 246 test.getMethod(testName).invoke(test.getDeclaredConstructor().newInstance()); in runTestMethod()
|
D | CodedOutputStreamTest.java | 66 stream = CodedOutputStream.newInstance(output, size); in OutputStreamCoder() 91 stream = CodedOutputStream.newInstance(bytes); in ArrayCoder() 123 stream = CodedOutputStream.newInstance(buffer); in NioHeapCoder() 448 CodedOutputStream codedStream = CodedOutputStream.newInstance(buffer); 481 CodedOutputStream codedStream = CodedOutputStream.newInstance(outputStream); 546 CodedOutputStream outputWithStream = CodedOutputStream.newInstance(new ByteArrayOutputStream()); 547 CodedOutputStream outputWithArray = CodedOutputStream.newInstance(new byte[10000]); 549 CodedOutputStream.newInstance(ByteBuffer.allocate(10000)); 563 CodedOutputStream outputWithArray = CodedOutputStream.newInstance(new byte[notEnoughBytes]); 565 CodedOutputStream.newInstance(ByteBuffer.allocate(notEnoughBytes)); [all …]
|
D | CodedAdapterTest.java | 91 CodedOutputStreamWriter.forCodedOutput(CodedOutputStream.newInstance(out)); in toByteArray() 100 T msg = schema.newInstance(); in fromByteArray() 103 CodedInputStreamReader.forCodedInput(CodedInputStream.newInstance(data)), in fromByteArray()
|
D | ExperimentalSerializationUtil.java | 91 T msg = schema.newInstance(); in fromByteArray() 93 msg, BinaryReader.newInstance(ByteBuffer.wrap(data), true), extensionRegistry); in fromByteArray() 105 T msg = schema.newInstance(); in fromByteArrayFastPath()
|
D | ParserTest.java | 74 assertMessageEquals(message, parser.parseFrom(CodedInputStream.newInstance(data), registry)); in assertRoundTripEquals() 92 assertMessageEquals(message, parser.parseFrom(CodedInputStream.newInstance(data))); in assertRoundTripEquals() 128 assertEquals(partialMessage, parser.parsePartialFrom(CodedInputStream.newInstance(data))); in assertParsePartial() 156 parser.parseFrom(CodedInputStream.newInstance(partialMessage.toByteArray())); in assertParsePartial() 201 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testOptimizeForSize() 265 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testParsingMerge()
|
D | ArrayDecodersTest.java | 166 UnknownFieldSetLite.newInstance(), in testException_decodeUnknownField() 180 TAG, badBytes, 0, badBytes.length, UnknownFieldSetLite.newInstance(), registers); in testException_decodeHugeField() 217 CodedOutputStream codedOutput = CodedOutputStream.newInstance(byteStringOutput); in generateNegativeLength()
|
D | WireFormatTest.java | 121 CodedOutputStream codedOutput = CodedOutputStream.newInstance(outputStream); in testSerializationPackedWithoutGetSerializedSize() 222 ExtensionRegistry result = ExtensionRegistry.newInstance(); in getTestFieldOrderingsRegistry() 245 ExtensionRegistry result = ExtensionRegistry.newInstance(); in getTestExtensionInsideTableRegistry() 343 ExtensionRegistry extensionRegistry = ExtensionRegistry.newInstance(); in testParseMessageSetWithFlag() 399 ExtensionRegistry extensionRegistry = ExtensionRegistry.newInstance(); in testParseMessageSetExtensionWithFlag() 430 ExtensionRegistry extensionRegistry = ExtensionRegistry.newInstance(); in testMergeLazyMessageSetExtensionWithFlag() 463 ExtensionRegistry extensionRegistry = ExtensionRegistry.newInstance(); in testMergeMessageSetExtensionWithFlag()
|
D | Proto2ExtensionLookupSchemaTest.java | 58 extensionRegistry = ExtensionRegistry.newInstance(); in setup() 83 UnknownFieldSetLite unknowns = UnknownFieldSetLite.newInstance(); in testUnknownEnum() 121 CodedOutputStream codedOutput = CodedOutputStream.newInstance(output); in testUnknownEnum()
|
D | ParserLiteTest.java | 55 assertEquals(message, parser.parseFrom(CodedInputStream.newInstance(data), registry)); in assertRoundTripEquals() 73 assertEquals(message, parser.parseFrom(CodedInputStream.newInstance(data))); in assertRoundTripEquals() 176 ExtensionRegistryLite registry = ExtensionRegistryLite.newInstance(); in testParsingMergeLite()
|
/third_party/node/test/parallel/ |
D | test-console-methods.js | 10 const newInstance = new Console(process.stdout); constant 50 assert.strictEqual(newInstance[method].name, method); 52 assert.strictEqual(newInstance[method].name, alternateNames[method]); 60 assert.throws(() => new newInstance[method](), err); 62 assert.throws(() => Reflect.construct({}, [], newInstance[method]), err);
|
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | AbstractMessageLite.java | 70 final CodedOutputStream output = CodedOutputStream.newInstance(result); in toByteArray() 82 final CodedOutputStream codedOutput = CodedOutputStream.newInstance(output, bufferSize); in writeTo() 93 final CodedOutputStream codedOutput = CodedOutputStream.newInstance(output, bufferSize); in writeDelimitedTo() 221 final CodedInputStream input = CodedInputStream.newInstance(data, off, len); in mergeFrom() 246 final CodedInputStream input = CodedInputStream.newInstance(data, off, len); in mergeFrom() 259 final CodedInputStream codedInput = CodedInputStream.newInstance(input); in mergeFrom() 268 final CodedInputStream codedInput = CodedInputStream.newInstance(input); in mergeFrom()
|
D | NewInstanceSchemaFull.java | 35 public Object newInstance(Object defaultInstance) { in newInstance() method in NewInstanceSchemaFull 37 .newInstance(GeneratedMessageV3.UnusedPrivateParameter.INSTANCE); in newInstance()
|
D | AbstractParser.java | 133 CodedInputStream input = CodedInputStream.newInstance(data); in parseFrom() 157 CodedInputStream input = CodedInputStream.newInstance(data, off, len); in parsePartialFrom() 214 CodedInputStream codedInput = CodedInputStream.newInstance(input); in parsePartialFrom()
|
/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/ |
D | RubyBuilder.java | 90 RubyDescriptor msgdef = (RubyDescriptor) cDescriptor.newInstance(context, Block.NULL_BLOCK); in addMessage() 91 … IRubyObject ctx = cMessageBuilderContext.newInstance(context, msgdef, this, Block.NULL_BLOCK); in addMessage() 118 …RubyEnumDescriptor enumDef = (RubyEnumDescriptor) cEnumDescriptor.newInstance(context, Block.NULL_… in addEnum() 119 IRubyObject ctx = cEnumBuilderContext.newInstance(context, enumDef, Block.NULL_BLOCK); in addEnum()
|
D | RubyMessageBuilderContext.java | 161 … RubyDescriptor mapentryDesc = (RubyDescriptor) cDescriptor.newInstance(context, Block.NULL_BLOCK); in map() 167 …RubyFieldDescriptor keyField = (RubyFieldDescriptor) cFieldDescriptor.newInstance(context, Block.N… in map() 175 …RubyFieldDescriptor valueField = (RubyFieldDescriptor) cFieldDescriptor.newInstance(context, Block… in map() 194 cOneofDescriptor.newInstance(context, Block.NULL_BLOCK); in oneof() 196 cOneofBuilderContext.newInstance(context, oneofdef, Block.NULL_BLOCK); in oneof()
|
D | RubyMessage.java | 112 … value = (IRubyObject) typeClass.newInstance(context, value, Block.NULL_BLOCK); in initialize() 277 RubyMessage dup = (RubyMessage) metaClass.newInstance(context, Block.NULL_BLOCK); in dup() 330 RubyMessage ret = (RubyMessage) ((RubyClass) recv).newInstance(context, Block.NULL_BLOCK); in decode() 362 RubyMessage ret = (RubyMessage) ((RubyClass) recv).newInstance(context, Block.NULL_BLOCK); in decodeJson() 437 RubyMessage copy = (RubyMessage) metaClass.newInstance(context, Block.NULL_BLOCK); in deepCopy() 592 RubyMessage msg = (RubyMessage) typeClass.newInstance(context, Block.NULL_BLOCK); in wrapField() 650 … RubyMessage kvMessage = (RubyMessage) kvClass.newInstance(context, Block.NULL_BLOCK); in getField() 767 row = (IRubyObject) typeClass.newInstance(context, row, Block.NULL_BLOCK); in rubyToRepeatedField() 785 return (RubyMap) cMap.newInstance(context, keyType, valueType, in newMapForField() 788 return (RubyMap) cMap.newInstance(context, keyType, valueType, Block.NULL_BLOCK); in newMapForField()
|
/third_party/protobuf/benchmarks/java/src/main/java/com/google/protobuf/ |
D | ProtoCaliperBenchmark.java | 35 @Override ExtensionRegistry getExtensionRegistry() { return ExtensionRegistry.newInstance(); } in getExtensionRegistry() 43 @Override ExtensionRegistry getExtensionRegistry() { return ExtensionRegistry.newInstance(); } in getExtensionRegistry() 51 @Override ExtensionRegistry getExtensionRegistry() { return ExtensionRegistry.newInstance(); } in getExtensionRegistry() 60 ExtensionRegistry extensions = ExtensionRegistry.newInstance(); in getExtensionRegistry() 80 ExtensionRegistry extensions = ExtensionRegistry.newInstance(); in getExtensionRegistry()
|
/third_party/protobuf/conformance/ |
D | ConformanceJava.java | 115 return parser.parseFrom(CodedInputStream.newInstance(buffer), extensions); in decode() 123 CodedInputStream.newInstance(bytes.asReadOnlyByteBuffer()), extensions); in decode() 133 return parser.parseFrom(CodedInputStream.newInstance(buffer), extensions); in decode() 144 CodedInputStream.newInstance(buffer.asReadOnlyBuffer()), extensions); in decode() 248 ExtensionRegistry extensions = ExtensionRegistry.newInstance(); in doTest() 256 ExtensionRegistry extensions = ExtensionRegistry.newInstance(); in doTest()
|