| Flutter Linux Embedder |

Functions
fl_application_test.cc File Reference
`#include "gtest/gtest.h"`
`#include "flutter/shell/platform/linux/public/flutter_linux/fl_application.h"`

Go to the source code of this file.

## Functions
| TEST (FlApplicationTest, ConstructorArgs)

## Function Documentation

## ◆ TEST()

TEST | ( | FlApplicationTest | ,
|  | ConstructorArgs |
| ) |  |

Definition at line 9 of file fl_application_test.cc.

9 {
10 g_autoptr(FlApplication) app =
11 fl_application_new("com.example.TestApplication",
12 #ifdef GLIB_VERSION_2_74
13 G_APPLICATION_DEFAULT_FLAGS
14 #else
15 G_APPLICATION_FLAGS_NONE
16 #endif
17 );
18
19 EXPECT_STREQ(g_application_get_application_id(G_APPLICATION(app)),
20 "com.example.TestApplication");
21
22 #ifdef GLIB_VERSION_2_74
23 EXPECT_EQ(g_application_get_flags(G_APPLICATION(app)),
24 G_APPLICATION_DEFAULT_FLAGS);
25 #else
26 EXPECT_EQ(g_application_get_flags(G_APPLICATION(app)),
27 G_APPLICATION_FLAGS_NONE);
28 #endif
29 }
g_autoptr
g_autoptr(FlEngine) engine
fl_application_new
G_MODULE_EXPORT FlApplication * fl_application_new(const gchar *application_id, GApplicationFlags flags)
Definition: fl_application.cc:168

References fl_application_new(), and g_autoptr().