[test] Fixed tests compilation

This commit is contained in:
Laury
2022-06-25 19:43:58 +02:00
parent 0b2a581177
commit 4893b73917
8 changed files with 36 additions and 4 deletions

View File

@@ -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)

View 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
View 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);
}