summaryrefslogtreecommitdiff
path: root/tests
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2014-05-21 16:15:14 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2014-05-21 16:15:14 +0200
commit610f9301494f991e7cd322069e1367d65f8c7b60 (patch)
tree129dfa0d6a403ee97d84ca46ae66f8c01df197b0 /tests
parent1420aed36829cab5b760adaf28a487223f2c3a84 (diff)
PanelView: use InputMonitor to track menu events
(bzr r3788.9.2)
Diffstat (limited to 'tests')
-rw-r--r--tests/test_panel_controller.cpp2
-rw-r--r--tests/test_panel_view.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_panel_controller.cpp b/tests/test_panel_controller.cpp
index eea0f2fe1..af7fe9534 100644
--- a/tests/test_panel_controller.cpp
+++ b/tests/test_panel_controller.cpp
@@ -19,6 +19,7 @@
#include <gmock/gmock.h>
+#include "InputMonitor.h"
#include "PanelController.h"
#include "PanelStyle.h"
#include "PanelView.h"
@@ -46,6 +47,7 @@ struct TestPanelController : public testing::Test
menu::MockManager::Ptr menus;
ui::EdgeBarrierController::Ptr edge_barriers;
launcher::Options::Ptr options;
+ input::Monitor im;
};
TEST_F(TestPanelController, Construction)
diff --git a/tests/test_panel_view.cpp b/tests/test_panel_view.cpp
index 82fdf55b3..4eeb37993 100644
--- a/tests/test_panel_view.cpp
+++ b/tests/test_panel_view.cpp
@@ -25,6 +25,7 @@
#include "unity-shared/PanelStyle.h"
#include "unity-shared/UBusMessages.h"
#include "unity-shared/UBusWrapper.h"
+ #include "InputMonitor.h"
#include "mock_menu_manager.h"
#include "test_standalone_wm.h"
@@ -43,6 +44,7 @@ public:
nux::ObjectPtr<MockableBaseWindow> window_;
nux::ObjectPtr<PanelView> panel_view_;
testwrapper::StandaloneWM WM;
+ input::Monitor im;
TestPanelView()
: window_(new MockableBaseWindow())