]> git.meshlink.io Git - meshlink/blobdiff - test/blackbox/test_case_channel_blacklist_01/node_sim_nut_01.h
Add test case for channel blacklist
[meshlink] / test / blackbox / test_case_channel_blacklist_01 / node_sim_nut_01.h
diff --git a/test/blackbox/test_case_channel_blacklist_01/node_sim_nut_01.h b/test/blackbox/test_case_channel_blacklist_01/node_sim_nut_01.h
new file mode 100644 (file)
index 0000000..e5dc0ac
--- /dev/null
@@ -0,0 +1,31 @@
+#ifndef CHANNEL_BLACKLIST_NUT_01_H
+#define CHANNEL_BLACKLIST_NUT_01_H
+
+/*
+    test_case_channel_disconnection.h -- Implementation of Node Simulation for Meshlink Testing
+    Copyright (C) 2019  Guus Sliepen <guus@meshlink.io>
+
+    This program 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 2 of the License, or
+    (at your option) any later version.
+
+    This program 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 this program; if not, write to the Free Software Foundation, Inc.,
+    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+*/
+
+extern void *test_channel_blacklist_disonnection_peer_01(void *arg);
+extern void *test_channel_blacklist_disonnection_nut_01(void *arg);
+extern void *test_channel_blacklist_disonnection_relay_01(void *arg);
+extern int total_blacklist_callbacks_01;
+extern int total_whitelist_callbacks_01;
+extern struct sync_flag test_channel_discon_nut_close;
+extern bool test_case_signal_peer_restart_01;
+
+#endif