#import "flutter/shell/platform/darwin/common/framework/Headers/FlutterCodecs.h"
#include <CoreFoundation/CoreFoundation.h>
#include "gtest/gtest.h"
Go to the source code of this file.
Classes | |
class | Pair |
class | ExtendedWriter |
class | ExtendedReader |
class | ExtendedReaderWriter |
Functions | |
static void | CheckEncodeDecode (id value, NSData *expectedEncoding) |
static void | CheckEncodeDecode (id value) |
TEST (FlutterStandardCodec, CanDecodeZeroLength) | |
TEST (FlutterStandardCodec, CanEncodeAndDecodeNil) | |
TEST (FlutterStandardCodec, CanEncodeAndDecodeNSNull) | |
TEST (FlutterStandardCodec, CanEncodeAndDecodeYes) | |
TEST (FlutterStandardCodec, CanEncodeAndDecodeNo) | |
TEST (FlutterStandardCodec, CanEncodeAndDecodeUInt8) | |
TEST (FlutterStandardCodec, CanEncodeAndDecodeUInt16) | |
TEST (FlutterStandardCodec, CanEncodeAndDecodeUInt32) | |
TEST (FlutterStandardCodec, CanEncodeUInt64) | |
TEST (FlutterStandardCodec, CanEncodeAndDecodeSInt8) | |
TEST (FlutterStandardCodec, CanEncodeAndDecodeSInt16) | |
TEST (FlutterStandardCodec, CanEncodeAndDecodeSInt32) | |
TEST (FlutterStandardCodec, CanEncodeAndDecodeSInt64) | |
TEST (FlutterStandardCodec, CanEncodeAndDecodeFloat32) | |
TEST (FlutterStandardCodec, CanEncodeAndDecodeFloat64) | |
TEST (FlutterStandardCodec, CanEncodeAndDecodeString) | |
TEST (FlutterStandardCodec, CanEncodeAndDecodeStringWithNonAsciiCodePoint) | |
TEST (FlutterStandardCodec, CanEncodeAndDecodeStringWithNonBMPCodePoint) | |
TEST (FlutterStandardCodec, CanEncodeAndDecodeIndirectString) | |
TEST (FlutterStandardCodec, CanEncodeAndDecodeArray) | |
TEST (FlutterStandardCodec, CanEncodeAndDecodeDictionary) | |
TEST (FlutterStandardCodec, CanEncodeAndDecodeByteArray) | |
TEST (FlutterStandardCodec, CanEncodeAndDecodeNSData) | |
TEST (FlutterStandardCodec, CanEncodeAndDecodeInt32Array) | |
TEST (FlutterStandardCodec, CanEncodeAndDecodeInt64Array) | |
TEST (FlutterStandardCodec, CanEncodeAndDecodeFloat32Array) | |
TEST (FlutterStandardCodec, CanEncodeAndDecodeFloat64Array) | |
TEST (FlutterStandardCodec, HandlesMethodCallsWithNilArguments) | |
TEST (FlutterStandardCodec, HandlesMethodCallsWithSingleArgument) | |
TEST (FlutterStandardCodec, HandlesMethodCallsWithArgumentList) | |
TEST (FlutterStandardCodec, HandlesSuccessEnvelopesWithNilResult) | |
TEST (FlutterStandardCodec, HandlesSuccessEnvelopesWithSingleResult) | |
TEST (FlutterStandardCodec, HandlesSuccessEnvelopesWithResultMap) | |
TEST (FlutterStandardCodec, HandlesErrorEnvelopes) | |
TEST (FlutterStandardCodec, HandlesSubclasses) | |
Variables | |
static const UInt8 | kDATE = 128 |
static const UInt8 | kPAIR = 129 |
|
static |
Definition at line 108 of file flutter_standard_codec_unittest.mm.
References <FlutterMessageCodec>::decode:, <FlutterMessageCodec>::encode:, and <FlutterMessageCodec>::sharedInstance.
|
static |
Definition at line 92 of file flutter_standard_codec_unittest.mm.
References <FlutterMessageCodec>::decode:, <FlutterMessageCodec>::encode:, and <FlutterMessageCodec>::sharedInstance.
Referenced by TEST().
TEST | ( | FlutterStandardCodec | , |
CanDecodeZeroLength | |||
) |
Definition at line 119 of file flutter_standard_codec_unittest.mm.
References <FlutterMessageCodec>::decode:, and <FlutterMessageCodec>::sharedInstance.
TEST | ( | FlutterStandardCodec | , |
CanEncodeAndDecodeArray | |||
) |
TEST | ( | FlutterStandardCodec | , |
CanEncodeAndDecodeByteArray | |||
) |
Definition at line 247 of file flutter_standard_codec_unittest.mm.
References CheckEncodeDecode(), and FlutterStandardTypedData::typedDataWithBytes:.
TEST | ( | FlutterStandardCodec | , |
CanEncodeAndDecodeDictionary | |||
) |
TEST | ( | FlutterStandardCodec | , |
CanEncodeAndDecodeFloat32 | |||
) |
TEST | ( | FlutterStandardCodec | , |
CanEncodeAndDecodeFloat32Array | |||
) |
Definition at line 278 of file flutter_standard_codec_unittest.mm.
References CheckEncodeDecode(), and FlutterStandardTypedData::typedDataWithFloat32:.
TEST | ( | FlutterStandardCodec | , |
CanEncodeAndDecodeFloat64 | |||
) |
TEST | ( | FlutterStandardCodec | , |
CanEncodeAndDecodeFloat64Array | |||
) |
Definition at line 285 of file flutter_standard_codec_unittest.mm.
References CheckEncodeDecode(), and FlutterStandardTypedData::typedDataWithFloat64:.
TEST | ( | FlutterStandardCodec | , |
CanEncodeAndDecodeIndirectString | |||
) |
TEST | ( | FlutterStandardCodec | , |
CanEncodeAndDecodeInt32Array | |||
) |
Definition at line 264 of file flutter_standard_codec_unittest.mm.
References CheckEncodeDecode(), and FlutterStandardTypedData::typedDataWithInt32:.
TEST | ( | FlutterStandardCodec | , |
CanEncodeAndDecodeInt64Array | |||
) |
Definition at line 271 of file flutter_standard_codec_unittest.mm.
References CheckEncodeDecode(), and FlutterStandardTypedData::typedDataWithInt64:.
TEST | ( | FlutterStandardCodec | , |
CanEncodeAndDecodeNil | |||
) |
Definition at line 125 of file flutter_standard_codec_unittest.mm.
References CheckEncodeDecode().
TEST | ( | FlutterStandardCodec | , |
CanEncodeAndDecodeNo | |||
) |
TEST | ( | FlutterStandardCodec | , |
CanEncodeAndDecodeNSData | |||
) |
Definition at line 254 of file flutter_standard_codec_unittest.mm.
References <FlutterMessageCodec>::encode:, <FlutterMessageCodec>::sharedInstance, and FlutterStandardTypedData::typedDataWithBytes:.
TEST | ( | FlutterStandardCodec | , |
CanEncodeAndDecodeNSNull | |||
) |
TEST | ( | FlutterStandardCodec | , |
CanEncodeAndDecodeSInt16 | |||
) |
TEST | ( | FlutterStandardCodec | , |
CanEncodeAndDecodeSInt32 | |||
) |
TEST | ( | FlutterStandardCodec | , |
CanEncodeAndDecodeSInt64 | |||
) |
TEST | ( | FlutterStandardCodec | , |
CanEncodeAndDecodeSInt8 | |||
) |
TEST | ( | FlutterStandardCodec | , |
CanEncodeAndDecodeString | |||
) |
TEST | ( | FlutterStandardCodec | , |
CanEncodeAndDecodeStringWithNonAsciiCodePoint | |||
) |
TEST | ( | FlutterStandardCodec | , |
CanEncodeAndDecodeStringWithNonBMPCodePoint | |||
) |
TEST | ( | FlutterStandardCodec | , |
CanEncodeAndDecodeUInt16 | |||
) |
TEST | ( | FlutterStandardCodec | , |
CanEncodeAndDecodeUInt32 | |||
) |
TEST | ( | FlutterStandardCodec | , |
CanEncodeAndDecodeUInt8 | |||
) |
TEST | ( | FlutterStandardCodec | , |
CanEncodeAndDecodeYes | |||
) |
TEST | ( | FlutterStandardCodec | , |
CanEncodeUInt64 | |||
) |
Definition at line 162 of file flutter_standard_codec_unittest.mm.
References <FlutterMessageCodec>::encode:, and <FlutterMessageCodec>::sharedInstance.
TEST | ( | FlutterStandardCodec | , |
HandlesErrorEnvelopes | |||
) |
Definition at line 341 of file flutter_standard_codec_unittest.mm.
References FlutterError::errorWithCode:message:details:.
TEST | ( | FlutterStandardCodec | , |
HandlesMethodCallsWithArgumentList | |||
) |
Definition at line 309 of file flutter_standard_codec_unittest.mm.
References FlutterMethodCall::methodCallWithMethodName:arguments:.
TEST | ( | FlutterStandardCodec | , |
HandlesMethodCallsWithNilArguments | |||
) |
Definition at line 293 of file flutter_standard_codec_unittest.mm.
References FlutterMethodCall::methodCallWithMethodName:arguments:.
TEST | ( | FlutterStandardCodec | , |
HandlesMethodCallsWithSingleArgument | |||
) |
Definition at line 301 of file flutter_standard_codec_unittest.mm.
References FlutterMethodCall::methodCallWithMethodName:arguments:.
TEST | ( | FlutterStandardCodec | , |
HandlesSubclasses | |||
) |
Definition at line 352 of file flutter_standard_codec_unittest.mm.
References FlutterStandardMessageCodec::codecWithReaderWriter:, <FlutterMessageCodec>::decode:, <FlutterMessageCodec>::encode:, Pair::left, and Pair::right.
TEST | ( | FlutterStandardCodec | , |
HandlesSuccessEnvelopesWithNilResult | |||
) |
Definition at line 319 of file flutter_standard_codec_unittest.mm.
TEST | ( | FlutterStandardCodec | , |
HandlesSuccessEnvelopesWithResultMap | |||
) |
Definition at line 333 of file flutter_standard_codec_unittest.mm.
TEST | ( | FlutterStandardCodec | , |
HandlesSuccessEnvelopesWithSingleResult | |||
) |
Definition at line 326 of file flutter_standard_codec_unittest.mm.
|
static |
Definition at line 30 of file flutter_standard_codec_unittest.mm.
Referenced by ExtendedReader::readValueOfType:.
|
static |
Definition at line 31 of file flutter_standard_codec_unittest.mm.
Referenced by ExtendedReader::readValueOfType:.