/third_party/protobuf/src/google/protobuf/ |
D | generated_message_reflection_unittest.cc | 74 TestUtil::ReflectionTester reflection_tester( in TEST() 98 TestUtil::ReflectionTester reflection_tester( in TEST() 102 TestUtil::ExpectAllFieldsSet(message); in TEST() 106 TestUtil::ExpectRepeatedFieldsModified(message); in TEST() 137 TestUtil::ReflectionTester reflection_tester( in TEST() 140 TestUtil::SetAllFields(&message); in TEST() 159 TestUtil::SetAllFields(&message1); in TEST() 164 TestUtil::ExpectClear(message1); in TEST() 165 TestUtil::ExpectAllFieldsSet(message2); in TEST() 172 TestUtil::SetAllFields(&message1); in TEST() [all …]
|
D | reflection_ops_unittest.cc | 55 TestUtil::SetAllFields(&message); in TEST() 56 TestUtil::ExpectAllFieldsSet(message); in TEST() 62 TestUtil::SetAllFields(&message); in TEST() 66 TestUtil::ExpectAllFieldsSet(message2); in TEST() 70 TestUtil::ExpectAllFieldsSet(message2); in TEST() 76 TestUtil::SetAllExtensions(&message); in TEST() 80 TestUtil::ExpectAllExtensionsSet(message2); in TEST() 85 TestUtil::SetOneof1(&message); in TEST() 87 TestUtil::ExpectOneofSet1(message2); in TEST() 89 TestUtil::SetOneof2(&message); in TEST() [all …]
|
D | extension_set_unittest.cc | 62 using TestUtil::EqualsToSerialized; 71 TestUtil::ExpectExtensionsClear(message); in TEST() 92 TestUtil::SetAllExtensions(&message); in TEST() 93 TestUtil::ExpectAllExtensionsSet(message); in TEST() 95 TestUtil::ModifyRepeatedExtensions(&message); in TEST() 96 TestUtil::ExpectRepeatedExtensionsModified(message); in TEST() 104 TestUtil::SetAllExtensions(&message); in TEST() 106 TestUtil::ExpectExtensionsClear(message); in TEST() 124 TestUtil::SetAllExtensions(&message); in TEST() 125 TestUtil::ExpectAllExtensionsSet(message); in TEST() [all …]
|
D | wire_format_unittest.cc | 95 TestUtil::SetAllFields(&source); in TEST() 104 TestUtil::ExpectAllFieldsSet(dest); in TEST() 112 TestUtil::SetAllExtensions(&source); in TEST() 121 TestUtil::ExpectAllExtensionsSet(dest); in TEST() 129 TestUtil::SetPackedFields(&source); in TEST() 138 TestUtil::ExpectPackedFieldsSet(dest); in TEST() 144 TestUtil::SetUnpackedFields(&source); in TEST() 154 TestUtil::ExpectPackedFieldsSet(dest); in TEST() 160 TestUtil::SetPackedFields(&source); in TEST() 170 TestUtil::ExpectUnpackedFieldsSet(dest); in TEST() [all …]
|
/third_party/protobuf/src/google/protobuf/compiler/cpp/ |
D | cpp_move_unittest.cc | 53 TestUtil::SetAllFields(&message1); in TEST() 57 TestUtil::ExpectAllFieldsSet(message2); in TEST() 67 TestUtil::SetAllFields(&message1); in TEST() 72 TestUtil::ExpectAllFieldsSet(message2); in TEST() 83 TestUtil::SetAllFields(&message); in TEST() 85 TestUtil::ExpectAllFieldsSet(message); in TEST() 93 TestUtil::SetAllFields(message1_on_arena); in TEST() 109 TestUtil::SetAllFields(message1_on_arena); in TEST() 118 TestUtil::ExpectAllFieldsSet(*message1_on_arena); in TEST() 119 TestUtil::ExpectAllFieldsSet(*message2_on_arena); in TEST() [all …]
|
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | AbstractMessageTest.java | 33 import static com.google.protobuf.TestUtil.TEST_REQUIRED_INITIALIZED; 34 import static com.google.protobuf.TestUtil.TEST_REQUIRED_UNINITIALIZED; 234 TestUtil.ReflectionTester reflectionTester = 235 new TestUtil.ReflectionTester(TestAllTypes.getDescriptor(), null); 237 TestUtil.ReflectionTester extensionsReflectionTester = 238 new TestUtil.ReflectionTester( 239 TestAllExtensions.getDescriptor(), TestUtil.getFullExtensionRegistry()); 243 new AbstractMessageWrapper.Builder(TestAllTypes.newBuilder(TestUtil.getAllSet())) in testClear() 246 TestUtil.assertClear((TestAllTypes) message.wrappedMessage); in testClear() 252 .mergeFrom(TestUtil.getAllSet()) in testCopy() [all …]
|
D | WireFormatTest.java | 65 TestAllTypes message = TestUtil.getAllSet(); in testSerialization() 72 TestUtil.assertAllFieldsSet(message2); in testSerialization() 76 TestPackedTypes message = TestUtil.getPackedSet(); in testSerializationPacked() 83 TestUtil.assertPackedFieldsSet(message2); in testSerializationPacked() 91 TestAllExtensions message = TestUtil.getAllExtensionsSet(); in testSerializeExtensions() 97 TestUtil.assertAllFieldsSet(message2); in testSerializeExtensions() 103 TestPackedExtensions message = TestUtil.getPackedExtensionsSet(); in testSerializePackedExtensions() 106 TestPackedTypes message2 = TestUtil.getPackedSet(); in testSerializePackedExtensions() 116 TestPackedTypes message = TestUtil.getPackedSet(); in testSerializationPackedWithoutGetSerializedSize() 129 TestUtil.assertPackedFieldsSet(message2); in testSerializationPackedWithoutGetSerializedSize() [all …]
|
D | DynamicMessageTest.java | 52 TestUtil.ReflectionTester reflectionTester = 53 new TestUtil.ReflectionTester(TestAllTypes.getDescriptor(), null); 55 TestUtil.ReflectionTester extensionsReflectionTester = 56 new TestUtil.ReflectionTester( 57 TestAllExtensions.getDescriptor(), TestUtil.getFullExtensionRegistry()); 58 TestUtil.ReflectionTester packedReflectionTester = 59 new TestUtil.ReflectionTester(TestPackedTypes.getDescriptor(), null); 148 TestAllTypes message = TestUtil.getAllSet(); in testDynamicMessageSerializedSize() 165 TestUtil.assertAllFieldsSet(message2); in testDynamicMessageSerialization() 168 assertEquals(TestUtil.getAllSet().toByteString(), rawBytes); in testDynamicMessageSerialization() [all …]
|
D | GeneratedMessageTest.java | 80 TestUtil.ReflectionTester reflectionTester = 81 new TestUtil.ReflectionTester(TestAllTypes.getDescriptor(), null); 252 TestUtil.setAllFields(builder); in testMessageOrBuilder() 254 TestUtil.assertAllFieldsSet(message); in testMessageOrBuilder() 335 TestAllTypes value = TestAllTypes.parser().parseFrom(TestUtil.getAllSet().toByteString()); in testParsedMessagesAreImmutable() 439 TestUtil.setAllFields(builder); in testRepeatedSetters() 440 TestUtil.modifyRepeatedFields(builder); in testRepeatedSetters() 442 TestUtil.assertRepeatedFieldsModified(message); in testRepeatedSetters() 457 builder.addRepeatedBytes(TestUtil.toBytes("one")); in testRepeatedSettersRejectNull() 458 builder.addRepeatedBytes(TestUtil.toBytes("two")); in testRepeatedSettersRejectNull() [all …]
|
D | LazyFieldTest.java | 44 MessageLite message = TestUtil.getAllSet(); in testHashCode() 55 TestAllExtensions message = TestUtil.getAllExtensionsSet(); in testHashCodeEx() 66 MessageLite message = TestUtil.getAllSet(); in testGetValue() 74 TestAllExtensions message = TestUtil.getAllExtensionsSet(); in testGetValueEx() 82 MessageLite message = TestUtil.getAllSet(); in testEqualsObject() 92 TestAllExtensions message = TestUtil.getAllExtensionsSet(); in testEqualsObjectEx() 105 message.getDefaultInstanceForType(), TestUtil.getExtensionRegistry(), bytes); in createLazyFieldFromMessage() 109 TestAllTypes.Builder builder = TestUtil.getAllSet().toBuilder(); in changeValue()
|
D | LazyFieldLiteTest.java | 48 MessageLite message = TestUtil.getAllSet(); in testGetValue() 56 TestAllExtensions message = TestUtil.getAllExtensionsSet(); in testGetValueEx() 64 MessageLite message = TestUtil.getAllSet(); in testSetValue() 74 TestAllExtensions message = TestUtil.getAllExtensionsSet(); in testSetValueEx() 84 MessageLite message = TestUtil.getAllSet(); in testGetSerializedSize() 92 TestAllExtensions message = TestUtil.getAllExtensionsSet(); in testGetSerializedSizeEx() 100 MessageLite message = TestUtil.getAllSet(); in testGetByteString() 108 TestAllExtensions message = TestUtil.getAllExtensionsSet(); in testGetByteStringEx() 116 TestAllExtensions message = TestUtil.getAllExtensionsSet(); in testMergeExtensions() 134 new LazyFieldLite(TestUtil.getExtensionRegistry(), ByteString.copyFromUtf8("invalid")); in testInvalidProto() [all …]
|
D | SingleFieldBuilderV3Test.java | 46 TestUtil.MockBuilderParent mockParent = new TestUtil.MockBuilderParent(); in testBasicUseAndInvalidations() 70 TestUtil.MockBuilderParent mockParent = new TestUtil.MockBuilderParent(); in testSetMessage() 92 TestUtil.MockBuilderParent mockParent = new TestUtil.MockBuilderParent(); in testClear() 108 TestUtil.MockBuilderParent mockParent = new TestUtil.MockBuilderParent(); in testMerge()
|
D | WireFormatLiteTest.java | 74 TestUtil.assertAllFieldsSet(message2); in testSerializeExtensionsLite() 83 TestPackedTypes message2 = TestUtil.getPackedSet(); in testSerializePackedExtensionsLite() 94 TestAllTypes message = TestUtil.getAllSet(); in testParseExtensionsLite() 100 TestUtil.assertAllExtensionsSet(message2); in testParseExtensionsLite() 102 TestUtil.assertAllExtensionsSet(message2); in testParseExtensionsLite() 113 TestUtil.assertPackedExtensionsSet(message2); in testParsePackedExtensionsLite() 115 TestUtil.assertPackedExtensionsSet(message2); in testParsePackedExtensionsLite() 119 TestAllTypes message = TestUtil.getAllSet(); in testSerialization() 126 TestUtil.assertAllFieldsSet(message2); in testSerialization() 130 TestPackedTypes message = TestUtil.getPackedSet(); in testSerializationPacked() [all …]
|
D | AnyTest.java | 42 TestUtil.setAllFields(builder); in testAnyGeneratedApi() 51 TestUtil.assertAllFieldsSet(result); in testAnyGeneratedApi() 76 TestUtil.setAllFields(builder); in testCustomTypeUrls() 88 TestUtil.assertAllFieldsSet(result); in testCustomTypeUrls() 99 TestUtil.assertAllFieldsSet(result); in testCustomTypeUrls() 110 TestUtil.assertAllFieldsSet(result); in testCustomTypeUrls() 115 TestUtil.setAllFields(builder); in testCachedUnpackResult()
|
D | RepeatedFieldBuilderV3Test.java | 48 TestUtil.MockBuilderParent mockParent = new TestUtil.MockBuilderParent(); in testBasicUse() 69 TestUtil.MockBuilderParent mockParent = new TestUtil.MockBuilderParent(); in testGoingBackAndForth() 98 TestUtil.MockBuilderParent mockParent = new TestUtil.MockBuilderParent(); in testVariousMethods() 139 TestUtil.MockBuilderParent mockParent = new TestUtil.MockBuilderParent(); in testLists()
|
D | ParserTest.java | 57 assertEquals(TestAllTypes.parser(), TestUtil.getAllSet().getParserForType()); in testGeneratedMessageParserSingleton() 111 assertRoundTripEquals(TestUtil.getAllSet()); in testNormalMessage() 164 assertRoundTripEquals(TestUtil.getAllExtensionsSet(), TestUtil.getExtensionRegistry()); in testParseExtensions() 168 assertRoundTripEquals(TestUtil.getPackedSet()); in testParsePacked() 169 assertRoundTripEquals(TestUtil.getPackedExtensionsSet(), TestUtil.getExtensionRegistry()); in testParsePacked() 174 TestAllTypes normalMessage = TestUtil.getAllSet(); in testParseDelimitedTo() 187 TestEmptyMessage.parser().parseFrom(TestUtil.getAllSet().toByteString()); in testParseUnknownFields() 188 assertEquals(TestUtil.getAllSet().toByteString(), emptyMessage.toByteString()); in testParseUnknownFields()
|
/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/ |
D | AbstractMessageTest.java | 184 TestUtil.ReflectionTester reflectionTester = 185 new TestUtil.ReflectionTester(TestAllTypes.getDescriptor(), null); 187 TestUtil.ReflectionTester extensionsReflectionTester = 188 new TestUtil.ReflectionTester(TestAllExtensions.getDescriptor(), 189 TestUtil.getExtensionRegistry()); 194 TestAllTypes.newBuilder(TestUtil.getAllSet())) in testClear() 196 TestUtil.assertClear((TestAllTypes) message.wrappedMessage); in testClear() 202 .mergeFrom(TestUtil.getAllSet()).build(); in testCopy() 203 TestUtil.assertAllFieldsSet((TestAllTypes) message.wrappedMessage); in testCopy() 207 TestAllTypes message = TestUtil.getAllSet(); in testSerializedSize() [all …]
|
D | DynamicMessageTest.java | 49 TestUtil.ReflectionTester reflectionTester = 50 new TestUtil.ReflectionTester(TestAllTypes.getDescriptor(), null); 52 TestUtil.ReflectionTester extensionsReflectionTester = 53 new TestUtil.ReflectionTester(TestAllExtensions.getDescriptor(), 54 TestUtil.getExtensionRegistry()); 55 TestUtil.ReflectionTester packedReflectionTester = 56 new TestUtil.ReflectionTester(TestPackedTypes.getDescriptor(), null); 152 TestAllTypes message = TestUtil.getAllSet(); in testDynamicMessageSerializedSize() 172 TestUtil.assertAllFieldsSet(message2); in testDynamicMessageSerialization() 175 assertEquals(TestUtil.getAllSet().toByteString(), rawBytes); in testDynamicMessageSerialization() [all …]
|
D | WireFormatTest.java | 58 TestAllTypes message = TestUtil.getAllSet(); in testSerialization() 65 TestUtil.assertAllFieldsSet(message2); in testSerialization() 69 TestPackedTypes message = TestUtil.getPackedSet(); in testSerializationPacked() 76 TestUtil.assertPackedFieldsSet(message2); in testSerializationPacked() 84 TestAllExtensions message = TestUtil.getAllExtensionsSet(); in testSerializeExtensions() 90 TestUtil.assertAllFieldsSet(message2); in testSerializeExtensions() 96 TestPackedExtensions message = TestUtil.getPackedExtensionsSet(); in testSerializePackedExtensions() 99 TestPackedTypes message2 = TestUtil.getPackedSet(); in testSerializePackedExtensions() 110 TestPackedTypes message = TestUtil.getPackedSet(); in testSerializationPackedWithoutGetSerializedSize() 124 TestUtil.assertPackedFieldsSet(message2); in testSerializationPackedWithoutGetSerializedSize() [all …]
|
D | GeneratedMessageTest.java | 77 TestUtil.ReflectionTester reflectionTester = 78 new TestUtil.ReflectionTester(TestAllTypes.getDescriptor(), null); 89 TestUtil.setAllFields(builder); in testMessageOrBuilder() 91 TestUtil.assertAllFieldsSet(message); in testMessageOrBuilder() 168 TestUtil.getAllSet().toByteString()); in testParsedMessagesAreImmutable() 274 TestUtil.setAllFields(builder); in testRepeatedSetters() 275 TestUtil.modifyRepeatedFields(builder); in testRepeatedSetters() 277 TestUtil.assertRepeatedFieldsModified(message); in testRepeatedSetters() 292 builder.addRepeatedBytes(TestUtil.toBytes("one")); in testRepeatedSettersRejectNull() 293 builder.addRepeatedBytes(TestUtil.toBytes("two")); in testRepeatedSettersRejectNull() [all …]
|
/third_party/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/ |
D | LocaleNameTest.java | 42 if (TestUtil.isExcluded(inLocale)) { in TestLanguageNames() 48 Locale inLocaleICU = TestUtil.toICUExtendedLocale(inLocale); in TestLanguageNames() 76 if (TestUtil.isICUExtendedLocale(inLocale)) { in TestLanguageNames() 107 if (TestUtil.isExcluded(inLocale)) { in TestScriptNames() 113 Locale inLocaleICU = TestUtil.toICUExtendedLocale(inLocale); in TestScriptNames() 132 if (TestUtil.isICUExtendedLocale(inLocale)) { in TestScriptNames() 164 if (TestUtil.isExcluded(inLocale)) { in TestCountryNames() 170 Locale inLocaleICU = TestUtil.toICUExtendedLocale(inLocale); in TestCountryNames() 183 if (TestUtil.isICUExtendedLocale(inLocale)) { in TestCountryNames() 224 if (TestUtil.isExcluded(inLocale)) { in TestVariantNames() [all …]
|
D | DateFormatSymbolsTest.java | 29 if (TestUtil.isExcluded(loc)) { in TestGetInstance() 37 if (TestUtil.isICUExtendedLocale(loc)) { in TestGetInstance() 43 Locale iculoc = TestUtil.toICUExtendedLocale(loc); in TestGetInstance() 67 Locale iculoc = TestUtil.toICUExtendedLocale(loc); in TestICUEquivalent() 124 if (!TestUtil.equals(jaa[i][j], iaa[i][j])) { in compareArrays() 142 if (!TestUtil.equals(ja[i], ia[i])) { in compareArrays() 160 …DateFormatSymbols dfs_nnNO_ICU = DateFormatSymbols.getInstance(TestUtil.toICUExtendedLocale(nnNO)); in TestNynorsk() 161 …DateFormatSymbols dfs_noNONY_ICU = DateFormatSymbols.getInstance(TestUtil.toICUExtendedLocale(noNO… in TestNynorsk() 186 ULocale uloc = new ULocale("en_US_" + TestUtil.ICU_VARIANT + "@calendar=japanese"); in TestCalendarKeyword()
|
/third_party/protobuf/php/tests/ |
D | memory_leak_test.php | 65 TestUtil::setTestMessage($from); 66 TestUtil::assertTestMessage($from); 73 TestUtil::assertTestMessage($to); 76 TestUtil::setTestMessage2($from); 150 TestUtil::setTestMessage($from); 184 TestUtil::setTestMessage($m); 200 TestUtil::setTestMessage($from); 202 TestUtil::assertTestMessage($to);
|
/third_party/protobuf/src/google/protobuf/util/ |
D | message_differencer_unittest.cc | 95 TestUtil::SetAllFields(&msg1); in TEST() 96 TestUtil::SetAllFields(&msg2); in TEST() 107 TestUtil::SetAllFields(&msg1); in TEST() 108 TestUtil::SetAllFields(&msg2); in TEST() 121 TestUtil::SetAllFields(&msg1); in TEST() 122 TestUtil::SetAllFields(&msg2); in TEST() 170 TestUtil::SetAllFields(&msg1); in TEST() 171 TestUtil::SetAllFields(&msg2); in TEST() 184 TestUtil::SetAllFields(&msg1); in TEST() 185 TestUtil::SetAllFields(&msg2); in TEST() [all …]
|
D | delimited_message_util_test.cc | 52 TestUtil::SetAllFields(&message1); in TEST() 56 TestUtil::SetPackedFields(&message2); in TEST() 69 TestUtil::ExpectAllFieldsSet(message1); in TEST() 76 TestUtil::ExpectPackedFieldsSet(message2); in TEST()
|