Flutter iOS Embedder
standard_message_codec_unittests.cc File Reference
#include "flutter/shell/platform/common/client_wrapper/include/flutter/standard_message_codec.h"
#include <map>
#include <vector>
#include "flutter/shell/platform/common/client_wrapper/testing/test_codec_extensions.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"

Go to the source code of this file.

Namespaces

 flutter
 

Functions

static void flutter::CheckEncodeDecode (const EncodableValue &value, const std::vector< uint8_t > &expected_encoding, const StandardCodecSerializer *serializer=nullptr, const std::function< bool(const EncodableValue &a, const EncodableValue &b)> &custom_comparator=nullptr)
 
static void flutter::CheckEncodeDecodeWithEncodePrefix (const EncodableValue &value, const std::vector< uint8_t > &expected_encoding_prefix, size_t expected_encoding_length)
 
 flutter::TEST (StandardMessageCodec, GetInstanceCachesInstance)
 
 flutter::TEST (StandardMessageCodec, CanEncodeAndDecodeNull)
 
 flutter::TEST (StandardMessageCodec, CanDecodeEmptyBytesAsNullWithoutCallingSerializer)
 
 flutter::TEST (StandardMessageCodec, CanEncodeAndDecodeTrue)
 
 flutter::TEST (StandardMessageCodec, CanEncodeAndDecodeFalse)
 
 flutter::TEST (StandardMessageCodec, CanEncodeAndDecodeInt32)
 
 flutter::TEST (StandardMessageCodec, CanEncodeAndDecodeInt64)
 
 flutter::TEST (StandardMessageCodec, CanEncodeAndDecodeDouble)
 
 flutter::TEST (StandardMessageCodec, CanEncodeAndDecodeString)
 
 flutter::TEST (StandardMessageCodec, CanEncodeAndDecodeStringWithNonAsciiCodePoint)
 
 flutter::TEST (StandardMessageCodec, CanEncodeAndDecodeStringWithNonBMPCodePoint)
 
 flutter::TEST (StandardMessageCodec, CanEncodeAndDecodeEmptyString)
 
 flutter::TEST (StandardMessageCodec, CanEncodeAndDecodeList)
 
 flutter::TEST (StandardMessageCodec, CanEncodeAndDecodeEmptyList)
 
 flutter::TEST (StandardMessageCodec, CanEncodeAndDecodeMap)
 
 flutter::TEST (StandardMessageCodec, CanEncodeAndDecodeByteArray)
 
 flutter::TEST (StandardMessageCodec, CanEncodeAndDecodeInt32Array)
 
 flutter::TEST (StandardMessageCodec, CanEncodeAndDecodeInt64Array)
 
 flutter::TEST (StandardMessageCodec, CanEncodeAndDecodeFloat32Array)
 
 flutter::TEST (StandardMessageCodec, CanEncodeAndDecodeFloat64Array)
 
 flutter::TEST (StandardMessageCodec, CanEncodeAndDecodeSimpleCustomType)
 
 flutter::TEST (StandardMessageCodec, CanEncodeAndDecodeVariableLengthCustomType)