#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(), and value.
Referenced by TEST().
|
static |
Definition at line 11 of file fl_string_codec_test.cc.
References error, fl_message_codec_encode_message(), fl_string_codec_new(), and value.
Referenced by TEST().
|
static |
Definition at line 23 of file fl_string_codec_test.cc.
References error, fl_message_codec_encode_message(), fl_string_codec_new(), and value.
Referenced by TEST().
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, 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, and value.
TEST | ( | FlStringCodecTest | , |
EncodeData | |||
) |
Definition at line 45 of file fl_string_codec_test.cc.
References encode_message(), fl_value_new_string(), 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(), and fl_value_new_string().
TEST | ( | FlStringCodecTest | , |
EncodeEmpty | |||
) |
Definition at line 51 of file fl_string_codec_test.cc.
References encode_message(), fl_value_new_string(), 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(), and value.