#include "flutter/fml/hex_codec.h"
#include <iostream>
#include "gtest/gtest.h"
Go to the source code of this file.
|
| | TEST (HexCodecTest, CanEncode) |
| |
◆ TEST()
| TEST |
( |
HexCodecTest |
, |
|
|
CanEncode |
|
|
) |
| |
Definition at line 11 of file hex_codec_unittest.cc.
11 {
12 {
14 ASSERT_EQ(result, "68656c6c6f");
15 }
16
17 {
19 ASSERT_EQ(result, "");
20 }
21
22 {
24 ASSERT_EQ(result, "31");
25 }
26
27 {
28 auto result =
fml::HexEncode(std::string_view(
"\xFF\xFE\x00\x01", 4));
29 ASSERT_EQ(result, "fffe0001");
30 }
31}
std::string HexEncode(std::string_view input)
References fml::HexEncode().