#include "flutter/shell/platform/linux/public/flutter_linux/fl_string_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 (FlStringCodecTest, EncodeData) | |
| TEST (FlStringCodecTest, EncodeEmpty) | |
| TEST (FlStringCodecTest, EncodeNullptr) | |
| TEST (FlStringCodecTest, EncodeUnknownType) | |
| TEST (FlStringCodecTest, DecodeData) | |
| TEST (FlStringCodecTest, DecodeEmpty) | |
| TEST (FlStringCodecTest, EncodeDecode) | |
|
static |
Definition at line 34 of file fl_string_codec_test.cc.
References error, fl_message_codec_decode_message(), fl_string_codec_new(), fl_value_ref(), g_autoptr(), hex_string_to_bytes(), message, and value.
|
static |
Definition at line 11 of file fl_string_codec_test.cc.
References bytes_to_hex_string(), error, fl_message_codec_encode_message(), fl_string_codec_new(), g_autoptr(), message, and value.
|
static |
Definition at line 23 of file fl_string_codec_test.cc.
References error, fl_message_codec_encode_message(), fl_string_codec_new(), g_autoptr(), message, and value.
| TEST | ( | FlStringCodecTest | , |
| DecodeData | |||
| ) |
Definition at line 68 of file fl_string_codec_test.cc.
References decode_message(), fl_value_get_string(), fl_value_get_type(), FL_VALUE_TYPE_STRING, g_autoptr(), and value.
| TEST | ( | FlStringCodecTest | , |
| DecodeEmpty | |||
| ) |
Definition at line 74 of file fl_string_codec_test.cc.
References decode_message(), fl_value_get_string(), fl_value_get_type(), FL_VALUE_TYPE_STRING, g_autoptr(), and value.
| TEST | ( | FlStringCodecTest | , |
| EncodeData | |||
| ) |
Definition at line 45 of file fl_string_codec_test.cc.
References encode_message(), fl_value_new_string(), g_autoptr(), and value.
| TEST | ( | FlStringCodecTest | , |
| EncodeDecode | |||
| ) |
Definition at line 80 of file fl_string_codec_test.cc.
References error, fl_message_codec_decode_message(), fl_message_codec_encode_message(), fl_string_codec_new(), fl_value_equal(), fl_value_new_string(), g_autoptr(), input(), and message.
| TEST | ( | FlStringCodecTest | , |
| EncodeEmpty | |||
| ) |
Definition at line 51 of file fl_string_codec_test.cc.
References encode_message(), fl_value_new_string(), g_autoptr(), and value.
| TEST | ( | FlStringCodecTest | , |
| EncodeNullptr | |||
| ) |
Definition at line 57 of file fl_string_codec_test.cc.
References encode_message_error(), FL_MESSAGE_CODEC_ERROR, and FL_MESSAGE_CODEC_ERROR_UNSUPPORTED_TYPE.
| TEST | ( | FlStringCodecTest | , |
| EncodeUnknownType | |||
| ) |
Definition at line 62 of file fl_string_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.