pEpObjCTests/TestUtils/PEPTestUtils.h
author Dirk Zimmermann <dirk@pep-project.org>
Tue, 24 Apr 2018 13:29:19 +0200
branchIOSAD-92
changeset 594 a9cae3a6f78d
parent 579 1ddf35bfa4f3
child 754 78dbef38ae98
permissions -rw-r--r--
IOSAD-92 PEPIdentity using hashBasedOnKeys etc.
     1 //
     2 //  PEPTestUtils.h
     3 //  pEpObjCAdapter
     4 //
     5 //  Created by Andreas Buff on 17.01.18.
     6 //  Copyright © 2018 p≡p. All rights reserved.
     7 //
     8 
     9 #import <Foundation/Foundation.h>
    10 
    11 @class PEPIdentity;
    12 @class PEPInternalSession;
    13 @class PEPMessage;
    14 @class PEPSession;
    15 
    16 NS_ASSUME_NONNULL_BEGIN
    17 
    18 extern NSString * const ownUserId;
    19 
    20 @interface PEPTestUtils : NSObject
    21 
    22 + (PEPIdentity *)foreignPepIdentityWithAddress:(NSString *)address userName:(NSString *)username;
    23 
    24 + (PEPIdentity *)ownPepIdentityWithAddress:(NSString *)address userName:(NSString *)username;
    25 
    26 + (BOOL)importBundledKey:(NSString *)item session:(PEPSession *)session;
    27 
    28 + (NSString *)loadResourceByName:(NSString *)name;
    29 
    30 + (NSString *)loadStringFromFileName:(NSString *)fileName;
    31 
    32 + (NSDictionary *)unarchiveDictionary:(NSString *)fileName;
    33 
    34 + (void)migrateUnarchivedMessageDictionary:(NSMutableDictionary *)message;
    35 
    36 + (PEPMessage * _Nonnull) mailFrom:(PEPIdentity * _Nullable) fromIdent
    37                            toIdent: (PEPIdentity * _Nullable) toIdent
    38                       shortMessage:(NSString *)shortMessage
    39                        longMessage: (NSString *)longMessage
    40                           outgoing:(BOOL) outgoing;
    41 
    42 + (void)cleanUp;
    43 
    44 + (NSArray *)pEpWorkFiles;
    45 
    46 @end
    47 
    48 NS_ASSUME_NONNULL_END