diff options
author | Michael Catanzaro <mcatanzaro@igalia.com> | 2016-03-21 23:13:34 -0500 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@igalia.com> | 2016-03-21 23:55:15 -0500 |
commit | c5d5bd28f071b3734b0f07af7e802f902263d6f0 (patch) | |
tree | 32a2bf0127ac7732e4afa4dd65da6c81b17585ee /tests/ephy-sqlite-test.c | |
parent | 17c9805c3b7901d17666c71a2163de980eb5c774 (diff) | |
download | epiphany-uncrustify.tar.gz |
Uncrustifyuncrustify
For a better future. Apologies when your 'git blame' resolves to this.
I'm actually really impressed how well uncrustify works. This required
only a little one-time manual work to avoid extra space in 'else {'.
This breaks function prototype alignment, but we should get rid of most
of those anyway.
We decided to start aligning function parameters, like other GNOME
applications. It looks nicer this way, and I couldn't teach uncrustify
the previous Epiphany style.
Diffstat (limited to 'tests/ephy-sqlite-test.c')
-rw-r--r-- | tests/ephy-sqlite-test.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/ephy-sqlite-test.c b/tests/ephy-sqlite-test.c index d97ece1cf..8ca8a36ba 100644 --- a/tests/ephy-sqlite-test.c +++ b/tests/ephy-sqlite-test.c @@ -27,7 +27,7 @@ #include <gtk/gtk.h> static EphySQLiteConnection * -ensure_empty_database (const char* filename) +ensure_empty_database (const char *filename) { EphySQLiteConnection *connection = ephy_sqlite_connection_new (); GError *error = NULL; @@ -49,9 +49,9 @@ test_create_connection (void) EphySQLiteConnection *connection = ensure_empty_database (temporary_file); ephy_sqlite_connection_close (connection); - g_assert ( g_file_test (temporary_file, G_FILE_TEST_IS_REGULAR)); + g_assert (g_file_test (temporary_file, G_FILE_TEST_IS_REGULAR)); g_unlink (temporary_file); - g_assert ( !g_file_test (temporary_file, G_FILE_TEST_IS_REGULAR)); + g_assert (!g_file_test (temporary_file, G_FILE_TEST_IS_REGULAR)); g_free (temporary_file); temporary_file = g_build_filename (g_get_tmp_dir (), "directory-that-does-not-exist", "epiphany_sqlite_test.db", NULL); @@ -66,7 +66,7 @@ static void test_create_statement (void) { gchar *temporary_file = g_build_filename (g_get_tmp_dir (), "epiphany-sqlite-test.db", NULL); - EphySQLiteConnection* connection = ensure_empty_database (temporary_file); + EphySQLiteConnection *connection = ensure_empty_database (temporary_file); GError *error = NULL; EphySQLiteStatement *statement = NULL; @@ -132,7 +132,7 @@ static void test_create_table_and_insert_row (void) { gchar *temporary_file = g_build_filename (g_get_tmp_dir (), "epiphany-sqlite-test.db", NULL); - EphySQLiteConnection* connection = ensure_empty_database (temporary_file); + EphySQLiteConnection *connection = ensure_empty_database (temporary_file); create_table_and_insert_row (connection); @@ -145,7 +145,7 @@ static void test_bind_data (void) { gchar *temporary_file = g_build_filename (g_get_tmp_dir (), "epiphany-sqlite-test.db", NULL); - EphySQLiteConnection* connection = ensure_empty_database (temporary_file); + EphySQLiteConnection *connection = ensure_empty_database (temporary_file); GError *error = NULL; EphySQLiteStatement *statement = NULL; @@ -183,7 +183,7 @@ static void test_table_exists (void) { gchar *temporary_file = g_build_filename (g_get_tmp_dir (), "epiphany-sqlite-test.db", NULL); - EphySQLiteConnection* connection = ensure_empty_database (temporary_file); + EphySQLiteConnection *connection = ensure_empty_database (temporary_file); g_assert (!ephy_sqlite_connection_table_exists (connection, "test")); g_assert (!ephy_sqlite_connection_table_exists (connection, "something_fakey")); |