#include "flutter/shell/platform/linux/public/flutter_linux/fl_binary_codec.h"#include "flutter/shell/platform/linux/testing/fl_test.h"#include "gtest/gtest.h"Go to the source code of this file.
Functions | |
| static gchar * | encode_message (FlValue *value) |
| static void | encode_message_error (FlValue *value, GQuark domain, int code) |
| static FlValue * | decode_message (const char *hex_string) |
| TEST (FlBinaryCodecTest, EncodeData) | |
| TEST (FlBinaryCodecTest, EncodeEmpty) | |
| TEST (FlBinaryCodecTest, EncodeNullptr) | |
| TEST (FlBinaryCodecTest, EncodeUnknownType) | |
| TEST (FlBinaryCodecTest, DecodeData) | |
| TEST (FlBinaryCodecTest, DecodeEmpty) | |
| TEST (FlBinaryCodecTest, EncodeDecode) | |
|
static |
Definition at line 34 of file fl_binary_codec_test.cc.
References data, error, fl_binary_codec_new(), fl_message_codec_decode_message(), fl_value_ref(), g_autoptr(), hex_string_to_bytes(), and value.
|
static |
Definition at line 11 of file fl_binary_codec_test.cc.
References bytes_to_hex_string(), error, fl_binary_codec_new(), fl_message_codec_encode_message(), g_autoptr(), message, and value.
|
static |
Definition at line 23 of file fl_binary_codec_test.cc.
References error, fl_binary_codec_new(), fl_message_codec_encode_message(), g_autoptr(), message, and value.
| TEST | ( | FlBinaryCodecTest | , |
| DecodeData | |||
| ) |
Definition at line 69 of file fl_binary_codec_test.cc.
References decode_message(), fl_value_get_length(), fl_value_get_type(), fl_value_get_uint8_list(), FL_VALUE_TYPE_UINT8_LIST, g_autoptr(), and value.
| TEST | ( | FlBinaryCodecTest | , |
| DecodeEmpty | |||
| ) |
Definition at line 81 of file fl_binary_codec_test.cc.
References decode_message(), fl_value_get_length(), fl_value_get_type(), FL_VALUE_TYPE_UINT8_LIST, g_autoptr(), and value.
| TEST | ( | FlBinaryCodecTest | , |
| EncodeData | |||
| ) |
Definition at line 45 of file fl_binary_codec_test.cc.
References data, encode_message(), fl_value_new_uint8_list(), g_autoptr(), and value.
| TEST | ( | FlBinaryCodecTest | , |
| EncodeDecode | |||
| ) |
Definition at line 87 of file fl_binary_codec_test.cc.
References data, error, fl_binary_codec_new(), fl_message_codec_decode_message(), fl_message_codec_encode_message(), fl_value_equal(), fl_value_new_uint8_list(), g_autoptr(), input(), and message.
| TEST | ( | FlBinaryCodecTest | , |
| EncodeEmpty | |||
| ) |
Definition at line 52 of file fl_binary_codec_test.cc.
References encode_message(), fl_value_new_uint8_list(), g_autoptr(), and value.
| TEST | ( | FlBinaryCodecTest | , |
| EncodeNullptr | |||
| ) |
Definition at line 58 of file fl_binary_codec_test.cc.
References encode_message_error(), FL_MESSAGE_CODEC_ERROR, and FL_MESSAGE_CODEC_ERROR_UNSUPPORTED_TYPE.
| TEST | ( | FlBinaryCodecTest | , |
| EncodeUnknownType | |||
| ) |
Definition at line 63 of file fl_binary_codec_test.cc.
References encode_message_error(), FL_MESSAGE_CODEC_ERROR, FL_MESSAGE_CODEC_ERROR_UNSUPPORTED_TYPE, fl_value_new_null(), g_autoptr(), and value.