5#include "flutter/shell/platform/common/client_wrapper/testing/test_codec_extensions.h"
21 if (
type == kPointType) {
22 int32_t
x =
stream->ReadInt32();
23 int32_t
y =
stream->ReadInt32();
31 auto custom_value = std::get_if<CustomEncodableValue>(&
value);
36 stream->WriteByte(kPointType);
37 const Point& point = std::any_cast<Point>(*custom_value);
54 if (
type == kSomeDataType) {
56 std::vector<uint8_t>
data;
67 auto custom_value = std::get_if<CustomEncodableValue>(&
value);
72 stream->WriteByte(kSomeDataType);
73 const SomeData& some_data = std::any_cast<SomeData>(*custom_value);
74 size_t data_size = some_data.
data().size();
76 stream->WriteBytes(some_data.
data().data(), data_size);
static const PointExtensionSerializer & GetInstance()
PointExtensionSerializer()
virtual ~PointExtensionSerializer()
EncodableValue ReadValueOfType(uint8_t type, ByteStreamReader *stream) const override
void WriteValue(const EncodableValue &value, ByteStreamWriter *stream) const override
void WriteValue(const EncodableValue &value, ByteStreamWriter *stream) const override
static const SomeDataExtensionSerializer & GetInstance()
EncodableValue ReadValueOfType(uint8_t type, ByteStreamReader *stream) const override
SomeDataExtensionSerializer()
virtual ~SomeDataExtensionSerializer()
const std::string & label() const
const std::vector< uint8_t > & data() const
virtual void WriteValue(const EncodableValue &value, ByteStreamWriter *stream) const
void WriteSize(size_t size, ByteStreamWriter *stream) const
EncodableValue ReadValue(ByteStreamReader *stream) const
virtual EncodableValue ReadValueOfType(uint8_t type, ByteStreamReader *stream) const
size_t ReadSize(ByteStreamReader *stream) const
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size