Home
last modified time | relevance | path

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

123456

/external/protobuf/src/google/protobuf/
Dgenerated_message_reflection_unittest.cc70 TestUtil::ReflectionTester reflection_tester( in TEST()
94 TestUtil::ReflectionTester reflection_tester( in TEST()
98 TestUtil::ExpectAllFieldsSet(message); in TEST()
102 TestUtil::ExpectRepeatedFieldsModified(message); in TEST()
131 TestUtil::ReflectionTester reflection_tester( in TEST()
134 TestUtil::SetAllFields(&message); in TEST()
154 TestUtil::SetAllFields(&message1); in TEST()
159 TestUtil::ExpectClear(message1); in TEST()
160 TestUtil::ExpectAllFieldsSet(message2); in TEST()
167 TestUtil::SetAllFields(&message1); in TEST()
[all …]
Dreflection_ops_unittest.cc53 TestUtil::SetAllFields(&message); in TEST()
54 TestUtil::ExpectAllFieldsSet(message); in TEST()
60 TestUtil::SetAllFields(&message); in TEST()
64 TestUtil::ExpectAllFieldsSet(message2); in TEST()
68 TestUtil::ExpectAllFieldsSet(message2); in TEST()
74 TestUtil::SetAllExtensions(&message); in TEST()
78 TestUtil::ExpectAllExtensionsSet(message2); in TEST()
83 TestUtil::SetOneof1(&message); in TEST()
85 TestUtil::ExpectOneofSet1(message2); in TEST()
87 TestUtil::SetOneof2(&message); in TEST()
[all …]
Dextension_set_unittest.cc65 TestUtil::ExpectExtensionsClear(message); in TEST()
86 TestUtil::SetAllExtensions(&message); in TEST()
87 TestUtil::ExpectAllExtensionsSet(message); in TEST()
89 TestUtil::ModifyRepeatedExtensions(&message); in TEST()
90 TestUtil::ExpectRepeatedExtensionsModified(message); in TEST()
98 TestUtil::SetAllExtensions(&message); in TEST()
100 TestUtil::ExpectExtensionsClear(message); in TEST()
118 TestUtil::SetAllExtensions(&message); in TEST()
119 TestUtil::ExpectAllExtensionsSet(message); in TEST()
127 TestUtil::SetAllExtensions(&message); in TEST()
[all …]
Dwire_format_unittest.cc83 TestUtil::SetAllFields(&source); in TEST()
92 TestUtil::ExpectAllFieldsSet(dest); in TEST()
100 TestUtil::SetAllExtensions(&source); in TEST()
109 TestUtil::ExpectAllExtensionsSet(dest); in TEST()
117 TestUtil::SetPackedFields(&source); in TEST()
126 TestUtil::ExpectPackedFieldsSet(dest); in TEST()
132 TestUtil::SetUnpackedFields(&source); in TEST()
142 TestUtil::ExpectPackedFieldsSet(dest); in TEST()
148 TestUtil::SetPackedFields(&source); in TEST()
158 TestUtil::ExpectUnpackedFieldsSet(dest); in TEST()
[all …]
Ddynamic_message_unittest.cc124 TestUtil::ReflectionTester reflection_tester(descriptor_); in TEST_F()
133 TestUtil::ReflectionTester reflection_tester(descriptor_); in TEST_F()
142 TestUtil::ReflectionTester reflection_tester(extensions_descriptor_); in TEST_F()
151 TestUtil::ReflectionTester reflection_tester(packed_descriptor_); in TEST_F()
209 TestUtil::ReflectionTester reflection_tester(oneof_descriptor_); in TEST_F()
221 TestUtil::ReflectionTester reflection_tester(descriptor_); in TEST_F()
/external/protobuf/java/src/test/java/com/google/protobuf/
DWireFormatTest.java61 TestAllTypes message = TestUtil.getAllSet(); in testSerialization()
68 TestUtil.assertAllFieldsSet(message2); in testSerialization()
72 TestPackedTypes message = TestUtil.getPackedSet(); in testSerializationPacked()
79 TestUtil.assertPackedFieldsSet(message2); in testSerializationPacked()
87 TestAllExtensions message = TestUtil.getAllExtensionsSet(); in testSerializeExtensions()
93 TestUtil.assertAllFieldsSet(message2); in testSerializeExtensions()
99 TestPackedExtensions message = TestUtil.getPackedExtensionsSet(); in testSerializePackedExtensions()
102 TestPackedTypes message2 = TestUtil.getPackedSet(); in testSerializePackedExtensions()
113 TestPackedTypes message = TestUtil.getPackedSet(); in testSerializationPackedWithoutGetSerializedSize()
127 TestUtil.assertPackedFieldsSet(message2); in testSerializationPackedWithoutGetSerializedSize()
[all …]
DAbstractMessageTest.java183 TestUtil.ReflectionTester reflectionTester =
184 new TestUtil.ReflectionTester(TestAllTypes.getDescriptor(), null);
186 TestUtil.ReflectionTester extensionsReflectionTester =
187 new TestUtil.ReflectionTester(TestAllExtensions.getDescriptor(),
188 TestUtil.getExtensionRegistry());
193 TestAllTypes.newBuilder(TestUtil.getAllSet())) in testClear()
195 TestUtil.assertClear((TestAllTypes) message.wrappedMessage); in testClear()
201 .mergeFrom(TestUtil.getAllSet()).build(); in testCopy()
202 TestUtil.assertAllFieldsSet((TestAllTypes) message.wrappedMessage); in testCopy()
206 TestAllTypes message = TestUtil.getAllSet(); in testSerializedSize()
[all …]
DGeneratedMessageTest.java86 TestUtil.ReflectionTester reflectionTester =
87 new TestUtil.ReflectionTester(TestAllTypes.getDescriptor(), null);
98 TestUtil.setAllFields(builder); in testMessageOrBuilder()
100 TestUtil.assertAllFieldsSet(message); in testMessageOrBuilder()
193 TestUtil.getAllSet().toByteString()); in testParsedMessagesAreImmutable()
299 TestUtil.setAllFields(builder); in testRepeatedSetters()
300 TestUtil.modifyRepeatedFields(builder); in testRepeatedSetters()
302 TestUtil.assertRepeatedFieldsModified(message); in testRepeatedSetters()
317 builder.addRepeatedBytes(TestUtil.toBytes("one")); in testRepeatedSettersRejectNull()
318 builder.addRepeatedBytes(TestUtil.toBytes("two")); in testRepeatedSettersRejectNull()
[all …]
DLazyFieldLiteTest.java47 MessageLite message = TestUtil.getAllSet(); in testGetValue()
55 TestAllExtensions message = TestUtil.getAllExtensionsSet(); in testGetValueEx()
63 MessageLite message = TestUtil.getAllSet(); in testSetValue()
73 TestAllExtensions message = TestUtil.getAllExtensionsSet(); in testSetValueEx()
83 MessageLite message = TestUtil.getAllSet(); in testGetSerializedSize()
91 TestAllExtensions message = TestUtil.getAllExtensionsSet(); in testGetSerializedSizeEx()
99 MessageLite message = TestUtil.getAllSet(); in testGetByteString()
107 TestAllExtensions message = TestUtil.getAllExtensionsSet(); in testGetByteStringEx()
119 return new LazyFieldLite(TestUtil.getExtensionRegistry(), bytes); in createLazyFieldLiteFromMessage()
123 TestAllTypes.Builder builder = TestUtil.getAllSet().toBuilder(); in changeValue()
DDynamicMessageTest.java52 TestUtil.ReflectionTester reflectionTester =
53 new TestUtil.ReflectionTester(TestAllTypes.getDescriptor(), null);
55 TestUtil.ReflectionTester extensionsReflectionTester =
56 new TestUtil.ReflectionTester(TestAllExtensions.getDescriptor(),
57 TestUtil.getExtensionRegistry());
58 TestUtil.ReflectionTester packedReflectionTester =
59 new TestUtil.ReflectionTester(TestPackedTypes.getDescriptor(), null);
155 TestAllTypes message = TestUtil.getAllSet(); in testDynamicMessageSerializedSize()
175 TestUtil.assertAllFieldsSet(message2); in testDynamicMessageSerialization()
178 assertEquals(TestUtil.getAllSet().toByteString(), rawBytes); in testDynamicMessageSerialization()
[all …]
DLazyFieldTest.java46 MessageLite message = TestUtil.getAllSet(); in testHashCode()
58 TestAllExtensions message = TestUtil.getAllExtensionsSet(); in testHashCodeEx()
69 MessageLite message = TestUtil.getAllSet(); in testGetValue()
77 TestAllExtensions message = TestUtil.getAllExtensionsSet(); in testGetValueEx()
85 MessageLite message = TestUtil.getAllSet(); in testEqualsObject()
94 TestAllExtensions message = TestUtil.getAllExtensionsSet(); in testEqualsObjectEx()
107 TestUtil.getExtensionRegistry(), bytes); in createLazyFieldFromMessage()
111 TestAllTypes.Builder builder = TestUtil.getAllSet().toBuilder(); in changeValue()
DSingleFieldBuilderTest.java48 TestUtil.MockBuilderParent mockParent = new TestUtil.MockBuilderParent(); in testBasicUseAndInvalidations()
78 TestUtil.MockBuilderParent mockParent = new TestUtil.MockBuilderParent(); in testSetMessage()
104 TestUtil.MockBuilderParent mockParent = new TestUtil.MockBuilderParent(); in testClear()
124 TestUtil.MockBuilderParent mockParent = new TestUtil.MockBuilderParent(); in testMerge()
DParserTest.java62 TestUtil.getAllSet().getParserForType()); in testGeneratedMessageParserSingleton()
123 assertRoundTripEquals(TestUtil.getAllSet()); in testNormalMessage()
182 assertRoundTripEquals(TestUtil.getAllExtensionsSet(), in testParseExtensions()
183 TestUtil.getExtensionRegistry()); in testParseExtensions()
184 assertRoundTripEquals(TestUtil.getAllLiteExtensionsSet(), in testParseExtensions()
185 TestUtil.getExtensionRegistryLite()); in testParseExtensions()
189 assertRoundTripEquals(TestUtil.getPackedSet()); in testParsePacked()
190 assertRoundTripEquals(TestUtil.getPackedExtensionsSet(), in testParsePacked()
191 TestUtil.getExtensionRegistry()); in testParsePacked()
192 assertRoundTripEquals(TestUtil.getLitePackedExtensionsSet(), in testParsePacked()
[all …]
DRepeatedFieldBuilderTest.java51 TestUtil.MockBuilderParent mockParent = new TestUtil.MockBuilderParent(); in testBasicUse()
72 TestUtil.MockBuilderParent mockParent = new TestUtil.MockBuilderParent(); in testGoingBackAndForth()
101 TestUtil.MockBuilderParent mockParent = new TestUtil.MockBuilderParent(); in testVariousMethods()
143 TestUtil.MockBuilderParent mockParent = new TestUtil.MockBuilderParent(); in testLists()
DTextFormatTest.java68 private static String allFieldsSetText = TestUtil.readTextFromFile(
70 private static String allExtensionsSetText = TestUtil.readTextFromFile(
133 String javaText = TextFormat.printToString(TestUtil.getAllSet()); in testPrintMessage()
145 String javaText = TextFormat.printToString(TestUtil.getAllSetBuilder()); in testPrintMessageBuilder()
157 String javaText = TextFormat.printToString(TestUtil.getAllExtensionsSet()); in testPrintExtensions()
320 TestUtil.assertAllFieldsSet(builder.build()); in testParse()
326 TestUtil.assertAllFieldsSet(builder.build()); in testParseReader()
332 TestUtil.getExtensionRegistry(), in testParseExtensions()
334 TestUtil.assertAllExtensionsSet(builder.build()); in testParseExtensions()
456 TextFormat.merge(text, TestUtil.getExtensionRegistry(), builder); in assertParseError()
[all …]
DUnknownFieldSetTest.java55 allFields = TestUtil.getAllSet(); in setUp()
230 TestUtil.assertAllFieldsSet(destination); in testParseKnownAndUnknown()
323 TestAllExtensions.parseFrom(data, TestUtil.getExtensionRegistry()); in testParseUnknownEnumValue()
456 TestUtil.assertAllFieldsSet(message); in testSerializeLite()
461 TestAllExtensions allExtensions = TestUtil.getAllExtensionsSet(); in testAllExtensionsLite()
467 TestAllExtensions.parseFrom(data, TestUtil.getExtensionRegistry()); in testAllExtensionsLite()
468 TestUtil.assertAllExtensionsSet(message); in testAllExtensionsLite()
473 TestPackedTypes allPackedFields = TestUtil.getPackedSet(); in testAllPackedFieldsLite()
479 TestPackedTypes.parseFrom(data, TestUtil.getExtensionRegistry()); in testAllPackedFieldsLite()
480 TestUtil.assertPackedFieldsSet(message); in testAllPackedFieldsLite()
[all …]
/external/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/
DLocaleNameTest.java38 if (TestUtil.isExcluded(inLocale)) { in TestLanguageNames()
44 Locale inLocaleICU = TestUtil.toICUExtendedLocale(inLocale); in TestLanguageNames()
72 if (TestUtil.isICUExtendedLocale(inLocale)) { in TestLanguageNames()
102 if (TestUtil.isExcluded(inLocale)) { in TestScriptNames()
108 Locale inLocaleICU = TestUtil.toICUExtendedLocale(inLocale); in TestScriptNames()
127 if (TestUtil.isICUExtendedLocale(inLocale)) { in TestScriptNames()
158 if (TestUtil.isExcluded(inLocale)) { in TestCountryNames()
164 Locale inLocaleICU = TestUtil.toICUExtendedLocale(inLocale); in TestCountryNames()
177 if (TestUtil.isICUExtendedLocale(inLocale)) { in TestCountryNames()
217 if (TestUtil.isExcluded(inLocale)) { in TestVariantNames()
[all …]
DDateFormatSymbolsTest.java25 if (TestUtil.isExcluded(loc)) { in TestGetInstance()
34 if (TestUtil.isICUExtendedLocale(loc)) { in TestGetInstance()
42 Locale iculoc = TestUtil.toICUExtendedLocale(loc); in TestGetInstance()
71 Locale iculoc = TestUtil.toICUExtendedLocale(loc); in TestICUEquivalent()
127 if (!TestUtil.equals(jaa[i][j], iaa[i][j])) { in compareArrays()
145 if (!TestUtil.equals(ja[i], ia[i])) { in compareArrays()
162 …DateFormatSymbols dfs_nnNO_ICU = DateFormatSymbols.getInstance(TestUtil.toICUExtendedLocale(nnNO)); in TestNynorsk()
163 …DateFormatSymbols dfs_noNONY_ICU = DateFormatSymbols.getInstance(TestUtil.toICUExtendedLocale(noNO… in TestNynorsk()
187 ULocale uloc0 = new ULocale("en_US_" + TestUtil.ICU_VARIANT + "@calendar=japanese"); in TestCalendarKeyword()
DCurrencyNameTest.java64 if (TestUtil.isExcluded(loc)) { in TestCurrencySymbols()
81 if (TestUtil.isICUExtendedLocale(loc)) { in TestCurrencySymbols()
92 Locale locIcu = TestUtil.toICUExtendedLocale(loc); in TestCurrencySymbols()
113 if (TestUtil.isExcluded(loc)) { in TestCurrencyDisplayNames()
137 if (TestUtil.isICUExtendedLocale(loc)) { in TestCurrencyDisplayNames()
148 Locale locIcu = TestUtil.toICUExtendedLocale(loc); in TestCurrencyDisplayNames()
DCollatorTest.java27 if (TestUtil.isExcluded(loc)) { in TestGetInstance()
36 if (TestUtil.isICUExtendedLocale(loc)) { in TestGetInstance()
44 Locale iculoc = TestUtil.toICUExtendedLocale(loc); in TestGetInstance()
85 Locale iculoc = TestUtil.toICUExtendedLocale(loc); in TestICUEquivalent()
137 ULocale uloc0 = new ULocale("de_DE_" + TestUtil.ICU_VARIANT + "@collation=phonebook"); in TestCollationKeyword()
DDateFormatTest.java30 if (TestUtil.isExcluded(loc)) { in TestGetInstance()
46 if (TestUtil.isICUExtendedLocale(loc)) { in checkGetInstance()
54 Locale iculoc = TestUtil.toICUExtendedLocale(loc); in checkGetInstance()
132 Locale iculoc = TestUtil.toICUExtendedLocale(loc); in TestICUEquivalent()
186 …DateFormat dfmtIcu = DateFormat.getDateInstance(DateFormat.FULL, TestUtil.toICUExtendedLocale(thTH… in TestThaiDigit()
202 ULocale uloc0 = new ULocale("en_US_" + TestUtil.ICU_VARIANT + "@calendar=buddhist"); in TestCalendarKeyword()
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_unittest.cc138 TestUtil::ExpectClear(message); in TEST()
210 TestUtil::SetAllFields(&message); in TEST()
211 TestUtil::ExpectAllFieldsSet(message); in TEST()
213 TestUtil::ModifyRepeatedFields(&message); in TEST()
214 TestUtil::ExpectRepeatedFieldsModified(message); in TEST()
328 TestUtil::SetAllFields(&message); in TEST()
330 TestUtil::ExpectClear(message); in TEST()
364 TestUtil::SetAllFields(&message); in TEST()
378 TestUtil::ExpectAllFieldsSet(message); in TEST()
401 TestUtil::SetAllFields(&message1); in TEST()
[all …]
/external/okhttp/okio/okio/src/test/java/okio/
DSegmentSharingTest.java20 import static okio.TestUtil.assertEquivalent;
26 private static final String us = TestUtil.repeat('u', Segment.SIZE / 2 - 2);
27 private static final String vs = TestUtil.repeat('v', Segment.SIZE / 2 - 1);
28 private static final String ws = TestUtil.repeat('w', Segment.SIZE / 2);
29 private static final String xs = TestUtil.repeat('x', Segment.SIZE / 2 + 1);
30 private static final String ys = TestUtil.repeat('y', Segment.SIZE / 2 + 2);
31 private static final String zs = TestUtil.repeat('z', Segment.SIZE / 2 + 3);
111 assertEquivalent(byteString, TestUtil.reserialize(byteString)); in snapshotJavaSerialization()
186 buffer.writeUtf8(TestUtil.repeat('_', offsetInSegment)); in concatenateBuffers()
DRealBufferedSourceTest.java23 import static okio.TestUtil.repeat;
201 Buffer write1 = new Buffer().writeUtf8(TestUtil.repeat('a', Segment.SIZE)); in readAllReadsOneSegmentAtATime()
202 Buffer write2 = new Buffer().writeUtf8(TestUtil.repeat('b', Segment.SIZE)); in readAllReadsOneSegmentAtATime()
203 Buffer write3 = new Buffer().writeUtf8(TestUtil.repeat('c', Segment.SIZE)); in readAllReadsOneSegmentAtATime()
206 + TestUtil.repeat('a', Segment.SIZE) in readAllReadsOneSegmentAtATime()
207 + TestUtil.repeat('b', Segment.SIZE) in readAllReadsOneSegmentAtATime()
208 + TestUtil.repeat('c', Segment.SIZE)); in readAllReadsOneSegmentAtATime()
DRealBufferedSinkTest.java22 import static okio.TestUtil.repeat;
226 Buffer write1 = new Buffer().writeUtf8(TestUtil.repeat('a', Segment.SIZE)); in writeAllWritesOneSegmentAtATime()
227 Buffer write2 = new Buffer().writeUtf8(TestUtil.repeat('b', Segment.SIZE)); in writeAllWritesOneSegmentAtATime()
228 Buffer write3 = new Buffer().writeUtf8(TestUtil.repeat('c', Segment.SIZE)); in writeAllWritesOneSegmentAtATime()
231 + TestUtil.repeat('a', Segment.SIZE) in writeAllWritesOneSegmentAtATime()
232 + TestUtil.repeat('b', Segment.SIZE) in writeAllWritesOneSegmentAtATime()
233 + TestUtil.repeat('c', Segment.SIZE)); in writeAllWritesOneSegmentAtATime()

123456