webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
Classes | |
class | MockBuilderParent |
class | ReflectionTester |
Contains methods for setting all fields of
to some values as well as checking that all the fields are set to those values. These are useful for testing various protocol message features, e.g. set all fields of a message, serialize it, parse it, and check that all fields are set.
This code is not to be used outside of
and subpackages.
|
inlinestatic |
Assert (using
} that all extensions of
are set to the values assigned by
.
|
inlinestatic |
Assert (using
} that all extensions of
are set to the values assigned by
.
|
inlinestatic |
Assert (using
} that all fields of
are set to the values assigned by
.
|
inlinestatic |
|
inlinestatic |
Assert (using
} that all fields of
are cleared, and that getting the fields returns their default values.
|
inlinestatic |
Assert (using
} that all extensions of
are cleared, and that getting the extensions returns their default values.
|
inlinestatic |
Assert (using
} that all extensions of
are cleared, and that getting the extensions returns their default values.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Assert (using
} that all fields of
are set to the values assigned by
.
|
inlinestatic |
Assert (using
} that all extensions of
are set to the values assigned by
followed by
.
|
inlinestatic |
Assert (using
} that all extensions of
are set to the values assigned by
followed by
.
|
inlinestatic |
Assert (using
} that all fields of
are set to the values assigned by
followed by
.
|
inlinestatic |
Assert (using
} that all fields of
are set to the values assigned by
.
|
inlinestatic |
Get a
with all fields set as they would be by setAllExtensions(TestAllExtensions.Builder).
|
inlinestatic |
|
inlinestatic |
Get a
with all fields set as they would be by setAllFields(TestAllTypes.Builder).
|
inlinestatic |
|
inlinestatic |
Get the bytes of the "golden message". This is a serialized TestAllTypes with all fields set as they would be by setAllFields(TestAllTypes.Builder), but it is loaded from a file on disk rather than generated dynamically. The file is actually generated by C++ code, so testing against it verifies compatibility with C++.
|
inlinestatic |
Get the bytes of the "golden packed fields message". This is a serialized TestPackedTypes with all fields set as they would be by setPackedFields(TestPackedTypes.Builder), but it is loaded from a file on disk rather than generated dynamically. The file is actually generated by C++ code, so testing against it verifies compatibility with C++.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Modify the repeated extensions of
to contain the values expected by
.
|
inlinestatic |
Modify the repeated fields of
to contain the values expected by
.
|
inlinestatic |
filename | The path relative to getTestDataDir. |
|
inlinestatic |
filePath | The path relative to getTestDataDir. |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Set every field of
to a unique value. Must correspond with the values applied by
.