summaryrefslogtreecommitdiff
path: root/libs/ardour/test/test_ui.h
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2015-02-15 15:05:22 +1000
committerTim Mayberry <mojofunk@gmail.com>2015-02-15 15:05:22 +1000
commit2a04ff8641df26d5bdccb3061af3afea8f68fe23 (patch)
treec4bcf283579720a1a99fa952ad43e9368604ea46 /libs/ardour/test/test_ui.h
parent964c04eec5f01a4d2a487dc6380173a01fd94aaa (diff)
Add TestUI class to properly handle EventLoop invalidation
This fixes the programming error: Session RT event... warnings while running ardour tests
Diffstat (limited to 'libs/ardour/test/test_ui.h')
-rw-r--r--libs/ardour/test/test_ui.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/libs/ardour/test/test_ui.h b/libs/ardour/test/test_ui.h
new file mode 100644
index 0000000000..f62dcbc82f
--- /dev/null
+++ b/libs/ardour/test/test_ui.h
@@ -0,0 +1,48 @@
+/*
+ Copyright (C) 2015 Tim Mayberry
+
+ This program is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by the Free
+ Software Foundation; either version 2 of the License, or (at your option)
+ any later version.
+
+ This program is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 675 Mass Ave, Cambridge, MA 02139, USA.
+*/
+
+//#ifndef ABSTRACT_UI_EXPORTS
+//#define ABSTRACT_UI_EXPORTS
+//#endif
+
+#include "pbd/abstract_ui.h"
+
+#include "test_receiver.h"
+
+class TestUIRequest : public BaseUI::BaseRequestObject
+{
+
+};
+
+class TestUI : public AbstractUI<TestUIRequest>
+{
+public: // ctors
+
+ TestUI ();
+
+ ~TestUI ();
+
+public: // AbstractUI Interface
+
+ virtual void do_request (TestUIRequest*);
+
+private: // member data
+
+ TestReceiver m_test_receiver;
+
+};