summaryrefslogtreecommitdiff
path: root/tests/unit/core/hook/test-hook-connect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/core/hook/test-hook-connect.cpp')
-rw-r--r--tests/unit/core/hook/test-hook-connect.cpp103
1 files changed, 103 insertions, 0 deletions
diff --git a/tests/unit/core/hook/test-hook-connect.cpp b/tests/unit/core/hook/test-hook-connect.cpp
new file mode 100644
index 000000000..9f68c2873
--- /dev/null
+++ b/tests/unit/core/hook/test-hook-connect.cpp
@@ -0,0 +1,103 @@
+/*
+ * test-hook-connect.cpp - test hook connect functions
+ *
+ * Copyright (C) 2024 Sébastien Helleu <flashcode@flashtux.org>
+ *
+ * This file is part of WeeChat, the extensible chat client.
+ *
+ * WeeChat is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * WeeChat is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
+ */
+
+#include "CppUTest/TestHarness.h"
+
+#include "tests/tests.h"
+
+extern "C"
+{
+#include "src/core/weechat.h"
+}
+
+TEST_GROUP(HookConnect)
+{
+};
+
+/*
+ * Tests functions:
+ * hook_connect_get_description
+ */
+
+TEST(HookConnect, GetDescription)
+{
+ /* TODO: write tests */
+}
+
+/*
+ * Tests functions:
+ * hook_connect
+ */
+
+TEST(HookConnect, Connect)
+{
+ /* TODO: write tests */
+}
+
+/*
+ * Tests functions:
+ * hook_connect_gnutls_verify_certificates
+ */
+
+TEST(HookConnect, GnutlsVerifyCertificates)
+{
+ /* TODO: write tests */
+}
+
+/*
+ * Tests functions:
+ * hook_connect_gnutls_set_certificates
+ */
+
+TEST(HookConnect, GnutlsSetCertificates)
+{
+ /* TODO: write tests */
+}
+
+/*
+ * Tests functions:
+ * hook_connect_free_data
+ */
+
+TEST(HookConnect, FreeData)
+{
+ /* TODO: write tests */
+}
+
+/*
+ * Tests functions:
+ * hook_connect_add_to_infolist
+ */
+
+TEST(HookConnect, AddToInfolist)
+{
+ /* TODO: write tests */
+}
+
+/*
+ * Tests functions:
+ * hook_connect_print_log
+ */
+
+TEST(HookConnect, PrintLog)
+{
+ /* TODO: write tests */
+}