Add unit tests for forced encryption check function
Some checks failed
CI / Check spelling (pull_request) Successful in 20s
CI / Check coding style (pull_request) Successful in 31s
CI / Linux (debian) (pull_request) Failing after 3m30s
CI / Linux (ubuntu) (pull_request) Successful in 12m13s
CI / Linux (arch) (pull_request) Successful in 17m57s

This commit is contained in:
2025-08-27 02:19:23 +02:00
parent 442bfb6ce1
commit 28a5740e8b
6 changed files with 201 additions and 33 deletions

View File

@@ -0,0 +1,16 @@
#ifndef TEST_FORCED_ENCRYPTION_H
#define TEST_FORCED_ENCRYPTION_H
void test_cmd_force_encryption_no_args_bad_cmd(void** state);
void test_cmd_force_encryption_toggles_on(void** state);
void test_cmd_force_encryption_toggles_off(void** state);
void test_cmd_force_encryption_toggles_off_already(void** state);
void test_cmd_force_encryption_toggles_on_already(void** state);
void test_cmd_force_encryption_sets_policy_block(void** state);
void test_cmd_force_encryption_sets_policy_resend(void** state);
void test_allow_unencrypted_message_blocks(void** state);
void test_allow_unencrypted_message_confirms_on_second_attempt(void** state);
void test_cmd_force_encryption_invalid_policy(void** state);
void test_allow_unencrypted_message_invalid_mode(void** state);
#endif // TEST_FORCED_ENCRYPTION_H