Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
linux_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
6
9
10namespace flutter {
11namespace testing {
12
15 loop = g_main_loop_new(nullptr, FALSE);
18}
19
21 g_clear_object(&project);
22 g_clear_pointer(&loop, g_main_loop_unref);
23}
24
26 g_clear_object(&engine);
27}
28
30 if (engine == nullptr) {
31 engine = this->engine;
32 }
33 g_autoptr(GError) error = nullptr;
34 EXPECT_TRUE(fl_engine_start(engine, &error));
35 EXPECT_EQ(error, nullptr);
36}
37
38} // namespace testing
39} // namespace flutter
void StartEngine(FlEngine *engine=nullptr)
Definition linux_test.cc:29
FlDartProject * project
Definition linux_test.h:37
FlutterEngine engine
Definition main.cc:84
g_autoptr(FlEngine) engine
G_MODULE_EXPORT FlDartProject * fl_dart_project_new()
G_MODULE_EXPORT FlEngine * fl_engine_new(FlDartProject *project)
Definition fl_engine.cc:730
gboolean fl_engine_start(FlEngine *self, GError **error)
Definition fl_engine.cc:759
const uint8_t uint32_t uint32_t GError ** error
void fl_ensure_gtk_init(GLogWriterFunc writer)
Ensures that GTK has been initialized and starts monitoring logs.