You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
3.2 KiB

  1. //
  2. // XCTestCase+PEPSession.h
  3. // pEpObjCAdapterTests
  4. //
  5. // Created by Dirk Zimmermann on 09.04.21.
  6. // Copyright © 2021 p≡p. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <XCTest/XCTest.h>
  10. #import "PEPObjCAdapterTypes_iOS.h"
  11. NS_ASSUME_NONNULL_BEGIN
  12. @interface XCTestCase (PEPSession)
  13. #pragma mark - Normal session to async
  14. - (PEPRating)ratingForIdentity:(PEPIdentity *)identity;
  15. - (PEPIdentity * _Nullable)mySelf:(PEPIdentity *)identity
  16. error:(NSError * _Nullable * _Nullable)error;
  17. - (NSArray<NSString *> * _Nullable)trustwordsForFingerprint:(NSString *)fingerprint
  18. languageID:(NSString *)languageID
  19. shortened:(BOOL)shortened
  20. error:(NSError * _Nullable * _Nullable)error;
  21. - (PEPIdentity * _Nullable)updateIdentity:(PEPIdentity *)identity
  22. error:(NSError * _Nullable * _Nullable)error;
  23. - (NSNumber * _Nullable)outgoingRatingForMessage:(PEPMessage *)theMessage
  24. error:(NSError * _Nullable * _Nullable)error;
  25. - (PEPMessage * _Nullable)encryptMessage:(PEPMessage *)message
  26. extraKeys:(PEPStringList * _Nullable)extraKeys
  27. encFormat:(PEPEncFormat)encFormat
  28. status:(PEPStatus * _Nullable)status
  29. error:(NSError * _Nullable * _Nullable)error;
  30. - (PEPMessage * _Nullable)encryptMessage:(PEPMessage *)message
  31. extraKeys:(PEPStringList * _Nullable)extraKeys
  32. status:(PEPStatus * _Nullable)status
  33. error:(NSError * _Nullable * _Nullable)error;
  34. - (BOOL)trustPersonalKey:(PEPIdentity *)identity
  35. error:(NSError * _Nullable * _Nullable)error;
  36. - (BOOL)keyResetTrust:(PEPIdentity *)identity
  37. error:(NSError * _Nullable * _Nullable)error;
  38. - (BOOL)keyMistrusted:(PEPIdentity *)identity error:(NSError * _Nullable * _Nullable)error;
  39. - (BOOL)enableSyncForIdentity:(PEPIdentity *)identity
  40. error:(NSError * _Nullable * _Nullable)error;
  41. - (BOOL)disableSyncForIdentity:(PEPIdentity *)identity
  42. error:(NSError * _Nullable * _Nullable)error;
  43. - (NSString * _Nullable)getLogWithError:(NSError * _Nullable * _Nullable)error;
  44. - (NSString * _Nullable)getTrustwordsIdentity1:(PEPIdentity *)identity1
  45. identity2:(PEPIdentity *)identity2
  46. language:(NSString * _Nullable)language
  47. full:(BOOL)full
  48. error:(NSError * _Nullable * _Nullable)error;
  49. - (NSNumber * _Nullable)isPEPUser:(PEPIdentity *)identity
  50. error:(NSError * _Nullable * _Nullable)error;
  51. - (BOOL)trustOwnKeyIdentity:(PEPIdentity *)identity
  52. error:(NSError * _Nullable * _Nullable)error;
  53. - (BOOL)keyReset:(PEPIdentity *)identity
  54. fingerprint:(NSString * _Nullable)fingerprint
  55. error:(NSError * _Nullable * _Nullable)error;
  56. @end
  57. NS_ASSUME_NONNULL_END