Flutter Linux Embedder
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
fl_application_test.cc File Reference

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_MODULE_EXPORT FlApplication * fl_application_new(const gchar *application_id, GApplicationFlags flags)

References fl_application_new().