[glibmm] tests: glibmm_value: Move code to main.cc
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] tests: glibmm_value: Move code to main.cc
- Date: Fri, 7 Apr 2017 19:55:38 +0000 (UTC)
commit 17ce66a0155dc7a310ff32c8d9b0904902961bc9
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Apr 7 21:25:48 2017 +0200
tests: glibmm_value: Move code to main.cc
Which was previously almost empty.
tests/Makefile.am | 2 +-
tests/glibmm_value/glibmm_value.cc | 32 --------------------------------
tests/glibmm_value/main.cc | 33 +++++++++++++++++++++++++++++++--
3 files changed, 32 insertions(+), 35 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 1955a42..47c1b11 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -106,7 +106,7 @@ glibmm_object_move_test_SOURCES = glibmm_object_move/main.cc
glibmm_objectbase_move_test_SOURCES = glibmm_objectbase_move/main.cc
glibmm_ustring_compose_test_SOURCES = glibmm_ustring_compose/main.cc
glibmm_ustring_format_test_SOURCES = glibmm_ustring_format/main.cc
-glibmm_value_test_SOURCES = glibmm_value/glibmm_value.cc glibmm_value/main.cc
+glibmm_value_test_SOURCES = glibmm_value/main.cc
glibmm_variant_test_SOURCES = glibmm_variant/main.cc
glibmm_vector_test_SOURCES = glibmm_vector/main.cc
glibmm_vector_test_LDADD = $(giomm_ldadd)
diff --git a/tests/glibmm_value/main.cc b/tests/glibmm_value/main.cc
index 7682ffd..515a79e 100644
--- a/tests/glibmm_value/main.cc
+++ b/tests/glibmm_value/main.cc
@@ -1,8 +1,37 @@
#include <glibmm.h>
-int
-main(int, char**)
+struct Foo
{
+ int bar;
+};
+
+namespace Gtk
+{
+class Widget;
+}
+
+void
+some_method()
+{
+ // custom copyable
+ Glib::Value<Foo> value_foo;
+
+ // custom pointer
+ Glib::Value<Foo*> value_foo_pointer;
+ Glib::Value<const Foo*> value_foo_const_pointer;
+
+ // Glib::Object pointer
+ Glib::Value<Gtk::Widget*> value_widget_pointer;
+ Glib::Value<const Gtk::Widget*> value_widget_const_pointer;
+}
+
+// Glib::Object RefPtr<>
+
+// template Glib::Value< Glib::RefPtr<Gdk::Pixbuf> >;
+// template Glib::Value< Glib::RefPtr<const Gdk::Pixbuf> >;
+//
+
+int main() {
return EXIT_SUCCESS;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]