Flutter Engine
fl_test.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef FLUTTER_SHELL_PLATFORM_LINUX_FL_TEST_H_
6 #define FLUTTER_SHELL_PLATFORM_LINUX_FL_TEST_H_
7 
8 #include <glib.h>
9 #include <stdint.h>
10 
11 G_BEGIN_DECLS
12 
13 // Helper functions for the tests. This is not included in the shell library.
14 
15 // Helper function to convert a hexadecimal string (e.g. "01feab") into GBytes
16 GBytes* hex_string_to_bytes(const gchar* hex_string);
17 
18 // Helper function to convert GBytes into a hexadecimal string (e.g. "01feab")
19 gchar* bytes_to_hex_string(GBytes* bytes);
20 
21 G_END_DECLS
22 
23 #endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_TEST_H_
G_BEGIN_DECLS GBytes * hex_string_to_bytes(const gchar *hex_string)
Definition: fl_test.cc:24
gchar * bytes_to_hex_string(GBytes *bytes)
Definition: fl_test.cc:33