mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[test] Fixed tests compilation
This commit is contained in:
@@ -58,6 +58,7 @@ apps_src += $(addprefix apps/,\
|
||||
math_variable_box_empty_controller.cpp \
|
||||
shift_alpha_lock_view.cpp \
|
||||
suspend_timer.cpp \
|
||||
timer_manager.cpp \
|
||||
title_bar_view.cpp \
|
||||
)
|
||||
|
||||
@@ -117,6 +118,7 @@ apps_tests_src = $(app_calculation_test_src) $(app_code_test_src) $(app_graph_te
|
||||
apps_tests_src += $(addprefix apps/,\
|
||||
alternate_empty_nested_menu_controller.cpp \
|
||||
global_preferences.cpp \
|
||||
dummy_timer_manager.cpp \
|
||||
)
|
||||
|
||||
ifeq ($(THEME_REPO),local)
|
||||
|
||||
6
apps/dummy_timer_manager.cpp
Normal file
6
apps/dummy_timer_manager.cpp
Normal file
@@ -0,0 +1,6 @@
|
||||
#include <escher/timer_manager.h>
|
||||
|
||||
// This is the dummy implementation used in tests
|
||||
|
||||
void TimerManager::AddTimer(Timer * timer) { }
|
||||
void TimerManager::RemoveTimer(Timer * timer) { }
|
||||
10
apps/timer_manager.cpp
Normal file
10
apps/timer_manager.cpp
Normal file
@@ -0,0 +1,10 @@
|
||||
#include <escher/timer_manager.h>
|
||||
#include <apps/apps_container.h>
|
||||
|
||||
void TimerManager::AddTimer(Timer * timer) {
|
||||
AppsContainer::sharedAppsContainer()->addTimer(timer);
|
||||
}
|
||||
|
||||
void TimerManager::RemoveTimer(Timer * timer) {
|
||||
AppsContainer::sharedAppsContainer()->removeTimer(timer);
|
||||
}
|
||||
Reference in New Issue
Block a user