From a7379930d273b53429684603df92411cf39b9976 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 8 Jun 2016 11:35:28 +0200 Subject: turn libfakebank into libtalerfakebank so we can use it for testcases in the merchant --- src/exchange-lib/test_exchange_api.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/exchange-lib/test_exchange_api.c') diff --git a/src/exchange-lib/test_exchange_api.c b/src/exchange-lib/test_exchange_api.c index 83fb0eb32..102c37b08 100644 --- a/src/exchange-lib/test_exchange_api.c +++ b/src/exchange-lib/test_exchange_api.c @@ -26,7 +26,7 @@ #include "taler_json_lib.h" #include #include -#include "fakebank.h" +#include "taler_fakebank_lib.h" /** @@ -62,7 +62,7 @@ static struct GNUNET_SCHEDULER_Task *timeout_task; /** * Handle to our fakebank. */ -static struct FAKEBANK_Handle *fakebank; +static struct TALER_FAKEBANK_Handle *fakebank; /** * Result of the testcases, #GNUNET_OK on success @@ -2252,7 +2252,7 @@ interpreter_run (void *cls) return; } if (GNUNET_OK != - FAKEBANK_check (fakebank, + TALER_FAKEBANK_check (fakebank, &amount, cmd->details.check_bank_transfer.account_debit, cmd->details.check_bank_transfer.account_credit, @@ -2268,7 +2268,7 @@ interpreter_run (void *cls) case OC_CHECK_BANK_TRANSFERS_EMPTY: { if (GNUNET_OK != - FAKEBANK_check_empty (fakebank)) + TALER_FAKEBANK_check_empty (fakebank)) { GNUNET_break (0); fail (is); @@ -2580,7 +2580,7 @@ do_shutdown (void *cls) GNUNET_free (is); if (NULL != fakebank) { - FAKEBANK_stop (fakebank); + TALER_FAKEBANK_stop (fakebank); fakebank = NULL; } if (NULL != exchange) @@ -3012,7 +3012,7 @@ run (void *cls) &rc); GNUNET_assert (NULL != ctx); rc = GNUNET_CURL_gnunet_rc_create (ctx); - fakebank = FAKEBANK_start (8082); + fakebank = TALER_FAKEBANK_start (8082); exchange = TALER_EXCHANGE_connect (ctx, "http://localhost:8081", &cert_cb, is, -- cgit v1.2.3