Browse Source

Cleaning up tests

ENGINE-641
parent
commit
bf136c8462
95 changed files with 15 additions and 2549 deletions
  1. +2
    -0
      .hgignore
  2. +0
    -0
      test/convenience_scripts/gen_pgp_samples.sh
  3. +0
    -20
      test/include/AppleMailTests.h
  4. +0
    -21
      test/include/BCCTests.h
  5. +0
    -19
      test/include/BlacklistAcceptNewKeyTests.h
  6. +0
    -19
      test/include/BlacklistTests.h
  7. +0
    -22
      test/include/BloblistTests.h
  8. +0
    -19
      test/include/CaseAndDotAddressTests.h
  9. +0
    -22
      test/include/CheckRenewedExpiredKeyTrustStatusTests.h
  10. +0
    -19
      test/include/CrashdumpTests.h
  11. +0
    -19
      test/include/DecorateTests.h
  12. +0
    -19
      test/include/DecryptAttachPrivateKeyTrustedTests.h
  13. +0
    -19
      test/include/DecryptAttachPrivateKeyUntrustedTests.h
  14. +0
    -41
      test/include/DeleteKeyTests.h
  15. +0
    -19
      test/include/EncryptAttachPrivateKeyTests.h
  16. +0
    -19
      test/include/EncryptForIdentityTests.h
  17. +0
    -21
      test/include/EncryptMissingPrivateKeyTests.h
  18. +0
    -19
      test/include/Engine358Tests.h
  19. +0
    -22
      test/include/Engine463Tests.h
  20. +0
    -21
      test/include/EngineTestIndividualSuite.h
  21. +0
    -22
      test/include/EngineTestSessionSuite.h
  22. +0
    -63
      test/include/EngineTestSuite.h
  23. +0
    -34
      test/include/EnterLeaveDeviceGroupTests.h
  24. +0
    -22
      test/include/ExpiredSubkeyTests.h
  25. +0
    -22
      test/include/ExportKeyTests.h
  26. +0
    -19
      test/include/ExternalRevokeTests.h
  27. +0
    -19
      test/include/GetKeyRatingForUserTests.h
  28. +0
    -61
      test/include/HeaderKeyImportTests.h
  29. +0
    -19
      test/include/I18nTests.h
  30. +0
    -19
      test/include/IOS1664Tests.h
  31. +0
    -19
      test/include/IdentityListTests.h
  32. +0
    -54
      test/include/IntegrityTests.h
  33. +0
    -38
      test/include/KeyAttachmentTests.h
  34. +0
    -70
      test/include/KeyResetMessageTests.h
  35. +0
    -19
      test/include/KeyeditTests.h
  36. +0
    -23
      test/include/KeyringImportTests.h
  37. +0
    -19
      test/include/LeastColorGroupTests.h
  38. +0
    -19
      test/include/LeastCommonDenomColorTests.h
  39. +0
    -19
      test/include/LiteralFilenameTests.h
  40. +0
    -22
      test/include/LookupTests.h
  41. +0
    -19
      test/include/LotsOfKeysTests.h
  42. +0
    -19
      test/include/MapAsn1Tests.h
  43. +0
    -19
      test/include/Message2_0Tests.h
  44. +0
    -28
      test/include/Message2_1Tests.h
  45. +0
    -19
      test/include/MessageApiTests.h
  46. +0
    -26
      test/include/MessageNullFromTests.h
  47. +0
    -19
      test/include/MessageTwoPointOhTests.h
  48. +0
    -19
      test/include/MimeTests.h
  49. +0
    -51
      test/include/NewUpdateIdAndMyselfTests.h
  50. +0
    -25
      test/include/NoOwnIdentWritesOnDecryptTests.h
  51. +0
    -19
      test/include/OwnIdentitiesRetrieveTests.h
  52. +0
    -25
      test/include/OwnKeysRetrieveTests.h
  53. +0
    -19
      test/include/PepSubjectReceivedTests.h
  54. +0
    -19
      test/include/PgpBinaryTests.h
  55. +0
    -19
      test/include/PgpListKeysTests.h
  56. +0
    -20
      test/include/ReencryptPlusExtraKeysTests.h
  57. +0
    -22
      test/include/RevocationTests.h
  58. +0
    -21
      test/include/RevokeRegenAttachTests.h
  59. +0
    -19
      test/include/SenderFPRTests.h
  60. +0
    -19
      test/include/SequenceTests.h
  61. +0
    -19
      test/include/SignOnlyTests.h
  62. +0
    -20
      test/include/SimpleBodyNotAltTests.h
  63. +0
    -20
      test/include/StringlistTests.h
  64. +0
    -20
      test/include/StringpairListTests.h
  65. +0
    -35
      test/include/StrnstrTests.h
  66. +0
    -29
      test/include/SubkeyRatingEvalTests.h
  67. +0
    -25
      test/include/SuiteMaker.h
  68. +0
    -49
      test/include/SyncTests.h
  69. +0
    -19
      test/include/TestDriver.h
  70. +0
    -19
      test/include/TrustManipulationTests.h
  71. +0
    -19
      test/include/TrustwordsTests.h
  72. +0
    -20
      test/include/URIAddressTests.h
  73. +0
    -19
      test/include/UserIDAliasTests.h
  74. +0
    -112
      test/include/UserIdCollisionTests.h
  75. +0
    -23
      test/include/VerifyTests.h
  76. +0
    -44
      test/include/pEpTestOutput.h
  77. +0
    -22
      test/msg
  78. +0
    -36
      test/msg.asc
  79. +0
    -56
      test/no_key.asc
  80. +0
    -360
      test/pEpEngineTest.cc
  81. +0
    -64
      test/pgp_mime_msg.txt
  82. +0
    -12
      test/signature.asc
  83. +2
    -2
      test/src/EncryptForIdentityTest.cc
  84. +3
    -3
      test/src/MessageApiTest.cc
  85. +2
    -2
      test/src/MessageTwoPointOhTest.cc
  86. +3
    -3
      test/src/MimeTest.cc
  87. +2
    -2
      test/src/SignOnlyTest.cc
  88. +0
    -56
      test/still_no_key.asc
  89. +0
    -10
      test/t1.txt
  90. +0
    -1
      test/t2.txt
  91. +0
    -0
      test/test_mails/msg1.asc
  92. +0
    -0
      test/test_mails/msg2.asc
  93. +0
    -0
      test/test_mails/msg3.asc
  94. +0
    -0
      test/test_mails/msg_no_key.asc
  95. +1
    -0
      test/tmp/README

+ 2
- 0
.hgignore View File

@ -81,5 +81,7 @@ test/msg_2.0.asc
test/*.txt
lldb-history
*.swo
*.smp
test/EngineTests
test/googletest
test/tmp/*

test/gen_pgp_samples.sh → test/convenience_scripts/gen_pgp_samples.sh View File


+ 0
- 20
test/include/AppleMailTests.h View File

@ -1,20 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef APPLE_MAIL_TESTS_H
#define APPLE_MAIL_TESTS_H
#include <string.h>
#include "EngineTestIndividualSuite.h"
using namespace std;
class AppleMailTests : public EngineTestIndividualSuite {
public:
AppleMailTests(string suitename, string test_home_dir);
private:
void check_apple_mail_text_signed_encrypted();
void check_apple_mail_html_signed_encrypted();
};
#endif

+ 0
- 21
test/include/BCCTests.h View File

@ -1,21 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef BCC_H
#define BCC_H
#include <string>
#include "EngineTestIndividualSuite.h"
using namespace std;
class BCCTests : public EngineTestIndividualSuite {
public:
BCCTests(string test_suite, string test_home_dir);
protected:
void setup();
private:
void check_single_BCC();
};
#endif

+ 0
- 19
test/include/BlacklistAcceptNewKeyTests.h View File

@ -1,19 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef BLACKLIST_ACCEPT_NEW_KEY_H
#define BLACKLIST_ACCEPT_NEW_KEY_H
#include <string>
#include "EngineTestSessionSuite.h"
using namespace std;
class BlacklistAcceptNewKeyTests : public EngineTestSessionSuite {
public:
BlacklistAcceptNewKeyTests(string test_suite, string test_home_dir);
private:
void check_blacklist_accept_new_key();
};
#endif

+ 0
- 19
test/include/BlacklistTests.h View File

@ -1,19 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef BLACKLIST_H
#define BLACKLIST_H
#include <string>
#include "EngineTestSessionSuite.h"
using namespace std;
class BlacklistTests : public EngineTestSessionSuite {
public:
BlacklistTests(string test_suite, string test_home_dir);
private:
void check_blacklist();
};
#endif

+ 0
- 22
test/include/BloblistTests.h View File

@ -1,22 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef BLOBLIST_TESTS_H
#define BLOBLIST_TESTS_H
#include <string>
#include "bloblist.h"
#include "EngineTestSuite.h"
using namespace std;
class BloblistTests : public EngineTestSuite {
public:
BloblistTests(string suitename, string test_home_dir);
private:
void check_bloblists();
bool test_blob_equals(size_t size1, char* blob1, size_t size2, char* blob2);
bool test_bloblist_node_equals(bloblist_t* val1, bloblist_t* val2);
};
#endif

+ 0
- 19
test/include/CaseAndDotAddressTests.h View File

@ -1,19 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef CASE_AND_DOT_ADDRESS_TESTS_H
#define CASE_AND_DOT_ADDRESS_TESTS_H
#include <string>
#include "EngineTestSessionSuite.h"
using namespace std;
class CaseAndDotAddressTests : public EngineTestSessionSuite {
public:
CaseAndDotAddressTests(string suitename, string test_home_dir);
private:
void check_case_and_dot_address();
};
#endif

+ 0
- 22
test/include/CheckRenewedExpiredKeyTrustStatusTests.h View File

@ -1,22 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef CHECK_RENEWED_EXPIRED_KEY_TRUST_STATUS_H
#define CHECK_RENEWED_EXPIRED_KEY_TRUST_STATUS_H
#include <string>
#include "EngineTestIndividualSuite.h"
using namespace std;
class CheckRenewedExpiredKeyTrustStatusTests : public EngineTestIndividualSuite {
public:
CheckRenewedExpiredKeyTrustStatusTests(string test_suite, string test_home_dir);
private:
void check_renewed_expired_key_trust_status();
void check_renewed_expired_key_trust_status_trusted_user();
void check_renewed_expired_key_trust_status_pEp_user();
void check_renewed_expired_key_trust_status_trusted_pEp_user();
};
#endif

+ 0
- 19
test/include/CrashdumpTests.h View File

@ -1,19 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef CRASHDUMP_H
#define CRASHDUMP_H
#include <string>
#include "EngineTestSessionSuite.h"
using namespace std;
class CrashdumpTests : public EngineTestSessionSuite {
public:
CrashdumpTests(string test_suite, string test_home_dir);
private:
void check_crashdump();
};
#endif

+ 0
- 19
test/include/DecorateTests.h View File

@ -1,19 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef DECORATE_TESTS_H
#define DECORATE_TESTS_H
#include <string>
#include "EngineTestSessionSuite.h"
using namespace std;
class DecorateTests : public EngineTestSessionSuite {
public:
DecorateTests(string suitename, string test_home_dir);
private:
void check_decorate();
};
#endif

+ 0
- 19
test/include/DecryptAttachPrivateKeyTrustedTests.h View File

@ -1,19 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef DECRYPT_ATTACH_PRIVATE_KEY_TRUSTED_H
#define DECRYPT_ATTACH_PRIVATE_KEY_TRUSTED_H
#include <string>
#include "EngineTestSessionSuite.h"
using namespace std;
class DecryptAttachPrivateKeyTrustedTests : public EngineTestSessionSuite {
public:
DecryptAttachPrivateKeyTrustedTests(string test_suite, string test_home_dir);
private:
void check_decrypt_attach_private_key_trusted();
};
#endif

+ 0
- 19
test/include/DecryptAttachPrivateKeyUntrustedTests.h View File

@ -1,19 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef DECRYPT_ATTACH_PRIVATE_KEY_UNTRUSTED_H
#define DECRYPT_ATTACH_PRIVATE_KEY_UNTRUSTED_H
#include <string>
#include "EngineTestSessionSuite.h"
using namespace std;
class DecryptAttachPrivateKeyUntrustedTests : public EngineTestSessionSuite {
public:
DecryptAttachPrivateKeyUntrustedTests(string test_suite, string test_home_dir);
private:
void check_decrypt_attach_private_key_untrusted();
};
#endif

+ 0
- 41
test/include/DeleteKeyTests.h View File

@ -1,41 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef DELETE_KEY_H
#define DELETE_KEY_H
#include <string>
#include "EngineTestIndividualSuite.h"
using namespace std;
class DeleteKeyTests : public EngineTestIndividualSuite {
public:
DeleteKeyTests(string test_suite, string test_home_dir);
static constexpr const char* alice_fpr = "4ABE3AAF59AC32CFE4F86500A9411D176FF00E97";
static constexpr const char* bob_fpr = "BFCDB7F301DEEEBBF947F29659BFF488C9C2EE39";
static constexpr const char* carol_fpr = "8DD4F5827B45839E9ACCA94687BDDFFB42A85A42";
static constexpr const char* dave_fpr = "E8AC9779A2D13A15D8D55C84B049F489BB5BCCF6";
static constexpr const char* erin_fpr = "1B0E197E8AE66277B8A024B9AEA69F509F8D7CBA";
static constexpr const char* fenris_fpr = "0969FA229DF21C832A64A04711B1B9804F3D2900";
static const string alice_user_id;
static const string bob_user_id;
static const string carol_user_id;
static const string dave_user_id;
static const string erin_user_id;
static const string fenris_user_id;
private:
void import_test_keys();
void check_delete_single_pubkey();
void check_delete_pub_priv_keypair();
void check_delete_multiple_keys();
void check_delete_all_keys();
void check_delete_key_not_found();
void check_delete_empty_keyring();
};
#endif

+ 0
- 19
test/include/EncryptAttachPrivateKeyTests.h View File

@ -1,19 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef ENCRYPT_ATTACH_PRIVATE_KEY_H
#define ENCRYPT_ATTACH_PRIVATE_KEY_H
#include <string>
#include "EngineTestSessionSuite.h"
using namespace std;
class EncryptAttachPrivateKeyTests : public EngineTestSessionSuite {
public:
EncryptAttachPrivateKeyTests(string test_suite, string test_home_dir);
private:
void check_encrypt_attach_private_key();
};
#endif

+ 0
- 19
test/include/EncryptForIdentityTests.h View File

@ -1,19 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef ENCRYPT_FOR_IDENTITY_H
#define ENCRYPT_FOR_IDENTITY_H
#include <string>
#include "EngineTestSessionSuite.h"
using namespace std;
class EncryptForIdentityTests : public EngineTestSessionSuite {
public:
EncryptForIdentityTests(string test_suite, string test_home_dir);
private:
void check_encrypt_for_identity();
};
#endif

+ 0
- 21
test/include/EncryptMissingPrivateKeyTests.h View File

@ -1,21 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef ENCRYPT_MISSING_PRIVATE_KEY_H
#define ENCRYPT_MISSING_PRIVATE_KEY_H
#include <string>
#include "EngineTestSessionSuite.h"
using namespace std;
class EncryptMissingPrivateKeyTests : public EngineTestSessionSuite {
public:
EncryptMissingPrivateKeyTests(string test_suite, string test_home_dir);
protected:
void setup();
private:
void check_encrypt_missing_private_key();
};
#endif

+ 0
- 19
test/include/Engine358Tests.h View File

@ -1,19 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef ENGINE358_H
#define ENGINE358_H
#include <string>
#include "EngineTestIndividualSuite.h"
using namespace std;
class Engine358Tests : public EngineTestIndividualSuite {
public:
Engine358Tests(string test_suite, string test_home_dir);
private:
void check_engine358();
};
#endif

+ 0
- 22
test/include/Engine463Tests.h View File

@ -1,22 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef ENGINE463_H
#define ENGINE463_H
#include <string>
#include "EngineTestIndividualSuite.h"
using namespace std;
class Engine463Tests : public EngineTestIndividualSuite {
public:
Engine463Tests(string test_suite, string test_home_dir);
private:
void check_engine_463_no_own_key();
void check_engine_463_own_key();
void check_engine_463_sender_expired_and_renewed();
void check_engine_463_reply_recip_expired_and_renewed();
};
#endif

+ 0
- 21
test/include/EngineTestIndividualSuite.h View File

@ -1,21 +0,0 @@
#ifndef ENGINE_TEST_INDIVIDUAL_SUITE_H
#define ENGINE_TEST_INDIVIDUAL_SUITE_H
#include <cpptest.h>
#include <cpptest-suite.h>
#include <cpptest-textoutput.h>
#include <string>
#include "pEpEngine.h"
#include "EngineTestSuite.h"
using namespace std;
class EngineTestIndividualSuite : public EngineTestSuite {
public:
EngineTestIndividualSuite(string suitename, string test_home_dir);
virtual ~EngineTestIndividualSuite();
protected:
virtual void setup();
virtual void tear_down();
};
#endif

+ 0
- 22
test/include/EngineTestSessionSuite.h View File

@ -1,22 +0,0 @@
#ifndef ENGINE_TEST_SESSION_SUITE_H
#define ENGINE_TEST_SESSION_SUITE_H
#include <cpptest.h>
#include <cpptest-suite.h>
#include <cpptest-textoutput.h>
#include <string>
#include "pEpEngine.h"
#include "EngineTestSuite.h"
using namespace std;
class EngineTestSessionSuite : public EngineTestSuite {
public:
EngineTestSessionSuite(string suitename, string test_home_dir);
virtual ~EngineTestSessionSuite();
virtual void setup();
virtual void tear_down();
};
#endif

+ 0
- 63
test/include/EngineTestSuite.h View File

@ -1,63 +0,0 @@
#ifndef ENGINE_TEST_SUITE_H
#define ENGINE_TEST_SUITE_H
#include <cpptest.h>
#include <string>
#include <map>
#include <vector>
#include <utility>
#include "pEpEngine.h"
using namespace std;
class EngineTestSuite : public Test::Suite {
public:
EngineTestSuite(string suitename, string test_home_dir);
virtual ~EngineTestSuite();
void add_test_to_suite(std::pair<std::string, void (Test::Suite::*)()> test_func);
void output_test_header(const char* test_name);
void output_test_footer(const char* test_name);
protected:
PEP_SESSION session;
string test_home;
string real_home;
string prev_pgp_home;
string name;
string current_test_name;
messageToSend_t cached_messageToSend;
inject_sync_event_t cached_inject_sync_event;
#define TEST_FAILED_MESSAGE_BUFSIZE 1000
char failed_msg_buf[TEST_FAILED_MESSAGE_BUFSIZE];
std::map<std::string, void (Test::Suite::*)()> test_map;
string my_name;
unsigned int number_of_tests;
unsigned int on_test_number;
string temp_test_home;
virtual void setup();
virtual void tear_down();
void set_full_env();
void set_full_env(const char* gpg_conf_copy_path, const char* gpg_agent_conf_file_copy_path, const char* db_conf_file_copy_path);
void restore_full_env();
void initialise_test_home();
void set_my_name();
void copy_conf_file_to_test_dir(const char* dest_path, const char* conf_orig_path, const char* conf_dest_name);
std::vector<std::pair<std::string, std::string>> gpgdir_fileadd_queue;
std::vector<std::pair<std::string, std::string>> homedir_fileadd_queue;
void add_file_to_gpg_dir_queue(std::string copy_from, std::string dst_fname);
void add_file_to_home_dir_queue(std::string copy_from, std::string dst_fname);
void process_file_queue(std::string dirname, std::vector<std::pair<std::string, std::string>> file_queue);
};
#endif

+ 0
- 34
test/include/EnterLeaveDeviceGroupTests.h View File

@ -1,34 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef ENTER_LEAVE_DEVICE_GROUP_H
#define ENTER_LEAVE_DEVICE_GROUP_H
#include <string>
#include "EngineTestIndividualSuite.h"
using namespace std;
class EnterLeaveDeviceGroupTests : public EngineTestIndividualSuite {
public:
EnterLeaveDeviceGroupTests(string test_suite, string test_home_dir);
private:
void check_enter_device_group_no_own();
void check_enter_device_group_one_own_empty();
void check_enter_device_group_one_own_one();
void check_enter_device_group_one_reversed_by_many();
void check_enter_device_group_one_own_single_not_me();
void check_enter_device_group_one_own_single_many_w_not_me();
void check_enter_device_group_many_empty();
void check_enter_device_group_many_own_add_explicit();
void check_enter_device_group_many_own_one();
void check_enter_device_group_many_own_many();
void check_enter_device_group_many_own_many_w_not_me();
void check_leave_device_group_empty();
void check_leave_device_group_sole();
void check_leave_device_group_one_in_one_out();
void check_leave_device_group_three_in();
void check_leave_device_group_two_in_one_out();
};
#endif

+ 0
- 22
test/include/ExpiredSubkeyTests.h View File

@ -1,22 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef EXPIRED_SUBKEY_H
#define EXPIRED_SUBKEY_H
#include <string>
#include "EngineTestIndividualSuite.h"
using namespace std;
class ExpiredSubkeyTests : public EngineTestIndividualSuite {
public:
ExpiredSubkeyTests(string test_suite, string test_home_dir);
private:
void expired_subkey_with_valid_subkeys_and_main_key();
void expired_subkey_with_valid_subkeys_expired_main();
void all_valid_with_leftover_expired_subkeys();
void no_valid_encryption_subkey();
};
#endif

+ 0
- 22
test/include/ExportKeyTests.h View File

@ -1,22 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef EXPORT_KEY_H
#define EXPORT_KEY_H
#include <string>
#include "EngineTestIndividualSuite.h"
using namespace std;
class ExportKeyTests : public EngineTestIndividualSuite {
public:
ExportKeyTests(string test_suite, string test_home_dir);
private:
void check_export_key_no_key();
void check_export_key_pubkey();
void check_export_key_secret_key();
void check_export_key_no_secret_key();
};
#endif

+ 0
- 19
test/include/ExternalRevokeTests.h View File

@ -1,19 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef EXTERNAL_REVOKE_H
#define EXTERNAL_REVOKE_H
#include <string>
#include "EngineTestSessionSuite.h"
using namespace std;
class ExternalRevokeTests : public EngineTestSessionSuite {
public:
ExternalRevokeTests(string test_suite, string test_home_dir);
private:
void check_external_revoke();
};
#endif

+ 0
- 19
test/include/GetKeyRatingForUserTests.h View File

@ -1,19 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef GET_KEY_RATING_FOR_USER_H
#define GET_KEY_RATING_FOR_USER_H
#include <string>
#include "EngineTestIndividualSuite.h"
using namespace std;
class GetKeyRatingForUserTests : public EngineTestIndividualSuite {
public:
GetKeyRatingForUserTests(string test_suite, string test_home_dir);
private:
void check_get_key_rating_for_user();
};
#endif

+ 0
- 61
test/include/HeaderKeyImportTests.h View File

@ -1,61 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef HEADER_KEY_IMPORT_H
#define HEADER_KEY_IMPORT_H
#include <string>
#include "EngineTestIndividualSuite.h"
using namespace std;
class HeaderKeyImportTests : public EngineTestIndividualSuite {
public:
HeaderKeyImportTests(string test_suite, string test_home_dir);
private:
void base_64_minimal_round();
void base_64_minimal_padded_1();
void base_64_minimal_padded_2();
void base_64_minimal_unpadded_1();
void base_64_minimal_unpadded_2();
void base_64_minimal_leading_whitespace_round();
void base_64_minimal_leading_whitespace_padded_1();
void base_64_minimal_leading_whitespace_padded_2();
void base_64_minimal_leading_whitespace_unpadded_1();
void base_64_minimal_leading_whitespace_unpadded_2();
void base_64_minimal_trailing_whitespace_round();
void base_64_minimal_trailing_whitespace_padded_1();
void base_64_minimal_trailing_whitespace_padded_2();
void base_64_minimal_trailing_whitespace_unpadded_1();
void base_64_minimal_trailing_whitespace_unpadded_2();
void base_64_minimal_internal_whitespace_round();
void base_64_minimal_internal_whitespace_padded_1();
void base_64_minimal_internal_whitespace_padded_2();
void base_64_minimal_internal_whitespace_unpadded_1();
void base_64_minimal_internal_whitespace_unpadded_2();
void base_64_round();
void base_64_padded_1();
void base_64_padded_2();
void base_64_unpadded_1();
void base_64_unpadded_2();
void base_64_leading_whitespace_round();
void base_64_leading_whitespace_padded_1();
void base_64_leading_whitespace_padded_2();
void base_64_leading_whitespace_unpadded_1();
void base_64_leading_whitespace_unpadded_2();
void base_64_trailing_whitespace_round();
void base_64_trailing_whitespace_padded_1();
void base_64_trailing_whitespace_padded_2();
void base_64_trailing_whitespace_unpadded_1();
void base_64_trailing_whitespace_unpadded_2();
void base_64_kitchen_sink_round();
void base_64_kitchen_sink_padded_1();
void base_64_kitchen_sink_padded_2();
void base_64_kitchen_sink_unpadded_1();
void base_64_kitchen_sink_unpadded_2();
void check_header_key_import();
bool verify_base_64_test(const char* input, const char* desired_output);
};
#endif

+ 0
- 19
test/include/I18nTests.h View File

@ -1,19 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef I18N_H
#define I18N_H
#include <string>
#include "EngineTestSessionSuite.h"
using namespace std;
class I18nTests : public EngineTestSessionSuite {
public:
I18nTests(string test_suite, string test_home_dir);
private:
void check_i18n();
};
#endif

+ 0
- 19
test/include/IOS1664Tests.h View File

@ -1,19 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef I_O_S1664_H
#define I_O_S1664_H
#include <string>
#include "EngineTestIndividualSuite.h"
using namespace std;
class IOS1664Tests : public EngineTestIndividualSuite {
public:
IOS1664Tests(string test_suite, string test_home_dir);
private:
void check_i_o_s1664();
};
#endif

+ 0
- 19
test/include/IdentityListTests.h View File

@ -1,19 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef IDENTITY_LIST_H
#define IDENTITY_LIST_H
#include <string>
#include "EngineTestSessionSuite.h"
using namespace std;
class IdentityListTests : public EngineTestSessionSuite {
public:
IdentityListTests(string test_suite, string test_home_dir);
private:
void check_identity_list();
};
#endif

+ 0
- 54
test/include/IntegrityTests.h View File

@ -1,54 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef INTEGRITY_H
#define INTEGRITY_H
#include <string>
#include "pEpEngine.h"
#include "message_api.h"
#include "EngineTestIndividualSuite.h"
using namespace std;
class IntegrityTests : public EngineTestIndividualSuite {
public:
IntegrityTests(string test_suite, string test_home_dir);
protected:
void setup();
void tear_down();
private:
const char* recip_fpr;
// used by each test
string message;
char* decrypted_msg;
PEP_STATUS decrypt_status;
PEP_rating rating;
PEP_decrypt_flags_t flags;
stringlist_t* keylist;
char* dummy_ignore;
void check_unsigned_PGP_MIME();
void check_unsigned_PGP_MIME_attached_key();
void check_unsigned_PGP_MIME_w_render_flag();
void check_known_good_signed_PGP_MIME();
void check_known_good_signed_PGP_MIME_attached_key();
void check_unknown_signed_PGP_MIME_no_key();
void check_unknown_signed_PGP_MIME_attached_key();
void check_unsigned_PGP_MIME_corrupted();
void check_signed_PGP_MIME_corrupted();
void check_unsigned_2_0();
void check_unknown_signed_2_0_no_key();
void check_unknown_signed_2_0_no_key_known_signer();
void check_unknown_signed_2_0_key_attached();
void check_integrity();
};
#endif

+ 0
- 38
test/include/KeyAttachmentTests.h View File

@ -1,38 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef KEY_ATTACHMENT_H
#define KEY_ATTACHMENT_H
#include <string>
#include "EngineTestIndividualSuite.h"
using namespace std;
class KeyAttachmentTests : public EngineTestIndividualSuite {
public:
KeyAttachmentTests(string test_suite, string test_home_dir);
protected:
void setup();
private:
void check_key_attach_inline();
void check_key_plus_encr_att_inline();
void check_encr_att_plus_key_inline();
void check_key_plus_unencr_att_inline(); // not really unencrypted; just not encrypted before attachment
void check_unencr_att_plus_key_inline(); // not really unencrypted; just not encrypted before attachment
void check_many_keys_inline();
void check_many_keys_w_encr_file_inline();
void check_many_keys_w_unencr_file_inline(); // not really unencrypted; just not encrypted before attachment
void check_many_keys_with_many_files_inline();
void check_key_attach_OpenPGP();
void check_key_plus_encr_att_OpenPGP();
void check_encr_att_plus_key_OpenPGP();
void check_key_plus_unencr_att_OpenPGP();
void check_unencr_att_plus_key_OpenPGP();
void check_many_keys_OpenPGP();
void check_many_keys_w_encr_file_OpenPGP();
void check_many_keys_w_unencr_file_OpenPGP();
void check_many_keys_w_many_files_OpenPGP();
};
#endif

+ 0
- 70
test/include/KeyResetMessageTests.h View File

@ -1,70 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef KEY_RESET_MESSAGE_H
#define KEY_RESET_MESSAGE_H
#include <string>
#include "EngineTestIndividualSuite.h"
#include "pEpEngine.h"
#include "message.h"
using namespace std;
class KeyResetMessageTests : public EngineTestIndividualSuite {
public:
KeyResetMessageTests(string test_suite, string test_home_dir);
static PEP_STATUS message_send_callback(message *msg);
static KeyResetMessageTests* fake_this;
vector<message*> m_queue;
static constexpr const char* alice_fpr = "4ABE3AAF59AC32CFE4F86500A9411D176FF00E97";
static constexpr const char* bob_fpr = "BFCDB7F301DEEEBBF947F29659BFF488C9C2EE39";
static constexpr const char* alice_receive_reset_fpr = "6A349E4F68801E39145CD4C5712616A385412538";
static const string alice_user_id;
static const string bob_user_id;
static const string carol_user_id;
static const string dave_user_id;
static const string erin_user_id;
static const string fenris_user_id;
protected:
void setup();
private:
void check_key_reset_message();
void check_reset_key_and_notify();
void check_non_reset_receive_revoked();
void check_reset_receive_revoked();
void check_receive_message_to_revoked_key_from_unknown();
void check_receive_message_to_revoked_key_from_contact();
void check_multiple_resets_single_key();
void check_reset_ident_uid_only();
void check_reset_ident_address_only();
void check_reset_ident_null_ident();
void check_reset_ident_other_pub_fpr();
void check_reset_ident_other_priv_fpr();
void check_reset_ident_other_pub_no_fpr();
void check_reset_ident_other_priv_no_fpr();
void check_reset_ident_own_pub_fpr();
void check_reset_ident_own_priv_fpr();
void check_reset_ident_own_priv_no_fpr();
void check_reset_user_other_no_fpr();
void check_reset_user_other_fpr();
void check_reset_user_own_fpr();
void check_reset_user_no_fpr();
void check_reset_all_own_keys();
void check_reset_all_own_no_own();
void send_setup();
void receive_setup();
void create_msg_for_revoked_key();
};
#endif

+ 0
- 19
test/include/KeyeditTests.h View File

@ -1,19 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef KEYEDIT_H
#define KEYEDIT_H
#include <string>
#include "EngineTestSessionSuite.h"
using namespace std;
class KeyeditTests : public EngineTestSessionSuite {
public:
KeyeditTests(string test_suite, string test_home_dir);
private:
void check_keyedit();
};
#endif

+ 0
- 23
test/include/KeyringImportTests.h View File

@ -1,23 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef KEYRING_IMPORT_TESTS_H
#define KEYRING_IMPORT_TESTS_H
#include <string>
#include "EngineTestSessionSuite.h"
using namespace std;
class KeyringImportTests : public EngineTestSessionSuite {
public:
KeyringImportTests(string test_suite, string test_home_dir);
protected:
void setup();
void tear_down();
private:
void import1();
void import2();
};
#endif

+ 0
- 19
test/include/LeastColorGroupTests.h View File

@ -1,19 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef LEAST_COLOR_GROUP_H
#define LEAST_COLOR_GROUP_H
#include <string>
#include "EngineTestSessionSuite.h"
using namespace std;
class LeastColorGroupTests : public EngineTestSessionSuite {
public:
LeastColorGroupTests(string test_suite, string test_home_dir);
private:
void check_least_color_group();
};
#endif

+ 0
- 19
test/include/LeastCommonDenomColorTests.h View File

@ -1,19 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef LEAST_COMMON_DENOM_COLOR_H
#define LEAST_COMMON_DENOM_COLOR_H
#include <string>
#include "EngineTestIndividualSuite.h"
using namespace std;
class LeastCommonDenomColorTests : public EngineTestIndividualSuite {
public:
LeastCommonDenomColorTests(string test_suite, string test_home_dir);
private:
void check_least_common_denom_color();
};
#endif

+ 0
- 19
test/include/LiteralFilenameTests.h View File

@ -1,19 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef LITERAL_FILENAME_H
#define LITERAL_FILENAME_H
#include <string>
#include "EngineTestIndividualSuite.h"
using namespace std;
class LiteralFilenameTests : public EngineTestIndividualSuite {
public:
LiteralFilenameTests(string test_suite, string test_home_dir);
private:
void check();
};
#endif

+ 0
- 22
test/include/LookupTests.h View File

@ -1,22 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef LOOKUP_H
#define LOOKUP_H
#include <string>
#include "EngineTestSessionSuite.h"
using namespace std;
class LookupTests : public EngineTestSessionSuite {
public:
LookupTests(string test_suite, string test_home_dir);
protected:
void setup();
void tear_down();
private:
void lookup();
};
#endif

+ 0
- 19
test/include/LotsOfKeysTests.h View File

@ -1,19 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef LOTS_OF_KEYS_H
#define LOTS_OF_KEYS_H
#include <string>
#include "EngineTestIndividualSuite.h"
using namespace std;
class LotsOfKeysTests : public EngineTestIndividualSuite {
public:
LotsOfKeysTests(string test_suite, string test_home_dir);
private:
void check();
};
#endif

+ 0
- 19
test/include/MapAsn1Tests.h View File

@ -1,19 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef MAP_ASN1_H
#define MAP_ASN1_H
#include <string>
#include "EngineTestSessionSuite.h"
using namespace std;
class MapAsn1Tests : public EngineTestSessionSuite {
public:
MapAsn1Tests(string test_suite, string test_home_dir);
private:
void check_map_asn1();
};
#endif

+ 0
- 19
test/include/Message2_0Tests.h View File

@ -1,19 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef MESSAGE2_0_H
#define MESSAGE2_0_H
#include <string>
#include "EngineTestSessionSuite.h"
using namespace std;
class Message2_0Tests : public EngineTestSessionSuite {
public:
Message2_0Tests(string test_suite, string test_home_dir);
private:
void check_message2_0();
};
#endif

+ 0
- 28
test/include/Message2_1Tests.h View File

@ -1,28 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef MESSAGE2_1_H
#define MESSAGE2_1_H
#include <string>
#include "EngineTestIndividualSuite.h"
using namespace std;
class Message2_1Tests : public EngineTestIndividualSuite {
public:
Message2_1Tests(string test_suite, string test_home_dir);
private:
bool verify_message_version_produced(message* enc_msg, unsigned int* maj_inout, unsigned int* min_inout);
void check_message2_1_recip_2_0();
void check_message2_1_recip_OpenPGP();
void check_message2_1_recip_2_1();
void check_message2_1_recip_1_0_from_msg_OpenPGP();
void check_message2_1_recip_2_0_from_msg();
void check_message2_1_recip_2_1_from_msg();
void check_message2_1_recip_mixed_2_0();
void check_message2_1_recip_mixed_1_0_OpenPGP();
};
#endif

+ 0
- 19
test/include/MessageApiTests.h View File

@ -1,19 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef MESSAGE_API_H
#define MESSAGE_API_H
#include <string>
#include "EngineTestSessionSuite.h"
using namespace std;
class MessageApiTests : public EngineTestSessionSuite {
public:
MessageApiTests(string test_suite, string test_home_dir);
private:
void check_message_api();
};
#endif

+ 0
- 26
test/include/MessageNullFromTests.h View File

@ -1,26 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef MESSAGE_NULL_FROM_H
#define MESSAGE_NULL_FROM_H
#include <string>
#include "EngineTestIndividualSuite.h"
using namespace std;
class MessageNullFromTests : public EngineTestIndividualSuite {
public:
MessageNullFromTests(string test_suite, string test_home_dir);
protected:
void setup();
private:
void check_message_null_from_no_header_key_unencrypted();
void check_message_null_from_header_key_unencrypted();
void check_message_null_from_encrypted_not_signed();
void check_message_null_from_encrypted_and_signed();
void import_bob_pair_and_set_own();
void import_alice_pub();
};
#endif

+ 0
- 19
test/include/MessageTwoPointOhTests.h View File

@ -1,19 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef MESSAGE_TWO_POINT_OH_H
#define MESSAGE_TWO_POINT_OH_H
#include <string>
#include "EngineTestSessionSuite.h"
using namespace std;
class MessageTwoPointOhTests : public EngineTestSessionSuite {
public:
MessageTwoPointOhTests(string test_suite, string test_home_dir);
private:
void check_message_two_point_oh();
};
#endif

+ 0
- 19
test/include/MimeTests.h View File

@ -1,19 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef MIME_H
#define MIME_H
#include <string>
#include "EngineTestSessionSuite.h"
using namespace std;
class MimeTests : public EngineTestSessionSuite {
public:
MimeTests(string test_suite, string test_home_dir);
private:
void check_mime();
};
#endif

+ 0
- 51
test/include/NewUpdateIdAndMyselfTests.h View File

@ -1,51 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef NEW_UPDATE_ID_AND_MYSELF_H
#define NEW_UPDATE_ID_AND_MYSELF_H
#include <string>
#include "EngineTestSessionSuite.h"
using namespace std;
class NewUpdateIdAndMyselfTests : public EngineTestSessionSuite {
public:
NewUpdateIdAndMyselfTests(string test_suite, string test_home_dir);
protected:
char* uniqname;
char* own_user_id;
char* start_username;
char* generated_fpr;
char* default_own_id;
char* alias_id;
char* new_fpr;
const char* alex_address;
const char* alex_fpr;
const char* alex_userid;
const char* alex_username;
const char* new_username;
void setup();
void tear_down();
private:
void myself_no_record_no_input_fpr();
void myself_no_input_fpr_w_record();
void myself_no_input_fpr_diff_user_id_w_record();
void myself_replace_fpr();
void myself_replace_fpr_revoke_key();
void update_identity_w_matching_address_user_id_username();
void update_identity_w_matching_address_user_id_new_username();
void update_identity_w_matching_address_user_id_only();
void update_identity_use_address_username_only();
void update_identity_use_address_only();
void update_identity_use_address_only_on_own_ident();
void update_identity_non_existent_user_id_address();
void update_identity_address_username_userid_no_record();
void update_identity_address_username_no_record();
void update_identity_address_only_multiple_records();
void key_elect_expired_key();
void key_elect_only_revoked_mistrusted();
};
#endif

+ 0
- 25
test/include/NoOwnIdentWritesOnDecryptTests.h View File

@ -1,25 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef NO_OWN_IDENT_WRITES_ON_DECRYPT_H
#define NO_OWN_IDENT_WRITES_ON_DECRYPT_H
#include <string>
#include "EngineTestIndividualSuite.h"
#include "pEpEngine.h"
#include "message.h"
using namespace std;
class NoOwnIdentWritesOnDecryptTests : public EngineTestIndividualSuite {
public:
NoOwnIdentWritesOnDecryptTests(string test_suite, string test_home_dir);
~NoOwnIdentWritesOnDecryptTests();
message* _to_decrypt;
private:
void check_no_own_ident_writes_on_decrypt();
void check_address_only_no_overwrite();
void check_full_info_no_overwrite();
};
#endif

+ 0
- 19
test/include/OwnIdentitiesRetrieveTests.h View File

@ -1,19 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef OWN_IDENTITIES_RETRIEVE_H
#define OWN_IDENTITIES_RETRIEVE_H
#include <string>
#include "EngineTestIndividualSuite.h"
using namespace std;
class OwnIdentitiesRetrieveTests : public EngineTestIndividualSuite {
public:
OwnIdentitiesRetrieveTests(string test_suite, string test_home_dir);
private:
void check_own_identities_retrieve();
};
#endif

+ 0
- 25
test/include/OwnKeysRetrieveTests.h View File

@ -1,25 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef OWN_KEYS_RETRIEVE_H
#define OWN_KEYS_RETRIEVE_H
#include <string>
#include "EngineTestIndividualSuite.h"
using namespace std;
class OwnKeysRetrieveTests : public EngineTestIndividualSuite {
public:
OwnKeysRetrieveTests(string test_suite, string test_home_dir);
private:
void check_own_keys_retrieve_single_private();
void check_own_keys_retrieve_single_private_single_pub();
void check_own_keys_retrieve_multiple_private();
void check_own_keys_retrieve_multiple_private_and_pub();
void check_own_keys_retrieve_multi_pub_only();
void check_own_keys_retrieve_no_own();
void check_own_keys_retrieve_multi_idents_one_key();
void check_own_keys_retrieve_multi_idents_one_priv_key_multi_pub();
};
#endif

+ 0
- 19
test/include/PepSubjectReceivedTests.h View File

@ -1,19 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef PEP_SUBJECT_RECEIVED_H
#define PEP_SUBJECT_RECEIVED_H
#include <string>
#include "EngineTestSessionSuite.h"
using namespace std;
class PepSubjectReceivedTests : public EngineTestSessionSuite {
public:
PepSubjectReceivedTests(string test_suite, string test_home_dir);
private:
void check_pep_subject_received();
};
#endif

+ 0
- 19
test/include/PgpBinaryTests.h View File

@ -1,19 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef PGP_BINARY_H
#define PGP_BINARY_H
#include <string>
#include "EngineTestSessionSuite.h"
using namespace std;
class PgpBinaryTests : public EngineTestSessionSuite {
public:
PgpBinaryTests(string test_suite, string test_home_dir);
private:
void check_pgp_binary();
};
#endif

+ 0
- 19
test/include/PgpListKeysTests.h View File

@ -1,19 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef PGP_LIST_KEYS_H
#define PGP_LIST_KEYS_H
#include <string>
#include "EngineTestSessionSuite.h"
using namespace std;
class PgpListKeysTests : public EngineTestSessionSuite {
public:
PgpListKeysTests(string test_suite, string test_home_dir);
private:
void check_pgp_list_keys();
};
#endif

+ 0
- 20
test/include/ReencryptPlusExtraKeysTests.h View File

@ -1,20 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef REENCRYPT_PLUS_EXTRA_KEYS_H
#define REENCRYPT_PLUS_EXTRA_KEYS_H
#include <string>
#include "EngineTestSessionSuite.h"
using namespace std;
class ReencryptPlusExtraKeysTests : public EngineTestSessionSuite {
public:
ReencryptPlusExtraKeysTests(string test_suite, string test_home_dir);
private:
void check_reencrypt_plus_extra_keys();
void check_efficient_reencrypt();
};
#endif

+ 0
- 22
test/include/RevocationTests.h View File

@ -1,22 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef REVOCATION_H
#define REVOCATION_H
#include <string>
#include "EngineTestSessionSuite.h"
using namespace std;
class RevocationTests : public EngineTestSessionSuite {
public:
RevocationTests(string test_suite, string test_home_dir);
protected:
void setup();
void tear_down();
private:
void revocation();
};
#endif

+ 0
- 21
test/include/RevokeRegenAttachTests.h View File

@ -1,21 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef REVOKE_REGEN_ATTACH_H
#define REVOKE_REGEN_ATTACH_H
#include <string>
#include "EngineTestSessionSuite.h"
using namespace std;
class RevokeRegenAttachTests : public EngineTestSessionSuite {
public:
RevokeRegenAttachTests(string test_suite, string test_home_dir);
protected:
void setup();
private:
void check_revoke_regen_attach();
};
#endif

+ 0
- 19
test/include/SenderFPRTests.h View File

@ -1,19 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef SENDER_F_P_R_H
#define SENDER_F_P_R_H
#include <string>
#include "EngineTestIndividualSuite.h"
using namespace std;
class SenderFPRTests : public EngineTestIndividualSuite {
public:
SenderFPRTests(string test_suite, string test_home_dir);
private:
void check_sender_f_p_r();
};
#endif

+ 0
- 19
test/include/SequenceTests.h View File

@ -1,19 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef SEQUENCE_TESTS_H
#define SEQUENCE_TESTS_H
#include <string>
#include "EngineTestSessionSuite.h"
using namespace std;
class SequenceTests : public EngineTestSessionSuite {
public:
SequenceTests(string suitename, string test_home_dir);
private:
void check_sequences();
};
#endif

+ 0
- 19
test/include/SignOnlyTests.h View File

@ -1,19 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef SIGN_ONLY_H
#define SIGN_ONLY_H
#include <string>
#include "EngineTestIndividualSuite.h"
using namespace std;
class SignOnlyTests : public EngineTestIndividualSuite {
public:
SignOnlyTests(string test_suite, string test_home_dir);
private:
void check_sign_only();
};
#endif

+ 0
- 20
test/include/SimpleBodyNotAltTests.h View File

@ -1,20 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef SIMPLE_BODY_NOT_ALT_H
#define SIMPLE_BODY_NOT_ALT_H
#include <string>
#include "EngineTestIndividualSuite.h"
using namespace std;
class SimpleBodyNotAltTests : public EngineTestIndividualSuite {
public:
SimpleBodyNotAltTests(string test_suite, string test_home_dir);
private:
void check_text_w_html_attach();
void check_html_w_text_attach();
};
#endif

+ 0
- 20
test/include/StringlistTests.h View File

@ -1,20 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef STRINGLIST_TESTS_H
#define STRINGLIST_TESTS_H
#include <string>
#include "EngineTestSuite.h"
using namespace std;
class StringlistTests : public EngineTestSuite {
public:
StringlistTests(string suitename, string test_home_dir);
private:
void check_stringlists();
void check_dedup_stringlist();
};
#endif

+ 0
- 20
test/include/StringpairListTests.h View File

@ -1,20 +0,0 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef STRINGPAIR_LIST_TESTS_H