#include "flutter/shell/platform/linux/public/flutter_linux/fl_json_message_codec.h"
#include "gtest/gtest.h"
#include <cmath>
Go to the source code of this file.
Functions | |
static gchar * | encode_message (FlValue *value) |
static void | encode_error_message (FlValue *value, GQuark domain, gint code) |
static FlValue * | decode_message (const char *text) |
static void | decode_error_message (const char *text, GQuark domain, gint code) |
TEST (FlJsonMessageCodecTest, EncodeNullptr) | |
TEST (FlJsonMessageCodecTest, EncodeNull) | |
TEST (FlJsonMessageCodecTest, DecodeNull) | |
static gchar * | encode_bool (gboolean value) |
TEST (FlJsonMessageCodecTest, EncodeBoolFalse) | |
TEST (FlJsonMessageCodecTest, EncodeBoolTrue) | |
TEST (FlJsonMessageCodecTest, DecodeBoolFalse) | |
TEST (FlJsonMessageCodecTest, DecodeBoolTrue) | |
static gchar * | encode_int (int64_t value) |
TEST (FlJsonMessageCodecTest, EncodeIntZero) | |
TEST (FlJsonMessageCodecTest, EncodeIntOne) | |
TEST (FlJsonMessageCodecTest, EncodeInt12345) | |
TEST (FlJsonMessageCodecTest, EncodeIntMin) | |
TEST (FlJsonMessageCodecTest, EncodeIntMax) | |
TEST (FlJsonMessageCodecTest, DecodeIntZero) | |
TEST (FlJsonMessageCodecTest, DecodeIntOne) | |
TEST (FlJsonMessageCodecTest, DecodeInt12345) | |
TEST (FlJsonMessageCodecTest, DecodeIntMin) | |
TEST (FlJsonMessageCodecTest, DecodeIntMax) | |
TEST (FlJsonMessageCodecTest, DecodeUintMax) | |
TEST (FlJsonMessageCodecTest, DecodeHugeNumber) | |
TEST (FlJsonMessageCodecTest, DecodeIntLeadingZero1) | |
TEST (FlJsonMessageCodecTest, DecodeIntLeadingZero2) | |
TEST (FlJsonMessageCodecTest, DecodeIntDoubleNegative) | |
TEST (FlJsonMessageCodecTest, DecodeIntPositiveSign) | |
TEST (FlJsonMessageCodecTest, DecodeIntHexChar) | |
static gchar * | encode_float (double value) |
TEST (FlJsonMessageCodecTest, EncodeFloatZero) | |
TEST (FlJsonMessageCodecTest, EncodeFloatOne) | |
TEST (FlJsonMessageCodecTest, EncodeFloatMinusOne) | |
TEST (FlJsonMessageCodecTest, EncodeFloatHalf) | |
TEST (FlJsonMessageCodecTest, EncodeFloatPi) | |
TEST (FlJsonMessageCodecTest, EncodeFloatMinusZero) | |
TEST (FlJsonMessageCodecTest, DecodeFloatZero) | |
TEST (FlJsonMessageCodecTest, DecodeFloatOne) | |
TEST (FlJsonMessageCodecTest, DecodeFloatMinusOne) | |
TEST (FlJsonMessageCodecTest, DecodeFloatHalf) | |
TEST (FlJsonMessageCodecTest, DecodeFloatPi) | |
TEST (FlJsonMessageCodecTest, DecodeFloatMinusZero) | |
TEST (FlJsonMessageCodecTest, DecodeFloatMissingFraction) | |
TEST (FlJsonMessageCodecTest, DecodeFloatInvalidFraction) | |
static gchar * | encode_string (const gchar *value) |
TEST (FlJsonMessageCodecTest, EncodeStringEmpty) | |
TEST (FlJsonMessageCodecTest, EncodeStringHello) | |
TEST (FlJsonMessageCodecTest, EncodeStringEmptySized) | |
TEST (FlJsonMessageCodecTest, EncodeStringHelloSized) | |
TEST (FlJsonMessageCodecTest, EncodeStringEscapeQuote) | |
TEST (FlJsonMessageCodecTest, EncodeStringEscapeBackslash) | |
TEST (FlJsonMessageCodecTest, EncodeStringEscapeBackspace) | |
TEST (FlJsonMessageCodecTest, EncodeStringEscapeFormFeed) | |
TEST (FlJsonMessageCodecTest, EncodeStringEscapeNewline) | |
TEST (FlJsonMessageCodecTest, EncodeStringEscapeCarriageReturn) | |
TEST (FlJsonMessageCodecTest, EncodeStringEscapeTab) | |
TEST (FlJsonMessageCodecTest, EncodeStringEscapeUnicode) | |
TEST (FlJsonMessageCodecTest, EncodeStringEmoji) | |
TEST (FlJsonMessageCodecTest, DecodeStringEmpty) | |
TEST (FlJsonMessageCodecTest, DecodeStringHello) | |
TEST (FlJsonMessageCodecTest, DecodeStringEscapeQuote) | |
TEST (FlJsonMessageCodecTest, DecodeStringEscapeBackslash) | |
TEST (FlJsonMessageCodecTest, DecodeStringEscapeSlash) | |
TEST (FlJsonMessageCodecTest, DecodeStringEscapeBackspace) | |
TEST (FlJsonMessageCodecTest, DecodeStringEscapeFormFeed) | |
TEST (FlJsonMessageCodecTest, DecodeStringEscapeNewline) | |
TEST (FlJsonMessageCodecTest, DecodeStringEscapeCarriageReturn) | |
TEST (FlJsonMessageCodecTest, DecodeStringEscapeTab) | |
TEST (FlJsonMessageCodecTest, DecodeStringEscapeUnicode) | |
TEST (FlJsonMessageCodecTest, DecodeStringEmoji) | |
TEST (FlJsonMessageCodecTest, DecodeInvalidUTF8) | |
TEST (FlJsonMessageCodecTest, DecodeStringInvalidUTF8) | |
TEST (FlJsonMessageCodecTest, DecodeStringBinary) | |
TEST (FlJsonMessageCodecTest, DecodeStringNewline) | |
TEST (FlJsonMessageCodecTest, DecodeStringCarriageReturn) | |
TEST (FlJsonMessageCodecTest, DecodeStringTab) | |
TEST (FlJsonMessageCodecTest, DecodeStringUnterminatedEmpty) | |
TEST (FlJsonMessageCodecTest, DecodeStringExtraQuote) | |
TEST (FlJsonMessageCodecTest, DecodeStringEscapedClosingQuote) | |
TEST (FlJsonMessageCodecTest, DecodeStringUnknownEscape) | |
TEST (FlJsonMessageCodecTest, DecodeStringInvalidEscapeUnicode) | |
TEST (FlJsonMessageCodecTest, DecodeStringEscapeUnicodeNoData) | |
TEST (FlJsonMessageCodecTest, DecodeStringEscapeUnicodeShortData) | |
TEST (FlJsonMessageCodecTest, EncodeUint8ListEmpty) | |
TEST (FlJsonMessageCodecTest, EncodeUint8List) | |
TEST (FlJsonMessageCodecTest, EncodeInt32ListEmpty) | |
TEST (FlJsonMessageCodecTest, EncodeInt32List) | |
TEST (FlJsonMessageCodecTest, EncodeInt64ListEmpty) | |
TEST (FlJsonMessageCodecTest, EncodeInt64List) | |
TEST (FlJsonMessageCodecTest, EncodeFloatListEmpty) | |
TEST (FlJsonMessageCodecTest, EncodeFloatList) | |
TEST (FlJsonMessageCodecTest, EncodeListEmpty) | |
TEST (FlJsonMessageCodecTest, EncodeListTypes) | |
TEST (FlJsonMessageCodecTest, EncodeListNested) | |
TEST (FlJsonMessageCodecTest, DecodeListEmpty) | |
TEST (FlJsonMessageCodecTest, DecodeListNoComma) | |
TEST (FlJsonMessageCodecTest, DecodeListUnterminatedEmpty) | |
TEST (FlJsonMessageCodecTest, DecodeListStartUnterminate) | |
TEST (FlJsonMessageCodecTest, DecodeListUnterminated) | |
TEST (FlJsonMessageCodecTest, DecodeListDoubleTerminated) | |
TEST (FlJsonMessageCodecTest, EncodeMapEmpty) | |
TEST (FlJsonMessageCodecTest, EncodeMapNullKey) | |
TEST (FlJsonMessageCodecTest, EncodeMapBoolKey) | |
TEST (FlJsonMessageCodecTest, EncodeMapIntKey) | |
TEST (FlJsonMessageCodecTest, EncodeMapFloatKey) | |
TEST (FlJsonMessageCodecTest, EncodeMapUint8ListKey) | |
TEST (FlJsonMessageCodecTest, EncodeMapInt32ListKey) | |
TEST (FlJsonMessageCodecTest, EncodeMapInt64ListKey) | |
TEST (FlJsonMessageCodecTest, EncodeMapFloatListKey) | |
TEST (FlJsonMessageCodecTest, EncodeMapListKey) | |
TEST (FlJsonMessageCodecTest, EncodeMapMapKey) | |
TEST (FlJsonMessageCodecTest, EncodeMapValueTypes) | |
TEST (FlJsonMessageCodecTest, EncodeMapNested) | |
TEST (FlJsonMessageCodecTest, DecodeMapEmpty) | |
TEST (FlJsonMessageCodecTest, DecodeMapUnterminatedEmpty) | |
TEST (FlJsonMessageCodecTest, DecodeMapStartUnterminate) | |
TEST (FlJsonMessageCodecTest, DecodeMapNoComma) | |
TEST (FlJsonMessageCodecTest, DecodeMapNoColon) | |
TEST (FlJsonMessageCodecTest, DecodeMapUnterminated) | |
TEST (FlJsonMessageCodecTest, DecodeMapDoubleTerminated) | |
TEST (FlJsonMessageCodecTest, DecodeUnknownWord) | |
TEST (FlJsonMessageCodecTest, EncodeDecode) | |
|
static |
Definition at line 41 of file fl_json_message_codec_test.cc.
References error, fl_json_message_codec_decode(), fl_json_message_codec_new(), and value.
Referenced by TEST().
|
static |
Definition at line 30 of file fl_json_message_codec_test.cc.
References error, fl_json_message_codec_decode(), fl_json_message_codec_new(), fl_value_ref(), and value.
Referenced by TEST().
|
static |
Definition at line 65 of file fl_json_message_codec_test.cc.
References encode_message(), fl_value_new_bool(), and value.
Referenced by TEST().
|
static |
Definition at line 21 of file fl_json_message_codec_test.cc.
References error, fl_json_message_codec_encode(), fl_json_message_codec_new(), result, and value.
Referenced by TEST().
|
static |
Definition at line 193 of file fl_json_message_codec_test.cc.
References encode_message(), fl_value_new_float(), and value.
Referenced by TEST().
|
static |
Definition at line 92 of file fl_json_message_codec_test.cc.
References encode_message(), fl_value_new_int(), and value.
Referenced by TEST().
|
static |
Definition at line 11 of file fl_json_message_codec_test.cc.
References error, fl_json_message_codec_encode(), fl_json_message_codec_new(), result, and value.
Referenced by encode_bool(), encode_float(), encode_int(), encode_string(), and TEST().
|
static |
Definition at line 277 of file fl_json_message_codec_test.cc.
References encode_message(), fl_value_new_string(), and value.
Referenced by TEST().
TEST | ( | FlJsonMessageCodecTest | , |
DecodeBoolFalse | |||
) |
Definition at line 80 of file fl_json_message_codec_test.cc.
References decode_message(), fl_value_get_bool(), fl_value_get_type(), FL_VALUE_TYPE_BOOL, and value.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeBoolTrue | |||
) |
Definition at line 86 of file fl_json_message_codec_test.cc.
References decode_message(), fl_value_get_bool(), fl_value_get_type(), FL_VALUE_TYPE_BOOL, and value.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeFloatHalf | |||
) |
Definition at line 249 of file fl_json_message_codec_test.cc.
References decode_message(), fl_value_get_float(), fl_value_get_type(), FL_VALUE_TYPE_FLOAT, and value.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeFloatInvalidFraction | |||
) |
Definition at line 272 of file fl_json_message_codec_test.cc.
References decode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, and FL_JSON_MESSAGE_CODEC_ERROR_INVALID_JSON.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeFloatMinusOne | |||
) |
Definition at line 243 of file fl_json_message_codec_test.cc.
References decode_message(), fl_value_get_float(), fl_value_get_type(), FL_VALUE_TYPE_FLOAT, and value.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeFloatMinusZero | |||
) |
Definition at line 261 of file fl_json_message_codec_test.cc.
References decode_message(), fl_value_get_float(), fl_value_get_type(), FL_VALUE_TYPE_FLOAT, and value.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeFloatMissingFraction | |||
) |
Definition at line 267 of file fl_json_message_codec_test.cc.
References decode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, and FL_JSON_MESSAGE_CODEC_ERROR_INVALID_JSON.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeFloatOne | |||
) |
Definition at line 237 of file fl_json_message_codec_test.cc.
References decode_message(), fl_value_get_float(), fl_value_get_type(), FL_VALUE_TYPE_FLOAT, and value.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeFloatPi | |||
) |
Definition at line 255 of file fl_json_message_codec_test.cc.
References decode_message(), fl_value_get_float(), fl_value_get_type(), FL_VALUE_TYPE_FLOAT, and value.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeFloatZero | |||
) |
Definition at line 231 of file fl_json_message_codec_test.cc.
References decode_message(), fl_value_get_float(), fl_value_get_type(), FL_VALUE_TYPE_FLOAT, and value.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeHugeNumber | |||
) |
Definition at line 160 of file fl_json_message_codec_test.cc.
References decode_message(), fl_value_get_float(), fl_value_get_type(), FL_VALUE_TYPE_FLOAT, and value.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeInt12345 | |||
) |
Definition at line 134 of file fl_json_message_codec_test.cc.
References decode_message(), fl_value_get_int(), fl_value_get_type(), FL_VALUE_TYPE_INT, and value.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeIntDoubleNegative | |||
) |
Definition at line 178 of file fl_json_message_codec_test.cc.
References decode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, and FL_JSON_MESSAGE_CODEC_ERROR_INVALID_JSON.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeIntHexChar | |||
) |
Definition at line 188 of file fl_json_message_codec_test.cc.
References decode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, and FL_JSON_MESSAGE_CODEC_ERROR_INVALID_JSON.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeIntLeadingZero1 | |||
) |
Definition at line 168 of file fl_json_message_codec_test.cc.
References decode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, and FL_JSON_MESSAGE_CODEC_ERROR_INVALID_JSON.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeIntLeadingZero2 | |||
) |
Definition at line 173 of file fl_json_message_codec_test.cc.
References decode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, and FL_JSON_MESSAGE_CODEC_ERROR_INVALID_JSON.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeIntMax | |||
) |
Definition at line 146 of file fl_json_message_codec_test.cc.
References decode_message(), fl_value_get_int(), fl_value_get_type(), FL_VALUE_TYPE_INT, and value.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeIntMin | |||
) |
Definition at line 140 of file fl_json_message_codec_test.cc.
References decode_message(), fl_value_get_int(), fl_value_get_type(), FL_VALUE_TYPE_INT, and value.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeIntOne | |||
) |
Definition at line 128 of file fl_json_message_codec_test.cc.
References decode_message(), fl_value_get_int(), fl_value_get_type(), FL_VALUE_TYPE_INT, and value.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeIntPositiveSign | |||
) |
Definition at line 183 of file fl_json_message_codec_test.cc.
References decode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, and FL_JSON_MESSAGE_CODEC_ERROR_INVALID_JSON.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeIntZero | |||
) |
Definition at line 122 of file fl_json_message_codec_test.cc.
References decode_message(), fl_value_get_int(), fl_value_get_type(), FL_VALUE_TYPE_INT, and value.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeInvalidUTF8 | |||
) |
Definition at line 421 of file fl_json_message_codec_test.cc.
References decode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, and FL_JSON_MESSAGE_CODEC_ERROR_INVALID_UTF8.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeListDoubleTerminated | |||
) |
Definition at line 600 of file fl_json_message_codec_test.cc.
References decode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, and FL_JSON_MESSAGE_CODEC_ERROR_INVALID_JSON.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeListEmpty | |||
) |
Definition at line 574 of file fl_json_message_codec_test.cc.
References decode_message(), fl_value_get_length(), fl_value_get_type(), FL_VALUE_TYPE_LIST, and value.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeListNoComma | |||
) |
Definition at line 580 of file fl_json_message_codec_test.cc.
References decode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, and FL_JSON_MESSAGE_CODEC_ERROR_INVALID_JSON.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeListStartUnterminate | |||
) |
Definition at line 590 of file fl_json_message_codec_test.cc.
References decode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, and FL_JSON_MESSAGE_CODEC_ERROR_INVALID_JSON.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeListUnterminated | |||
) |
Definition at line 595 of file fl_json_message_codec_test.cc.
References decode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, and FL_JSON_MESSAGE_CODEC_ERROR_INVALID_JSON.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeListUnterminatedEmpty | |||
) |
Definition at line 585 of file fl_json_message_codec_test.cc.
References decode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, and FL_JSON_MESSAGE_CODEC_ERROR_INVALID_JSON.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeMapDoubleTerminated | |||
) |
Definition at line 750 of file fl_json_message_codec_test.cc.
References decode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, and FL_JSON_MESSAGE_CODEC_ERROR_INVALID_JSON.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeMapEmpty | |||
) |
Definition at line 719 of file fl_json_message_codec_test.cc.
References decode_message(), fl_value_get_length(), fl_value_get_type(), FL_VALUE_TYPE_MAP, and value.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeMapNoColon | |||
) |
Definition at line 740 of file fl_json_message_codec_test.cc.
References decode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, and FL_JSON_MESSAGE_CODEC_ERROR_INVALID_JSON.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeMapNoComma | |||
) |
Definition at line 735 of file fl_json_message_codec_test.cc.
References decode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, and FL_JSON_MESSAGE_CODEC_ERROR_INVALID_JSON.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeMapStartUnterminate | |||
) |
Definition at line 730 of file fl_json_message_codec_test.cc.
References decode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, and FL_JSON_MESSAGE_CODEC_ERROR_INVALID_JSON.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeMapUnterminated | |||
) |
Definition at line 745 of file fl_json_message_codec_test.cc.
References decode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, and FL_JSON_MESSAGE_CODEC_ERROR_INVALID_JSON.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeMapUnterminatedEmpty | |||
) |
Definition at line 725 of file fl_json_message_codec_test.cc.
References decode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, and FL_JSON_MESSAGE_CODEC_ERROR_INVALID_JSON.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeNull | |||
) |
Definition at line 60 of file fl_json_message_codec_test.cc.
References decode_message(), fl_value_get_type(), FL_VALUE_TYPE_NULL, and value.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeStringBinary | |||
) |
Definition at line 431 of file fl_json_message_codec_test.cc.
References decode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, and FL_JSON_MESSAGE_CODEC_ERROR_INVALID_JSON.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeStringCarriageReturn | |||
) |
Definition at line 441 of file fl_json_message_codec_test.cc.
References decode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, and FL_JSON_MESSAGE_CODEC_ERROR_INVALID_JSON.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeStringEmoji | |||
) |
Definition at line 415 of file fl_json_message_codec_test.cc.
References decode_message(), fl_value_get_string(), fl_value_get_type(), FL_VALUE_TYPE_STRING, and value.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeStringEmpty | |||
) |
Definition at line 349 of file fl_json_message_codec_test.cc.
References decode_message(), fl_value_get_string(), fl_value_get_type(), FL_VALUE_TYPE_STRING, and value.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeStringEscapeBackslash | |||
) |
Definition at line 367 of file fl_json_message_codec_test.cc.
References decode_message(), fl_value_get_string(), fl_value_get_type(), FL_VALUE_TYPE_STRING, and value.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeStringEscapeBackspace | |||
) |
Definition at line 379 of file fl_json_message_codec_test.cc.
References decode_message(), fl_value_get_string(), fl_value_get_type(), FL_VALUE_TYPE_STRING, and value.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeStringEscapeCarriageReturn | |||
) |
Definition at line 397 of file fl_json_message_codec_test.cc.
References decode_message(), fl_value_get_string(), fl_value_get_type(), FL_VALUE_TYPE_STRING, and value.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeStringEscapedClosingQuote | |||
) |
Definition at line 461 of file fl_json_message_codec_test.cc.
References decode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, and FL_JSON_MESSAGE_CODEC_ERROR_INVALID_JSON.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeStringEscapeFormFeed | |||
) |
Definition at line 385 of file fl_json_message_codec_test.cc.
References decode_message(), fl_value_get_string(), fl_value_get_type(), FL_VALUE_TYPE_STRING, and value.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeStringEscapeNewline | |||
) |
Definition at line 391 of file fl_json_message_codec_test.cc.
References decode_message(), fl_value_get_string(), fl_value_get_type(), FL_VALUE_TYPE_STRING, and value.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeStringEscapeQuote | |||
) |
Definition at line 361 of file fl_json_message_codec_test.cc.
References decode_message(), fl_value_get_string(), fl_value_get_type(), FL_VALUE_TYPE_STRING, and value.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeStringEscapeSlash | |||
) |
Definition at line 373 of file fl_json_message_codec_test.cc.
References decode_message(), fl_value_get_string(), fl_value_get_type(), FL_VALUE_TYPE_STRING, and value.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeStringEscapeTab | |||
) |
Definition at line 403 of file fl_json_message_codec_test.cc.
References decode_message(), fl_value_get_string(), fl_value_get_type(), FL_VALUE_TYPE_STRING, and value.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeStringEscapeUnicode | |||
) |
Definition at line 409 of file fl_json_message_codec_test.cc.
References decode_message(), fl_value_get_string(), fl_value_get_type(), FL_VALUE_TYPE_STRING, and value.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeStringEscapeUnicodeNoData | |||
) |
Definition at line 476 of file fl_json_message_codec_test.cc.
References decode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, and FL_JSON_MESSAGE_CODEC_ERROR_INVALID_JSON.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeStringEscapeUnicodeShortData | |||
) |
Definition at line 481 of file fl_json_message_codec_test.cc.
References decode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, and FL_JSON_MESSAGE_CODEC_ERROR_INVALID_JSON.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeStringExtraQuote | |||
) |
Definition at line 456 of file fl_json_message_codec_test.cc.
References decode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, and FL_JSON_MESSAGE_CODEC_ERROR_INVALID_JSON.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeStringHello | |||
) |
Definition at line 355 of file fl_json_message_codec_test.cc.
References decode_message(), fl_value_get_string(), fl_value_get_type(), FL_VALUE_TYPE_STRING, and value.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeStringInvalidEscapeUnicode | |||
) |
Definition at line 471 of file fl_json_message_codec_test.cc.
References decode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, and FL_JSON_MESSAGE_CODEC_ERROR_INVALID_JSON.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeStringInvalidUTF8 | |||
) |
Definition at line 426 of file fl_json_message_codec_test.cc.
References decode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, and FL_JSON_MESSAGE_CODEC_ERROR_INVALID_UTF8.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeStringNewline | |||
) |
Definition at line 436 of file fl_json_message_codec_test.cc.
References decode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, and FL_JSON_MESSAGE_CODEC_ERROR_INVALID_JSON.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeStringTab | |||
) |
Definition at line 446 of file fl_json_message_codec_test.cc.
References decode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, and FL_JSON_MESSAGE_CODEC_ERROR_INVALID_JSON.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeStringUnknownEscape | |||
) |
Definition at line 466 of file fl_json_message_codec_test.cc.
References decode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, and FL_JSON_MESSAGE_CODEC_ERROR_INVALID_JSON.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeStringUnterminatedEmpty | |||
) |
Definition at line 451 of file fl_json_message_codec_test.cc.
References decode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, and FL_JSON_MESSAGE_CODEC_ERROR_INVALID_JSON.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeUintMax | |||
) |
Definition at line 152 of file fl_json_message_codec_test.cc.
References decode_message(), fl_value_get_float(), fl_value_get_type(), FL_VALUE_TYPE_FLOAT, and value.
TEST | ( | FlJsonMessageCodecTest | , |
DecodeUnknownWord | |||
) |
Definition at line 755 of file fl_json_message_codec_test.cc.
References decode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, and FL_JSON_MESSAGE_CODEC_ERROR_INVALID_JSON.
TEST | ( | FlJsonMessageCodecTest | , |
EncodeBoolFalse | |||
) |
Definition at line 70 of file fl_json_message_codec_test.cc.
References encode_bool().
TEST | ( | FlJsonMessageCodecTest | , |
EncodeBoolTrue | |||
) |
Definition at line 75 of file fl_json_message_codec_test.cc.
References encode_bool(), and TRUE.
TEST | ( | FlJsonMessageCodecTest | , |
EncodeDecode | |||
) |
Definition at line 760 of file fl_json_message_codec_test.cc.
References error, fl_json_message_codec_decode(), fl_json_message_codec_encode(), fl_json_message_codec_new(), fl_value_append_take(), fl_value_equal(), fl_value_new_bool(), fl_value_new_float(), fl_value_new_int(), fl_value_new_list(), fl_value_new_map(), fl_value_new_null(), fl_value_new_string(), and TRUE.
TEST | ( | FlJsonMessageCodecTest | , |
EncodeFloatHalf | |||
) |
Definition at line 213 of file fl_json_message_codec_test.cc.
References encode_float().
TEST | ( | FlJsonMessageCodecTest | , |
EncodeFloatList | |||
) |
Definition at line 531 of file fl_json_message_codec_test.cc.
References encode_message(), fl_value_new_float_list(), and value.
TEST | ( | FlJsonMessageCodecTest | , |
EncodeFloatListEmpty | |||
) |
Definition at line 525 of file fl_json_message_codec_test.cc.
References encode_message(), fl_value_new_float_list(), and value.
TEST | ( | FlJsonMessageCodecTest | , |
EncodeFloatMinusOne | |||
) |
Definition at line 208 of file fl_json_message_codec_test.cc.
References encode_float().
TEST | ( | FlJsonMessageCodecTest | , |
EncodeFloatMinusZero | |||
) |
Definition at line 223 of file fl_json_message_codec_test.cc.
References encode_float().
TEST | ( | FlJsonMessageCodecTest | , |
EncodeFloatOne | |||
) |
Definition at line 203 of file fl_json_message_codec_test.cc.
References encode_float().
TEST | ( | FlJsonMessageCodecTest | , |
EncodeFloatPi | |||
) |
TEST | ( | FlJsonMessageCodecTest | , |
EncodeFloatZero | |||
) |
Definition at line 198 of file fl_json_message_codec_test.cc.
References encode_float().
TEST | ( | FlJsonMessageCodecTest | , |
EncodeInt12345 | |||
) |
Definition at line 107 of file fl_json_message_codec_test.cc.
References encode_int().
TEST | ( | FlJsonMessageCodecTest | , |
EncodeInt32List | |||
) |
Definition at line 505 of file fl_json_message_codec_test.cc.
References encode_message(), fl_value_new_int32_list(), and value.
TEST | ( | FlJsonMessageCodecTest | , |
EncodeInt32ListEmpty | |||
) |
Definition at line 499 of file fl_json_message_codec_test.cc.
References encode_message(), fl_value_new_int32_list(), and value.
TEST | ( | FlJsonMessageCodecTest | , |
EncodeInt64List | |||
) |
Definition at line 518 of file fl_json_message_codec_test.cc.
References encode_message(), fl_value_new_int64_list(), and value.
TEST | ( | FlJsonMessageCodecTest | , |
EncodeInt64ListEmpty | |||
) |
Definition at line 512 of file fl_json_message_codec_test.cc.
References encode_message(), fl_value_new_int64_list(), and value.
TEST | ( | FlJsonMessageCodecTest | , |
EncodeIntMax | |||
) |
TEST | ( | FlJsonMessageCodecTest | , |
EncodeIntMin | |||
) |
TEST | ( | FlJsonMessageCodecTest | , |
EncodeIntOne | |||
) |
Definition at line 102 of file fl_json_message_codec_test.cc.
References encode_int().
TEST | ( | FlJsonMessageCodecTest | , |
EncodeIntZero | |||
) |
Definition at line 97 of file fl_json_message_codec_test.cc.
References encode_int().
TEST | ( | FlJsonMessageCodecTest | , |
EncodeListEmpty | |||
) |
Definition at line 538 of file fl_json_message_codec_test.cc.
References encode_message(), fl_value_new_list(), and value.
TEST | ( | FlJsonMessageCodecTest | , |
EncodeListNested | |||
) |
Definition at line 557 of file fl_json_message_codec_test.cc.
References encode_message(), fl_value_append(), fl_value_append_take(), fl_value_new_int(), fl_value_new_list(), i, and value.
TEST | ( | FlJsonMessageCodecTest | , |
EncodeListTypes | |||
) |
Definition at line 544 of file fl_json_message_codec_test.cc.
References encode_message(), fl_value_append_take(), fl_value_new_bool(), fl_value_new_float(), fl_value_new_int(), fl_value_new_list(), fl_value_new_map(), fl_value_new_null(), fl_value_new_string(), TRUE, and value.
TEST | ( | FlJsonMessageCodecTest | , |
EncodeMapBoolKey | |||
) |
Definition at line 618 of file fl_json_message_codec_test.cc.
References encode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, FL_JSON_MESSAGE_CODEC_ERROR_INVALID_OBJECT_KEY_TYPE, fl_value_new_bool(), fl_value_new_map(), fl_value_new_string(), fl_value_set_take(), TRUE, and value.
TEST | ( | FlJsonMessageCodecTest | , |
EncodeMapEmpty | |||
) |
Definition at line 605 of file fl_json_message_codec_test.cc.
References encode_message(), fl_value_new_map(), and value.
TEST | ( | FlJsonMessageCodecTest | , |
EncodeMapFloatKey | |||
) |
Definition at line 633 of file fl_json_message_codec_test.cc.
References encode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, FL_JSON_MESSAGE_CODEC_ERROR_INVALID_OBJECT_KEY_TYPE, fl_value_new_float(), fl_value_new_map(), fl_value_new_string(), fl_value_set_take(), and value.
TEST | ( | FlJsonMessageCodecTest | , |
EncodeMapFloatListKey | |||
) |
Definition at line 665 of file fl_json_message_codec_test.cc.
References encode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, FL_JSON_MESSAGE_CODEC_ERROR_INVALID_OBJECT_KEY_TYPE, fl_value_new_float_list(), fl_value_new_map(), fl_value_new_string(), fl_value_set_take(), and value.
TEST | ( | FlJsonMessageCodecTest | , |
EncodeMapInt32ListKey | |||
) |
Definition at line 649 of file fl_json_message_codec_test.cc.
References encode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, FL_JSON_MESSAGE_CODEC_ERROR_INVALID_OBJECT_KEY_TYPE, fl_value_new_int32_list(), fl_value_new_map(), fl_value_new_string(), fl_value_set_take(), and value.
TEST | ( | FlJsonMessageCodecTest | , |
EncodeMapInt64ListKey | |||
) |
Definition at line 657 of file fl_json_message_codec_test.cc.
References encode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, FL_JSON_MESSAGE_CODEC_ERROR_INVALID_OBJECT_KEY_TYPE, fl_value_new_int64_list(), fl_value_new_map(), fl_value_new_string(), fl_value_set_take(), and value.
TEST | ( | FlJsonMessageCodecTest | , |
EncodeMapIntKey | |||
) |
Definition at line 626 of file fl_json_message_codec_test.cc.
References encode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, FL_JSON_MESSAGE_CODEC_ERROR_INVALID_OBJECT_KEY_TYPE, fl_value_new_int(), fl_value_new_map(), fl_value_new_string(), fl_value_set_take(), and value.
TEST | ( | FlJsonMessageCodecTest | , |
EncodeMapListKey | |||
) |
Definition at line 673 of file fl_json_message_codec_test.cc.
References encode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, FL_JSON_MESSAGE_CODEC_ERROR_INVALID_OBJECT_KEY_TYPE, fl_value_new_list(), fl_value_new_map(), fl_value_new_string(), fl_value_set_take(), and value.
TEST | ( | FlJsonMessageCodecTest | , |
EncodeMapMapKey | |||
) |
Definition at line 680 of file fl_json_message_codec_test.cc.
References encode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, FL_JSON_MESSAGE_CODEC_ERROR_INVALID_OBJECT_KEY_TYPE, fl_value_new_map(), fl_value_new_string(), fl_value_set_take(), and value.
TEST | ( | FlJsonMessageCodecTest | , |
EncodeMapNested | |||
) |
Definition at line 705 of file fl_json_message_codec_test.cc.
References encode_message(), fl_value_new_int(), fl_value_new_map(), fl_value_new_string(), fl_value_set_string(), fl_value_set_take(), i, and value.
TEST | ( | FlJsonMessageCodecTest | , |
EncodeMapNullKey | |||
) |
Definition at line 611 of file fl_json_message_codec_test.cc.
References encode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, FL_JSON_MESSAGE_CODEC_ERROR_INVALID_OBJECT_KEY_TYPE, fl_value_new_map(), fl_value_new_null(), fl_value_new_string(), fl_value_set_take(), and value.
TEST | ( | FlJsonMessageCodecTest | , |
EncodeMapUint8ListKey | |||
) |
Definition at line 641 of file fl_json_message_codec_test.cc.
References encode_error_message(), FL_JSON_MESSAGE_CODEC_ERROR, FL_JSON_MESSAGE_CODEC_ERROR_INVALID_OBJECT_KEY_TYPE, fl_value_new_map(), fl_value_new_string(), fl_value_new_uint8_list(), fl_value_set_take(), and value.
TEST | ( | FlJsonMessageCodecTest | , |
EncodeMapValueTypes | |||
) |
Definition at line 687 of file fl_json_message_codec_test.cc.
References encode_message(), fl_value_new_bool(), fl_value_new_float(), fl_value_new_int(), fl_value_new_list(), fl_value_new_map(), fl_value_new_null(), fl_value_new_string(), fl_value_set_take(), TRUE, and value.
TEST | ( | FlJsonMessageCodecTest | , |
EncodeNull | |||
) |
Definition at line 54 of file fl_json_message_codec_test.cc.
References encode_message(), fl_value_new_null(), and value.
TEST | ( | FlJsonMessageCodecTest | , |
EncodeNullptr | |||
) |
Definition at line 49 of file fl_json_message_codec_test.cc.
References encode_message().
TEST | ( | FlJsonMessageCodecTest | , |
EncodeStringEmoji | |||
) |
Definition at line 344 of file fl_json_message_codec_test.cc.
References encode_string().
TEST | ( | FlJsonMessageCodecTest | , |
EncodeStringEmpty | |||
) |
Definition at line 282 of file fl_json_message_codec_test.cc.
References encode_string().
TEST | ( | FlJsonMessageCodecTest | , |
EncodeStringEmptySized | |||
) |
Definition at line 292 of file fl_json_message_codec_test.cc.
References encode_message(), fl_value_new_string_sized(), and value.
TEST | ( | FlJsonMessageCodecTest | , |
EncodeStringEscapeBackslash | |||
) |
Definition at line 309 of file fl_json_message_codec_test.cc.
References encode_string().
TEST | ( | FlJsonMessageCodecTest | , |
EncodeStringEscapeBackspace | |||
) |
Definition at line 314 of file fl_json_message_codec_test.cc.
References encode_string().
TEST | ( | FlJsonMessageCodecTest | , |
EncodeStringEscapeCarriageReturn | |||
) |
Definition at line 329 of file fl_json_message_codec_test.cc.
References encode_string().
TEST | ( | FlJsonMessageCodecTest | , |
EncodeStringEscapeFormFeed | |||
) |
Definition at line 319 of file fl_json_message_codec_test.cc.
References encode_string().
TEST | ( | FlJsonMessageCodecTest | , |
EncodeStringEscapeNewline | |||
) |
Definition at line 324 of file fl_json_message_codec_test.cc.
References encode_string().
TEST | ( | FlJsonMessageCodecTest | , |
EncodeStringEscapeQuote | |||
) |
Definition at line 304 of file fl_json_message_codec_test.cc.
References encode_string().
TEST | ( | FlJsonMessageCodecTest | , |
EncodeStringEscapeTab | |||
) |
Definition at line 334 of file fl_json_message_codec_test.cc.
References encode_string().
TEST | ( | FlJsonMessageCodecTest | , |
EncodeStringEscapeUnicode | |||
) |
TEST | ( | FlJsonMessageCodecTest | , |
EncodeStringHello | |||
) |
TEST | ( | FlJsonMessageCodecTest | , |
EncodeStringHelloSized | |||
) |
Definition at line 298 of file fl_json_message_codec_test.cc.
References encode_message(), fl_value_new_string_sized(), and value.
TEST | ( | FlJsonMessageCodecTest | , |
EncodeUint8List | |||
) |
Definition at line 492 of file fl_json_message_codec_test.cc.
References encode_message(), fl_value_new_uint8_list(), and value.
TEST | ( | FlJsonMessageCodecTest | , |
EncodeUint8ListEmpty | |||
) |
Definition at line 486 of file fl_json_message_codec_test.cc.
References encode_message(), fl_value_new_uint8_list(), and value.