Private Member Functions | |
void | assertLocation (TextFormatParseInfoTree tree, final Descriptor descriptor, final String fieldName, int index, int line, int column) |
void | assertParseError (String error, String text) |
void | assertParseErrorWithOverwriteForbidden (String error, String text) |
void | assertParseErrorWithUnknownExtensions (String error, String text) |
void | assertParseErrorWithUnknownFields (String error, String text) |
TestAllTypes | assertParseSuccessWithOverwriteForbidden (String text) throws TextFormat.ParseException |
TestAllTypes | assertParseSuccessWithUnknownExtensions (String text) throws TextFormat.ParseException |
TestAllTypes | assertParseSuccessWithUnknownFields (String text) throws TextFormat.ParseException |
void | assertPrintFieldValue (String expect, Object value, String fieldName) throws Exception |
ByteString | bytes (int... bytesAsInts) |
ByteString | bytes (String str) |
UnknownFieldSet | makeUnknownFieldSet () |
Private Attributes | |
final TextFormat.Parser | defaultParser = TextFormat.Parser.newBuilder().build() |
String | messageSetText |
String | messageSetTextWithRepeatedExtension |
final TextFormat.Parser | parserAllowingUnknownExtensions |
final TextFormat.Parser | parserAllowingUnknownFields |
final TextFormat.Parser | parserWithOverwriteForbidden |
Static Private Attributes | |
static String | allExtensionsSetText |
static String | allFieldsSetText |
static String | canonicalExoticText |
static final String | ESCAPE_TEST_STRING |
static final String | ESCAPE_TEST_STRING_ESCAPED |
static String | exoticText |
Test case for TextFormat.
TODO(wenboz): ExtensionTest and rest of text_format_unittest.cc.
Definition at line 62 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inlineprivate |
Definition at line 1329 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inlineprivate |
Definition at line 510 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inlineprivate |
Definition at line 563 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inlineprivate |
Definition at line 546 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inlineprivate |
Definition at line 529 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inlineprivate |
Definition at line 573 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inlineprivate |
Definition at line 556 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inlineprivate |
Definition at line 539 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inlineprivate |
Definition at line 886 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inlineprivate |
Helper to construct a ByteString from a bunch of bytes. The inputs are actually ints so that I can use hex notation and not get stupid errors about precision.
Definition at line 269 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inlineprivate |
Helper to construct a ByteString from a String containing only 8-bit characters. The characters are converted directly to bytes, not encoded using UTF-8.
Definition at line 261 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inlineprivate |
Definition at line 185 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 628 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 1230 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 1196 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 1210 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 1219 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 1176 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 332 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 390 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 427 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 490 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 497 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 378 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 342 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 437 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 458 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 484 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 372 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 356 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 1163 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 1148 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 1139 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 338 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 867 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 835 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 580 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 384 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 1259 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 349 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 687 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 807 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 1067 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 1110 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 1129 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 1102 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 1118 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 800 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 363 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 1018 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 277 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Print TestAllExtensions and compare with golden file.
Definition at line 173 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 243 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 873 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Print TestAllTypes and compare with golden file.
Definition at line 149 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Print TestAllTypes as Builder and compare with golden file.
Definition at line 161 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 316 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 928 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 1002 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 956 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 217 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 894 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 905 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
inline |
Definition at line 920 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
staticprivate |
Definition at line 75 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
staticprivate |
Definition at line 73 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
staticprivate |
Definition at line 108 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
private |
Definition at line 146 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
staticprivate |
Definition at line 65 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
staticprivate |
Definition at line 69 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
staticprivate |
Definition at line 78 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
private |
Definition at line 117 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
private |
Definition at line 126 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
private |
Definition at line 138 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
private |
Definition at line 135 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.
|
private |
Definition at line 141 of file core/src/test/java/com/google/protobuf/TextFormatTest.java.