#include "flutter/shell/platform/linux/public/flutter_linux/fl_message_codec.h"
#include "gtest/gtest.h"
Go to the source code of this file.
Classes | |
struct | _FlTestCodec |
Functions | |
static GBytes * | fl_test_codec_encode_message (FlMessageCodec *codec, FlValue *value, GError **error) |
static FlValue * | fl_test_codec_decode_message (FlMessageCodec *codec, GBytes *message, GError **error) |
static void | fl_test_codec_class_init (FlTestCodecClass *klass) |
static void | fl_test_codec_init (FlTestCodec *self) |
static FlTestCodec * | fl_test_codec_new () |
TEST (FlMessageCodecTest, EncodeMessage) | |
TEST (FlMessageCodecTest, EncodeMessageError) | |
TEST (FlMessageCodecTest, DecodeMessageEmpty) | |
TEST (FlMessageCodecTest, DecodeMessage) | |
TEST (FlMessageCodecTest, DecodeMessageExtraData) | |
|
static |
Definition at line 58 of file fl_message_codec_test.cc.
References fl_test_codec_decode_message(), and fl_test_codec_encode_message().
|
static |
Definition at line 35 of file fl_message_codec_test.cc.
References error, FL_MESSAGE_CODEC_ERROR, FL_MESSAGE_CODEC_ERROR_ADDITIONAL_DATA, FL_MESSAGE_CODEC_ERROR_OUT_OF_DATA, and fl_value_new_int().
Referenced by fl_test_codec_class_init().
|
static |
Definition at line 19 of file fl_message_codec_test.cc.
References error, FL_MESSAGE_CODEC_ERROR, FL_MESSAGE_CODEC_ERROR_FAILED, fl_value_get_int(), fl_value_get_type(), FL_VALUE_TYPE_INT, and value.
Referenced by fl_test_codec_class_init().
|
static |
Definition at line 63 of file fl_message_codec_test.cc.
|
static |
Definition at line 65 of file fl_message_codec_test.cc.
Referenced by TEST().
TEST | ( | FlMessageCodecTest | , |
DecodeMessage | |||
) |
Definition at line 107 of file fl_message_codec_test.cc.
References error, fl_message_codec_decode_message(), fl_test_codec_new(), fl_value_get_int(), fl_value_get_type(), FL_VALUE_TYPE_INT, and value.
TEST | ( | FlMessageCodecTest | , |
DecodeMessageEmpty | |||
) |
Definition at line 95 of file fl_message_codec_test.cc.
References error, fl_message_codec_decode_message(), FL_MESSAGE_CODEC_ERROR, FL_MESSAGE_CODEC_ERROR_OUT_OF_DATA, fl_test_codec_new(), and value.
TEST | ( | FlMessageCodecTest | , |
DecodeMessageExtraData | |||
) |
Definition at line 122 of file fl_message_codec_test.cc.
References error, fl_message_codec_decode_message(), FL_MESSAGE_CODEC_ERROR, FL_MESSAGE_CODEC_ERROR_ADDITIONAL_DATA, fl_test_codec_new(), and value.
TEST | ( | FlMessageCodecTest | , |
EncodeMessage | |||
) |
Definition at line 69 of file fl_message_codec_test.cc.
References error, fl_message_codec_encode_message(), fl_test_codec_new(), fl_value_new_int(), and value.
TEST | ( | FlMessageCodecTest | , |
EncodeMessageError | |||
) |
Definition at line 83 of file fl_message_codec_test.cc.
References error, fl_message_codec_encode_message(), FL_MESSAGE_CODEC_ERROR, FL_MESSAGE_CODEC_ERROR_FAILED, fl_test_codec_new(), fl_value_new_null(), and value.