#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 error, fl_binary_codec_new(), fl_message_codec_decode_message(), fl_value_ref(), and value.
Referenced by TEST().
|
static |
Definition at line 11 of file fl_binary_codec_test.cc.
References error, fl_binary_codec_new(), fl_message_codec_encode_message(), and value.
Referenced by TEST().
|
static |
Definition at line 23 of file fl_binary_codec_test.cc.
References error, fl_binary_codec_new(), fl_message_codec_encode_message(), and value.
Referenced by TEST().
| 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, 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, and value.
| TEST | ( | FlBinaryCodecTest | , |
| EncodeData | |||
| ) |
Definition at line 45 of file fl_binary_codec_test.cc.
References encode_message(), fl_value_new_uint8_list(), and value.
| TEST | ( | FlBinaryCodecTest | , |
| EncodeDecode | |||
| ) |
Definition at line 87 of file fl_binary_codec_test.cc.
References error, fl_binary_codec_new(), fl_message_codec_decode_message(), fl_message_codec_encode_message(), fl_value_equal(), and fl_value_new_uint8_list().
| TEST | ( | FlBinaryCodecTest | , |
| EncodeEmpty | |||
| ) |
Definition at line 52 of file fl_binary_codec_test.cc.
References encode_message(), fl_value_new_uint8_list(), 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(), and value.