sync tests with unsigned instead of time_t sync
authorVolker Birk <vb@pep-project.org>
Mon, 28 Jan 2019 11:53:20 +0100
branchsync
changeset 3242a878c9a02139
parent 3240 80ee08316899
child 3243 09257addf431
sync tests with unsigned instead of time_t
src/message_api.h
test/include/SyncTests.h
test/src/SuiteMaker.cc
     1.1 --- a/src/message_api.h	Thu Jan 24 17:02:17 2019 +0100
     1.2 +++ b/src/message_api.h	Mon Jan 28 11:53:20 2019 +0100
     1.3 @@ -78,6 +78,7 @@
     1.4  //  caveat:
     1.5  //      the ownership of src remains with the caller
     1.6  //      the ownership of dst goes to the caller
     1.7 +
     1.8  DYNAMIC_API PEP_STATUS encrypt_message(
     1.9          PEP_SESSION session,
    1.10          message *src,
     2.1 --- a/test/include/SyncTests.h	Thu Jan 24 17:02:17 2019 +0100
     2.2 +++ b/test/include/SyncTests.h	Mon Jan 28 11:53:20 2019 +0100
     2.3 @@ -25,7 +25,7 @@
     2.4              sync_handshake_signal signal
     2.5          );
     2.6      static int inject_sync_event(SYNC_EVENT ev, void *management);
     2.7 -    static Sync_event_t *retrieve_next_sync_event(void *management, time_t threshold);
     2.8 +    static Sync_event_t *retrieve_next_sync_event(void *management, unsigned threshold);
     2.9      static PEP_STATUS messageToSend(struct _message *msg);
    2.10  
    2.11      static void sync_thread(PEP_SESSION session, Sync_Adapter *adapter);
     3.1 --- a/test/src/SuiteMaker.cc	Thu Jan 24 17:02:17 2019 +0100
     3.2 +++ b/test/src/SuiteMaker.cc	Mon Jan 28 11:53:20 2019 +0100
     3.3 @@ -21,7 +21,6 @@
     3.4  #include "I18nTests.h"
     3.5  #include "IdentityListTests.h"
     3.6  #include "PgpBinaryTests.h"
     3.7 -#include "MistrustUndoTests.h"
     3.8  #include "SubkeyRatingEvalTests.h"
     3.9  #include "MessageNullFromTests.h"
    3.10  #include "LeastCommonDenomColorTests.h"
    3.11 @@ -31,11 +30,11 @@
    3.12  #include "EncryptMissingPrivateKeyTests.h"
    3.13  #include "CaseAndDotAddressTests.h"
    3.14  #include "UserIDAliasTests.h"
    3.15 +#include "SignOnlyTests.h"
    3.16  #include "BCCTests.h"
    3.17  #include "Engine358Tests.h"
    3.18  #include "BlacklistAcceptNewKeyTests.h"
    3.19  #include "DecryptAttachPrivateKeyUntrustedTests.h"
    3.20 -#include "ReturnMistrustFprTests.h"
    3.21  #include "BlacklistTests.h"
    3.22  #include "RevokeRegenAttachTests.h"
    3.23  #include "PepSubjectReceivedTests.h"
    3.24 @@ -55,7 +54,9 @@
    3.25  #include "CrashdumpTests.h"
    3.26  #include "StringpairListTests.h"
    3.27  #include "EncryptForIdentityTests.h"
    3.28 +#include "KeyResetMessageTests.h"
    3.29  #include "TrustManipulationTests.h"
    3.30 +#include "SyncTests.h"
    3.31  #include "AppleMailTests.h"
    3.32  
    3.33  
    3.34 @@ -69,7 +70,6 @@
    3.35      "I18nTests",
    3.36      "IdentityListTests",
    3.37      "PgpBinaryTests",
    3.38 -    "MistrustUndoTests",
    3.39      "SubkeyRatingEvalTests",
    3.40      "MessageNullFromTests",
    3.41      "LeastCommonDenomColorTests",
    3.42 @@ -79,11 +79,11 @@
    3.43      "EncryptMissingPrivateKeyTests",
    3.44      "CaseAndDotAddressTests",
    3.45      "UserIDAliasTests",
    3.46 +    "SignOnlyTests",
    3.47      "BCCTests",
    3.48      "Engine358Tests",
    3.49      "BlacklistAcceptNewKeyTests",
    3.50      "DecryptAttachPrivateKeyUntrustedTests",
    3.51 -    "ReturnMistrustFprTests",
    3.52      "BlacklistTests",
    3.53      "RevokeRegenAttachTests",
    3.54      "PepSubjectReceivedTests",
    3.55 @@ -103,12 +103,14 @@
    3.56      "CrashdumpTests",
    3.57      "StringpairListTests",
    3.58      "EncryptForIdentityTests",
    3.59 +    "KeyResetMessageTests",
    3.60      "TrustManipulationTests",
    3.61 +    "SyncTests",
    3.62      "AppleMailTests",
    3.63  };
    3.64  
    3.65  // This file is generated, so magic constants are ok.
    3.66 -int SuiteMaker::num_suites = 45;
    3.67 +int SuiteMaker::num_suites = 46;
    3.68  
    3.69  void SuiteMaker::suitemaker_build(const char* test_class_name, const char* test_home, Test::Suite** test_suite) {
    3.70      if (strcmp(test_class_name, "MimeTests") == 0)
    3.71 @@ -129,8 +131,6 @@
    3.72          *test_suite = new IdentityListTests(test_class_name, test_home);
    3.73      else if (strcmp(test_class_name, "PgpBinaryTests") == 0)
    3.74          *test_suite = new PgpBinaryTests(test_class_name, test_home);
    3.75 -    else if (strcmp(test_class_name, "MistrustUndoTests") == 0)
    3.76 -        *test_suite = new MistrustUndoTests(test_class_name, test_home);
    3.77      else if (strcmp(test_class_name, "SubkeyRatingEvalTests") == 0)
    3.78          *test_suite = new SubkeyRatingEvalTests(test_class_name, test_home);
    3.79      else if (strcmp(test_class_name, "MessageNullFromTests") == 0)
    3.80 @@ -149,6 +149,8 @@
    3.81          *test_suite = new CaseAndDotAddressTests(test_class_name, test_home);
    3.82      else if (strcmp(test_class_name, "UserIDAliasTests") == 0)
    3.83          *test_suite = new UserIDAliasTests(test_class_name, test_home);
    3.84 +    else if (strcmp(test_class_name, "SignOnlyTests") == 0)
    3.85 +        *test_suite = new SignOnlyTests(test_class_name, test_home);
    3.86      else if (strcmp(test_class_name, "BCCTests") == 0)
    3.87          *test_suite = new BCCTests(test_class_name, test_home);
    3.88      else if (strcmp(test_class_name, "Engine358Tests") == 0)
    3.89 @@ -157,8 +159,6 @@
    3.90          *test_suite = new BlacklistAcceptNewKeyTests(test_class_name, test_home);
    3.91      else if (strcmp(test_class_name, "DecryptAttachPrivateKeyUntrustedTests") == 0)
    3.92          *test_suite = new DecryptAttachPrivateKeyUntrustedTests(test_class_name, test_home);
    3.93 -    else if (strcmp(test_class_name, "ReturnMistrustFprTests") == 0)
    3.94 -        *test_suite = new ReturnMistrustFprTests(test_class_name, test_home);
    3.95      else if (strcmp(test_class_name, "BlacklistTests") == 0)
    3.96          *test_suite = new BlacklistTests(test_class_name, test_home);
    3.97      else if (strcmp(test_class_name, "RevokeRegenAttachTests") == 0)
    3.98 @@ -197,8 +197,12 @@
    3.99          *test_suite = new StringpairListTests(test_class_name, test_home);
   3.100      else if (strcmp(test_class_name, "EncryptForIdentityTests") == 0)
   3.101          *test_suite = new EncryptForIdentityTests(test_class_name, test_home);
   3.102 +    else if (strcmp(test_class_name, "KeyResetMessageTests") == 0)
   3.103 +        *test_suite = new KeyResetMessageTests(test_class_name, test_home);
   3.104      else if (strcmp(test_class_name, "TrustManipulationTests") == 0)
   3.105          *test_suite = new TrustManipulationTests(test_class_name, test_home);
   3.106 +    else if (strcmp(test_class_name, "SyncTests") == 0)
   3.107 +        *test_suite = new SyncTests(test_class_name, test_home);
   3.108      else if (strcmp(test_class_name, "AppleMailTests") == 0)
   3.109          *test_suite = new AppleMailTests(test_class_name, test_home);
   3.110  }