Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Functions
fl_view_test.cc File Reference
#include "flutter/shell/platform/linux/public/flutter_linux/fl_view.h"
#include "flutter/shell/platform/linux/testing/fl_test_gtk_logs.h"
#include "gtest/gtest.h"

Go to the source code of this file.

Functions

 TEST (FlViewTest, StateUpdateDoesNotHappenInInit)
 

Function Documentation

◆ TEST()

TEST ( FlViewTest  ,
StateUpdateDoesNotHappenInInit   
)

Definition at line 10 of file fl_view_test.cc.

10 {
12 g_autoptr(FlDartProject) project = fl_dart_project_new();
13 g_autoptr(FlView) view = fl_view_new(project);
14 // Check that creating a view doesn't try to query the window state in
15 // initialization, causing a critical log to be issued.
16 EXPECT_EQ(
18 (GLogLevelFlags)0x0);
19 g_object_ref_sink(view);
20}
G_MODULE_EXPORT FlDartProject * fl_dart_project_new()
G_MODULE_EXPORT FlView * fl_view_new(FlDartProject *project)
Definition fl_view.cc:795
GLogLevelFlags fl_get_received_gtk_log_levels()
Returns the recorded log levels.
void fl_ensure_gtk_init(GLogWriterFunc writer)
Ensures that GTK has been initialized and starts monitoring logs.