Home
last modified time | relevance | path

Searched refs:assertReadVarint (Results 1 – 2 of 2) sorted by relevance

/external/protobuf/objectivec/Tests/
DGPBCodedInputStreamTests.m92 - (void)assertReadVarint:(NSData*)data value:(int64_t)value {
132 [self assertReadVarint:bytes(0x00) value:0];
133 [self assertReadVarint:bytes(0x01) value:1];
134 [self assertReadVarint:bytes(0x7f) value:127];
136 [self assertReadVarint:bytes(0xa2, 0x74) value:(0x22 << 0) | (0x74 << 7)];
138 [self assertReadVarint:bytes(0xbe, 0xf7, 0x92, 0x84, 0x0b)
144 [self assertReadVarint:bytes(0xbe, 0xf7, 0x92, 0x84, 0x1b)
148 [self assertReadVarint:bytes(0x80, 0xe6, 0xeb, 0x9c, 0xc3, 0xc9, 0xa4, 0x49)
154 assertReadVarint:bytes(0x9b, 0xa8, 0xf9, 0xc2, 0xbb, 0xd6, 0x80, 0x85,
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DCodedInputStreamTest.java105 private void assertReadVarint(byte[] data, long value) throws Exception { in assertReadVarint() method in CodedInputStreamTest
198 assertReadVarint(bytes(0x00), 0); in testReadVarint()
199 assertReadVarint(bytes(0x01), 1); in testReadVarint()
200 assertReadVarint(bytes(0x7f), 127); in testReadVarint()
202 assertReadVarint(bytes(0xa2, 0x74), (0x22 << 0) | (0x74 << 7)); in testReadVarint()
204 assertReadVarint(bytes(0xbe, 0xf7, 0x92, 0x84, 0x0b), in testReadVarint()
210 assertReadVarint(bytes(0xbe, 0xf7, 0x92, 0x84, 0x1b), in testReadVarint()
214 assertReadVarint( in testReadVarint()
219 assertReadVarint( in testReadVarint()