Move plugin specific tests into dedicated directory
This will prove beneficial when we also add tests for the policy engine plugins. The increased locality is also nice to have.
This commit is contained in:
committed by
Guido Günther
parent
86a8f3ae22
commit
11ba83c16e
34
plugins/provider/tests/setup-call.c
Normal file
34
plugins/provider/tests/setup-call.c
Normal file
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright (C) 2018 Purism SPC
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-3.0+
|
||||
*/
|
||||
|
||||
#include "setup-call.h"
|
||||
#include "calls-origin.h"
|
||||
|
||||
void
|
||||
test_dummy_call_set_up (CallFixture *fixture,
|
||||
gconstpointer user_data)
|
||||
{
|
||||
CallsOrigin *origin;
|
||||
GList *calls;
|
||||
|
||||
test_dummy_origin_set_up (&fixture->parent, user_data);
|
||||
origin = CALLS_ORIGIN (fixture->parent.dummy_origin);
|
||||
|
||||
calls_origin_dial (origin, TEST_CALL_NUMBER);
|
||||
|
||||
calls = calls_origin_get_calls (origin);
|
||||
fixture->dummy_call = CALLS_DUMMY_CALL (calls->data);
|
||||
g_list_free (calls);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
test_dummy_call_tear_down (CallFixture *fixture,
|
||||
gconstpointer user_data)
|
||||
{
|
||||
fixture->dummy_call = NULL;
|
||||
test_dummy_origin_tear_down (&fixture->parent, user_data);
|
||||
}
|
||||
Reference in New Issue
Block a user