/third_party/protobuf/php/tests/ |
D | ArrayTest.php | 23 $this->assertSame(MAX_INT32, $arr[0]); 25 $this->assertSame(MIN_INT32, $arr[1]); 28 $this->assertSame(1, $arr[2]); 30 $this->assertSame(MAX_INT32, $arr[3]); 32 $this->assertSame(MAX_INT32, $arr[4]); 35 $this->assertSame(2, $arr[5]); 37 $this->assertSame(3, $arr[6]); 39 $this->assertSame(MAX_INT32, $arr[7]); 45 $this->assertSame(0, $arr[$i]); 50 $this->assertSame(MAX_INT32, $arr[0]); [all …]
|
D | PhpImplementationTest.php | 37 $this->assertSame(1, $value); 42 $this->assertSame(-1, $value); 47 $this->assertSame(-1, $value); 57 $this->assertSame(1, $value); 62 $this->assertSame(-1, $value); 67 $this->assertSame(-1, $value); 116 $this->assertSame(0, $value); 120 $this->assertSame(-1, $value); 124 $this->assertSame(1, $value); 149 $this->assertSame(0x78563412, $value); [all …]
|
D | WellKnownTest.php | 65 $this->assertSame( 67 $this->assertSame("type.googleapis.com/foo.TestMessage", 70 $this->assertSame($any, $any->setValue($data)); 71 $this->assertSame($data, $any->getValue()); 81 $this->assertSame($data, $any->getValue()); 82 $this->assertSame("type.googleapis.com/foo.TestMessage", $any->getTypeUrl()); 125 $this->assertSame("a", $m->getName()); 128 $this->assertSame(1, count($m->getMethods())); 131 $this->assertSame(1, count($m->getOptions())); 134 $this->assertSame("a", $m->getVersion()); [all …]
|
D | DescriptorsTest.php | 81 $this->assertSame('Descriptors\TestDescriptorsMessage', $class); 84 $this->assertSame('descriptors.TestDescriptorsMessage', $desc->getFullName()); 85 $this->assertSame($class, $desc->getClass()); 88 $this->assertSame(7, $desc->getFieldCount()); 91 $this->assertSame(1, $desc->getOneofDeclCount()); 98 $this->assertSame('Foo\TestMessage', $class); 102 $this->assertSame('Bar\TestInclude', $subdesc->getClass()); 126 $this->assertSame('ZERO', $enumDescMap[0]); 127 $this->assertSame('ONE', $enumDescMap[1]); 129 $this->assertSame(2, $enumDesc->getValueCount()); [all …]
|
D | test_base.php | 22 $this->assertSame(-42, $m->getOptionalInt32()); 23 $this->assertSame(42, $m->getOptionalUint32()); 24 $this->assertSame(-44, $m->getOptionalSint32()); 25 $this->assertSame(46, $m->getOptionalFixed32()); 26 $this->assertSame(-46, $m->getOptionalSfixed32()); 27 $this->assertSame(1.5, $m->getOptionalFloat()); 28 $this->assertSame(1.6, $m->getOptionalDouble()); 29 $this->assertSame(true, $m->getOptionalBool()); 30 $this->assertSame('a', $m->getOptionalString()); 31 $this->assertSame('bbbb', $m->getOptionalBytes()); [all …]
|
D | MapFieldTest.php | 21 $this->assertSame(MAX_INT32, $arr[MAX_INT32]); 23 $this->assertSame(MIN_INT32, $arr[MIN_INT32]); 34 $this->assertSame(1, $arr[1]); 35 $this->assertSame(2, $arr[2]); 37 $this->assertSame(MAX_INT32, $arr[MAX_INT32]); 39 $this->assertSame(MIN_INT32, $arr[MIN_INT32]); 49 $this->assertSame(2, $arr[2]); 51 $this->assertSame(3, $arr[3]); 53 $this->assertSame(MAX_INT32, $arr[MAX_INT32]); 68 $this->assertSame($key, $val); [all …]
|
D | EncodeDecodeTest.php | 62 $this->assertSame("true", $m->serializeToJsonString()); 76 $this->assertSame("1.5", $m->serializeToJsonString()); 90 $this->assertSame("1.5", $m->serializeToJsonString()); 104 $this->assertSame("1", $m->serializeToJsonString()); 111 $this->assertSame(12345, $m->getRepeatedField()[0]->getValue()); 125 $this->assertSame("1", $m->serializeToJsonString()); 146 $this->assertSame("\"1\"", $m->serializeToJsonString()); 167 $this->assertSame("\"1\"", $m->serializeToJsonString()); 174 $this->assertSame("a", $m->getValue()); 181 $this->assertSame("\"a\"", $m->serializeToJsonString()); [all …]
|
D | GeneratedClassTest.php | 38 $this->assertSame(1, $m->getOptionalInt32()); 51 $this->assertSame(MAX_INT32, $m->getOptionalInt32()); 53 $this->assertSame(MIN_INT32, $m->getOptionalInt32()); 57 $this->assertSame(1, $m->getOptionalInt32()); 59 $this->assertSame(MAX_INT32, $m->getOptionalInt32()); 61 $this->assertSame(MIN_INT32, $m->getOptionalInt32()); 65 $this->assertSame(2, $m->getOptionalInt32()); 67 $this->assertSame(3, $m->getOptionalInt32()); 69 $this->assertSame(MAX_INT32, $m->getOptionalInt32()); 71 $this->assertSame(MIN_INT32, $m->getOptionalInt32()); [all …]
|
/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/ |
D | LazyStringArrayListTest.java | 61 assertSame(STRING_A, list.get(0)); in testJustStrings() 62 assertSame(STRING_B, list.get(1)); in testJustStrings() 63 assertSame(STRING_C, list.get(2)); in testJustStrings() 66 assertSame(STRING_C, list.get(1)); in testJustStrings() 69 assertSame(STRING_A, list.get(0)); in testJustStrings() 70 assertSame(STRING_C, list.get(1)); in testJustStrings() 80 assertSame(BYTE_STRING_A, list.getByteString(0)); in testJustByteString() 81 assertSame(BYTE_STRING_B, list.getByteString(1)); in testJustByteString() 82 assertSame(BYTE_STRING_C, list.getByteString(2)); in testJustByteString() 85 assertSame(BYTE_STRING_A, list.getByteString(0)); in testJustByteString() [all …]
|
D | LazyStringEndToEndTest.java | 98 assertSame(optional, proto.getOptionalStringBytes()); in testNoStringCachingIfOnlyBytesAccessed() 99 assertSame(optional, proto.toBuilder().getOptionalStringBytes()); in testNoStringCachingIfOnlyBytesAccessed() 103 assertSame(repeated0, proto.getRepeatedStringBytes(0)); in testNoStringCachingIfOnlyBytesAccessed() 104 assertSame(repeated1, proto.getRepeatedStringBytes(1)); in testNoStringCachingIfOnlyBytesAccessed() 105 assertSame(repeated0, proto.toBuilder().getRepeatedStringBytes(0)); in testNoStringCachingIfOnlyBytesAccessed() 106 assertSame(repeated1, proto.toBuilder().getRepeatedStringBytes(1)); in testNoStringCachingIfOnlyBytesAccessed()
|
D | NestedBuildersTest.java | 111 assertSame(wheels.get(i), vehicleBuilder.getWheel(i)); in testMessagesAreCached() 119 assertSame(wheels.get(i), vehicleBuilder.getWheel(i)); in testMessagesAreCached() 129 assertSame(wheels.get(i), vehicleBuilder.getWheel(i)); in testMessagesAreCached() 174 assertSame(vehicle1.getWheelList(), vehicle2.getWheelList()); in testMerge() 177 assertSame(vehicle1.getWheelList(), vehicle3.getWheelList()); in testMerge()
|
D | ServiceTest.java | 103 assertSame(mockService.getRequestPrototype(fooDescriptor), in testGetPrototype() 105 assertSame(mockService.getResponsePrototype(fooDescriptor), in testGetPrototype() 107 assertSame(mockService.getRequestPrototype(barDescriptor), in testGetPrototype() 109 assertSame(mockService.getResponsePrototype(barDescriptor), in testGetPrototype() 165 assertSame(fooResponse, stub.foo(mockController, fooRequest)); in testBlockingStub() 166 assertSame(barResponse, stub.bar(mockController, barRequest)); in testBlockingStub()
|
D | UnmodifiableLazyStringListTest.java | 58 assertSame(STRING_A, list.get(0)); in testReadOnlyMethods() 59 assertSame(STRING_B, list.get(1)); in testReadOnlyMethods() 60 assertSame(STRING_C, list.get(2)); in testReadOnlyMethods()
|
D | GeneratedMessageTest.java | 81 assertSame(TestAllTypes.getDefaultInstance(), in testDefaultInstance() 83 assertSame(TestAllTypes.getDefaultInstance(), in testDefaultInstance() 797 assertSame(ForeignMessage.getDefaultInstance(), in testMessageOrBuilderGetters() 801 assertSame(subBuilder, builder.getOptionalForeignMessageOrBuilder()); in testMessageOrBuilderGetters() 810 assertSame(m0, builder.getRepeatedForeignMessageOrBuilder(0)); in testMessageOrBuilderGetters() 811 assertSame(m1, builder.getRepeatedForeignMessageOrBuilder(1)); in testMessageOrBuilderGetters() 812 assertSame(m2, builder.getRepeatedForeignMessageOrBuilder(2)); in testMessageOrBuilderGetters() 815 assertSame(b0, builder.getRepeatedForeignMessageOrBuilder(0)); in testMessageOrBuilderGetters() 816 assertSame(b1, builder.getRepeatedForeignMessageOrBuilder(1)); in testMessageOrBuilderGetters() 817 assertSame(m2, builder.getRepeatedForeignMessageOrBuilder(2)); in testMessageOrBuilderGetters() [all …]
|
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | LazyStringArrayListTest.java | 64 assertSame(STRING_A, list.get(0)); in testJustStrings() 65 assertSame(STRING_B, list.get(1)); in testJustStrings() 66 assertSame(STRING_C, list.get(2)); in testJustStrings() 69 assertSame(STRING_C, list.get(1)); in testJustStrings() 72 assertSame(STRING_A, list.get(0)); in testJustStrings() 73 assertSame(STRING_C, list.get(1)); in testJustStrings() 80 assertSame(byteStringList.get(0), list.getByteString(0)); in testJustStrings() 81 assertSame(byteStringList.get(1), list.getByteString(1)); in testJustStrings() 91 assertSame(BYTE_STRING_A, list.getByteString(0)); in testJustByteString() 92 assertSame(BYTE_STRING_B, list.getByteString(1)); in testJustByteString() [all …]
|
D | LazyStringEndToEndTest.java | 99 assertSame(a, proto.getOptionalString()); in testCaching() 100 assertSame(b, proto.getRepeatedString(0)); in testCaching() 101 assertSame(c, proto.getRepeatedString(1)); in testCaching() 107 assertSame(a, proto.getOptionalString()); in testCaching() 108 assertSame(b, proto.getRepeatedString(0)); in testCaching() 109 assertSame(c, proto.getRepeatedString(1)); in testCaching() 115 assertSame(optional, proto.getOptionalStringBytes()); in testNoStringCachingIfOnlyBytesAccessed() 116 assertSame(optional, proto.toBuilder().getOptionalStringBytes()); in testNoStringCachingIfOnlyBytesAccessed() 120 assertSame(repeated0, proto.getRepeatedStringBytes(0)); in testNoStringCachingIfOnlyBytesAccessed() 121 assertSame(repeated1, proto.getRepeatedStringBytes(1)); in testNoStringCachingIfOnlyBytesAccessed() [all …]
|
D | UnmodifiableLazyStringListTest.java | 57 assertSame(STRING_A, list.get(0)); in testReadOnlyMethods() 58 assertSame(STRING_B, list.get(1)); in testReadOnlyMethods() 59 assertSame(STRING_C, list.get(2)); in testReadOnlyMethods() 65 assertSame(list.getByteString(0), byteStringList.get(0)); in testReadOnlyMethods() 66 assertSame(list.getByteString(1), byteStringList.get(1)); in testReadOnlyMethods() 67 assertSame(list.getByteString(2), byteStringList.get(2)); in testReadOnlyMethods()
|
D | SingleFieldBuilderV3Test.java | 50 assertSame(TestAllTypes.getDefaultInstance(), builder.getMessage()); in testBasicUseAndInvalidations() 88 assertSame(builder.getMessage(), builder.getMessage()); in testSetMessage() 99 assertSame(TestAllTypes.getDefaultInstance(), builder.getMessage()); in testClear() 104 assertSame(TestAllTypes.getDefaultInstance(), builder.getMessage()); in testClear() 115 assertSame(TestAllTypes.getDefaultInstance(), builder.getMessage()); in testMerge()
|
D | NestedBuildersTest.java | 93 assertSame(wheels.get(i), vehicleBuilder.getWheel(i)); in testMessagesAreCached() 101 assertSame(wheels.get(i), vehicleBuilder.getWheel(i)); in testMessagesAreCached() 110 assertSame(wheels.get(i), vehicleBuilder.getWheel(i)); in testMessagesAreCached() 146 assertSame(vehicle1.getWheelList(), vehicle2.getWheelList()); in testMerge() 149 assertSame(vehicle1.getWheelList(), vehicle3.getWheelList()); in testMerge()
|
D | TypeRegistryTest.java | 34 import static org.junit.Assert.assertSame; 50 assertSame( in findDescriptorByFullName() 62 assertSame( in findDescriptorByTypeUrl()
|
D | ServiceTest.java | 105 assertSame(mockService.getRequestPrototype(fooDescriptor), FooRequest.getDefaultInstance()); in testGetPrototype() 106 assertSame(mockService.getResponsePrototype(fooDescriptor), FooResponse.getDefaultInstance()); in testGetPrototype() 107 assertSame(mockService.getRequestPrototype(barDescriptor), BarRequest.getDefaultInstance()); in testGetPrototype() 108 assertSame(mockService.getResponsePrototype(barDescriptor), BarResponse.getDefaultInstance()); in testGetPrototype() 165 assertSame(fooResponse, stub.foo(mockController, fooRequest)); in testBlockingStub() 166 assertSame(barResponse, stub.bar(mockController, barRequest)); in testBlockingStub()
|
D | GeneratedMessageTest.java | 243 assertSame( in testDefaultInstance() 246 assertSame( in testDefaultInstance() 313 assertSame(value1.getRepeatedInt32List(), value2.getRepeatedInt32List()); in testProtosShareRepeatedArraysIfDidntChange() 314 assertSame(value1.getRepeatedForeignMessageList(), value2.getRepeatedForeignMessageList()); in testProtosShareRepeatedArraysIfDidntChange() 680 assertSame(field, builder.getOneofFieldDescriptor(oneof)); in testReflectionGetOneof() 683 assertSame(field, message.getOneofFieldDescriptor(oneof)); in testReflectionGetOneof() 1203 assertSame(ForeignMessage.getDefaultInstance(), builder.getOptionalForeignMessageOrBuilder()); in testMessageOrBuilderGetters() 1205 assertSame(subBuilder, builder.getOptionalForeignMessageOrBuilder()); in testMessageOrBuilderGetters() 1214 assertSame(m0, builder.getRepeatedForeignMessageOrBuilder(0)); in testMessageOrBuilderGetters() 1215 assertSame(m1, builder.getRepeatedForeignMessageOrBuilder(1)); in testMessageOrBuilderGetters() [all …]
|
/third_party/libphonenumber/java/internal/prefixmapper/test/com/google/i18n/phonenumbers/prefixmapper/ |
D | FlyweightMapStorageTest.java | 63 assertSame(mapStorage.getDescription(0), mapStorage.getDescription(1)); in testReadFromSortedMap() 66 assertSame(mapStorage.getDescription(2), mapStorage.getDescription(3)); in testReadFromSortedMap() 74 assertSame(mapStorage.getDescription(4), mapStorage.getDescription(5)); in testReadFromSortedMapSupportsEmptyDescription()
|
/third_party/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/metadata/source/ |
D | MapBackedMetadataContainerTest.java | 43 assertSame(PHONE_METADATA, metadataContainer.getMetadataBy(REGION_CODE)); in test_getMetadataBy_shouldReturnMetadataForExistingRegionCode() 60 assertSame(PHONE_METADATA, metadataContainer.getMetadataBy(COUNTRY_CODE)); in test_getMetadataBy_shouldReturnMetadataForExistingCountryCode()
|
D | CompositeMetadataContainerTest.java | 48 assertSame(PHONE_METADATA_WITH_REGION_CODE, metadataContainer.getMetadataBy(REGION_CODE)); in test_getMetadataBy_shouldReturnMetadataForExistingRegionCode() 58 assertSame(PHONE_METADATA_WITH_COUNTRY_CODE, metadataContainer.getMetadataBy(COUNTRY_CODE)); in test_getMetadataBy_shouldReturnMetadataForExistingCountryCode()
|