Flutter Linux Embedder
fl_application_test.cc
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 #include "gtest/gtest.h"
6 
8 
9 TEST(FlApplicationTest, ConstructorArgs) {
10  g_autoptr(FlApplication) app = fl_application_new(
11  "com.example.TestApplication", G_APPLICATION_FLAGS_NONE);
12 
13  EXPECT_STREQ(g_application_get_application_id(G_APPLICATION(app)),
14  "com.example.TestApplication");
15  EXPECT_EQ(g_application_get_flags(G_APPLICATION(app)),
16  G_APPLICATION_FLAGS_NONE);
17 }
fl_application_new
G_MODULE_EXPORT FlApplication * fl_application_new(const gchar *application_id, GApplicationFlags flags)
Definition: fl_application.cc:167
TEST
TEST(FlApplicationTest, ConstructorArgs)
Definition: fl_application_test.cc:9
fl_application.h