File tree 2 files changed +10
-0
lines changed
shell/platform/linux/testing
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -62,3 +62,8 @@ FlEngine* make_mock_engine_with_project(FlDartProject* project) {
62
62
63
63
return static_cast <FlEngine*>(g_object_ref (engine));
64
64
}
65
+
66
+ void PrintTo (FlValue* v, std::ostream* os) {
67
+ g_autofree gchar* s = fl_value_to_string (v);
68
+ *os << s;
69
+ }
Original file line number Diff line number Diff line change 6
6
#define FLUTTER_SHELL_PLATFORM_LINUX_FL_TEST_H_
7
7
8
8
#include " flutter/shell/platform/linux/public/flutter_linux/fl_engine.h"
9
+ #include " flutter/shell/platform/linux/public/flutter_linux/fl_value.h"
9
10
10
11
#include < glib.h>
11
12
#include < stdint.h>
13
+ #include < ostream>
12
14
13
15
G_BEGIN_DECLS
14
16
@@ -27,6 +29,9 @@ FlEngine* make_mock_engine();
27
29
// platform messages.
28
30
FlEngine* make_mock_engine_with_project (FlDartProject* project);
29
31
32
+ // GTest printer for FlValue.
33
+ void PrintTo (FlValue* v, std::ostream* os);
34
+
30
35
G_END_DECLS
31
36
32
37
#endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_TEST_H_
You can’t perform that action at this time.
0 commit comments