From 6ccb4b977e2477ea701f39be72bb5b7b440658af Mon Sep 17 00:00:00 2001 From: Maciek Borzecki Date: Sun, 1 Nov 2015 19:50:57 +0100 Subject: [PATCH] mconn-crypt-test: use mconn_ namespace --- test/mconn-crypt-test.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/mconn-crypt-test.c b/test/mconn-crypt-test.c index de36323..65cb5c5 100644 --- a/test/mconn-crypt-test.c +++ b/test/mconn-crypt-test.c @@ -26,24 +26,24 @@ static void test_simple(void) /* we made sure that file is removed */ g_assert_false(g_file_test("/tmp/test.key", G_FILE_TEST_EXISTS)); - MConnCrypt *cr = m_conn_crypt_new_for_key_path("/tmp/test.key"); + MconnCrypt *cr = mconn_crypt_new_for_key_path("/tmp/test.key"); g_assert_nonnull(cr); g_assert_true(g_file_test("/tmp/test.key", G_FILE_TEST_EXISTS)); - gchar *pubkey1 = m_conn_crypt_get_public_key_pem(cr); + gchar *pubkey1 = mconn_crypt_get_public_key_pem(cr); - m_conn_crypt_unref(cr); + mconn_crypt_unref(cr); /* file should still exit */ g_assert_true(g_file_test("/tmp/test.key", G_FILE_TEST_EXISTS)); - cr = m_conn_crypt_new_for_key_path("/tmp/test.key"); + cr = mconn_crypt_new_for_key_path("/tmp/test.key"); /* key should have been loaded */ g_assert_nonnull(cr); g_assert_true(g_file_test("/tmp/test.key", G_FILE_TEST_EXISTS)); - gchar *pubkey2 = m_conn_crypt_get_public_key_pem(cr); + gchar *pubkey2 = mconn_crypt_get_public_key_pem(cr); - m_conn_crypt_unref(cr); + mconn_crypt_unref(cr); g_assert_cmpstr(pubkey1, ==, pubkey2); }