Skip to content

Commit

Permalink
Unit tests: fixup Add enablers for stopping sensors in suspend
Browse files Browse the repository at this point in the history
Fix unit tests after f6e4262 (Add enablers for stopping sensors in
suspend)
  • Loading branch information
martyone committed Nov 13, 2013
1 parent 9fd6c1b commit 5f2fb22
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/ut/ut_display.c
Expand Up @@ -794,6 +794,20 @@ void, mce_dbus_owner_monitor_remove_all, (GSList **monitor_list))
}
}

/*
* mce-sensorfw.c stubs {{{1
*/

EXTERN_STUB (
void, mce_sensorfw_suspend, (void))
{
}

EXTERN_STUB (
void, mce_sensorfw_resume, (void))
{
}

/*
* tklock.c stubs {{{1
*/
Expand Down
12 changes: 12 additions & 0 deletions tests/ut/ut_display_stm.c
Expand Up @@ -23,6 +23,18 @@ gconstpointer, execute_datapipe, (datapipe_struct *const datapipe,
const data_source_t use_cache,
const caching_policy_t cache_indata));

/* mce-sensorfw.c stubs */

EXTERN_STUB (
void, mce_sensorfw_suspend, (void))
{
}

EXTERN_STUB (
void, mce_sensorfw_resume, (void))
{
}

/* libwakelock stub */

static GHashTable *stub__wakelock_locks = NULL;
Expand Down

0 comments on commit 5f2fb22

Please sign in to comment.