Flutter Engine
 
Loading...
Searching...
No Matches
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_TESTING_FL_TEST_H_
6#define FLUTTER_SHELL_PLATFORM_LINUX_TESTING_FL_TEST_H_
7
10
11#include <glib.h>
12#include <stdint.h>
13#include <ostream>
14
15G_BEGIN_DECLS
16
17// Helper functions for the tests. This is not included in the shell library.
18
19// Helper function to convert a hexadecimal string (e.g. "01feab") into GBytes
20GBytes* hex_string_to_bytes(const gchar* hex_string);
21
22// Helper function to convert GBytes into a hexadecimal string (e.g. "01feab")
23gchar* bytes_to_hex_string(GBytes* bytes);
24
25// GTest printer for FlValue.
26void PrintTo(FlValue* v, std::ostream* os);
27
28G_END_DECLS
29
30#endif // FLUTTER_SHELL_PLATFORM_LINUX_TESTING_FL_TEST_H_
void PrintTo(FlValue *v, std::ostream *os)
Definition fl_test.cc:63
G_BEGIN_DECLS GBytes * hex_string_to_bytes(const gchar *hex_string)
Definition fl_test.cc:43
gchar * bytes_to_hex_string(GBytes *bytes)
Definition fl_test.cc:52
typedefG_BEGIN_DECLS struct _FlValue FlValue
Definition fl_value.h:42