#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "ui/base/glib/scoped_gsignal.h"
#include "base/functional/bind.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/glib/scoped_gobject.h"
namespace ui {
namespace {
G_DECLARE_FINAL_TYPE(TestObject, test_object, TEST, OBJECT, GObject)
struct _TestObject { … };
G_DEFINE_TYPE(…)
void test_object_class_init(TestObjectClass*) { … }
void test_object_init(TestObject* self) { … }
ScopedGObject<GObject> CreateGObject() { … }
void EmitSignal(GObject* instance, const gchar* detailed_signal) { … }
}
TEST(ScopedGSignalTest, Empty) { … }
TEST(ScopedGSignalTest, Construction) { … }
TEST(ScopedGSignalTest, DisconnectsOnDestruction) { … }
TEST(ScopedGSignalTest, DisconnectsOnGClosureFinalize) { … }
TEST(ScopedGSignalTest, DisconnectsOnReset) { … }
TEST(ScopedGSignalTest, MoveConstruct) { … }
TEST(ScopedGSignalTest, MoveAssign) { … }
TEST(ScopedGSignalTest, SignalHandlerCalled) { … }
TEST(ScopedGSignalTest, InvalidSignal) { … }
}