Home
last modified time | relevance | path

Searched refs:TestUtil (Results 1 – 25 of 124) sorted by relevance

12345

/third_party/protobuf/src/google/protobuf/
Dgenerated_message_reflection_unittest.cc74 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 …]
Dreflection_ops_unittest.cc55 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 …]
Dextension_set_unittest.cc62 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 …]
Dwire_format_unittest.cc95 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/
Dcpp_move_unittest.cc53 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/
DAbstractMessageTest.java33 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 …]
DWireFormatTest.java65 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 …]
DDynamicMessageTest.java52 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 …]
DGeneratedMessageTest.java80 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 …]
DLazyFieldTest.java44 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()
DLazyFieldLiteTest.java48 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 …]
DSingleFieldBuilderV3Test.java46 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()
DWireFormatLiteTest.java74 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 …]
DAnyTest.java42 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()
DRepeatedFieldBuilderV3Test.java48 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()
DParserTest.java57 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/
DAbstractMessageTest.java184 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 …]
DDynamicMessageTest.java49 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 …]
DWireFormatTest.java58 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 …]
DGeneratedMessageTest.java77 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/
DLocaleNameTest.java42 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 …]
DDateFormatSymbolsTest.java29 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/
Dmemory_leak_test.php65 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/
Dmessage_differencer_unittest.cc95 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 …]
Ddelimited_message_util_test.cc52 TestUtil::SetAllFields(&message1); in TEST()
56 TestUtil::SetPackedFields(&message2); in TEST()
69 TestUtil::ExpectAllFieldsSet(message1); in TEST()
76 TestUtil::ExpectPackedFieldsSet(message2); in TEST()

12345