|
Ersa Wearable Platform
Embedded smartwatch firmware and application framework
|
#include <stdio.h>#include <assert.h>#include <string.h>#include "ersa/common/types.h"#include "ersa/common/calendar_time.h"#include "ersa/events/event_bus.h"#include "ersa/app/application_manager.h"#include "ersa/app/watchface.h"#include "ersa/app/complication.h"#include "ersa/services/time_service.h"#include "ersa/services/power_manager.h"#include "ersa/services/display_manager.h"#include "ersa/services/network_manager.h"#include "ersa/services/storage_service.h"#include "ersa/services/settings_service.h"#include "ersa/services/logging_service.h"#include "ersa/services/bluetooth_manager.h"#include "ersa/services/session_stats.h"#include "ersa/runtime/scheduler.h"#include "ersa/system.h"#include "mocks/mock_display.h"#include "mocks/mock_rtc.h"#include "mocks/mock_battery.h"#include "mocks/mock_bluetooth.h"#include "mocks/mock_wifi.h"#include "mocks/mock_power_management.h"#include "mocks/mock_console.h"#include "ersa/config/system_defaults.h"#include "ersa/config/ui_strings.h"
Classes | |
| class | TestAppA |
| class | TestAppB |
| class | BatteryComplication |
Macros | |
| #define | TEST_ASSERT(cond, msg) |
| #define | TEST_PASS() |
Functions | |
| void | test_display_hal_contract () |
| void | test_runtime_scheduler () |
| void | test_calendar_time () |
| void | test_console_hal_contract () |
| void | test_power_management_hal_contract () |
| static void | onTestEvent (const events::Event &event, void *userData) |
| void | test_event_bus () |
| void | test_application_manager () |
| static void | onTimeEvent (const events::Event &event, void *userData) |
| void | test_time_service () |
| void | test_power_manager () |
| void | test_display_manager () |
| void | test_network_manager () |
| void | test_storage_service () |
| void | test_settings_service () |
| void | test_complications () |
| static time_t | testParseHttpDateToEpoch (const char *str) |
| void | test_config_and_fallbacks () |
| void | test_bluetooth_manager () |
| void | test_session_stats () |
| void | test_apple_protocols () |
| int | main () |
Variables | |
| static int | testsPassed = 0 |
| static int | g_subCallCount = 0 |
| static events::Event | g_lastReceivedEvent |
| static int | g_timeEventCount = 0 |
| #define TEST_ASSERT | ( | cond, | |
| msg | |||
| ) |
| #define TEST_PASS | ( | ) |
| int main | ( | ) |
|
static |
|
static |
| void test_apple_protocols | ( | ) |
| void test_application_manager | ( | ) |
| void test_bluetooth_manager | ( | ) |
| void test_calendar_time | ( | ) |
| void test_complications | ( | ) |
| void test_config_and_fallbacks | ( | ) |
| void test_console_hal_contract | ( | ) |
| void test_display_hal_contract | ( | ) |
| void test_display_manager | ( | ) |
| void test_event_bus | ( | ) |
| void test_network_manager | ( | ) |
| void test_power_management_hal_contract | ( | ) |
| void test_power_manager | ( | ) |
| void test_runtime_scheduler | ( | ) |
| void test_session_stats | ( | ) |
| void test_settings_service | ( | ) |
| void test_storage_service | ( | ) |
| void test_time_service | ( | ) |
|
static |
|
static |
|
static |
|
static |
|
static |