MCPcopy Create free account
hub / github.com/GNOME/gjs / new_test_gobject

Function new_test_gobject

test/gjs-test-toggle-queue.cpp:115–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113} // namespace TQ
114
115static ::ObjectInstance* new_test_gobject(GjsUnitTestFixture* fx) {
116 AutoUnref<GObject> gobject{G_OBJECT(g_object_new(G_TYPE_OBJECT, nullptr))};
117 auto* object = ObjectInstance::new_for_gobject(fx->cx, gobject);
118 static_cast<ObjectInstance*>(object)->ensure_uses_toggle_ref(fx->cx);
119 return object;
120}
121
122static void wait_for(int interval) {
123 AutoPointer<GMainLoop, GMainLoop, g_main_loop_unref> loop{

Calls 1

Tested by

no test coverage detected