IOSAD-181 Rename test util

IOSAD-181
Dirk Zimmermann 2 years ago
parent dbdfbb2c75
commit ea927d43fe

@ -76,8 +76,8 @@
436E917724B71E12000296FF /* PEPPassphraseProviderMock.m in Sources */ = {isa = PBXBuildFile; fileRef = 436E917624B71E12000296FF /* PEPPassphraseProviderMock.m */; };
43753CFB222D4911002EE98B /* PEPLanguage.h in Headers */ = {isa = PBXBuildFile; fileRef = 43209B2A1ECC2ACD007E7E2E /* PEPLanguage.h */; settings = {ATTRIBUTES = (Public, ); }; };
437BEA9122328E570051E3A1 /* pEpTrustWords.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 64AE6B211BE15E3A000867E4 /* pEpTrustWords.bundle */; };
4396CEB82187196600FDD398 /* PEPSessionTestNotifyHandshakeDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 4396CEB62187190F00FDD398 /* PEPSessionTestNotifyHandshakeDelegate.m */; };
4396CECB2187220200FDD398 /* PEPSessionTestSendMessageDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 4396CEC8218721F900FDD398 /* PEPSessionTestSendMessageDelegate.m */; };
4396CEB82187196600FDD398 /* PEPInternalSessionTestNotifyHandshakeDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 4396CEB62187190F00FDD398 /* PEPInternalSessionTestNotifyHandshakeDelegate.m */; };
4396CECB2187220200FDD398 /* PEPInternalSessionTestSendMessageDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 4396CEC8218721F900FDD398 /* PEPInternalSessionTestSendMessageDelegate.m */; };
43AD0E3022E99ECE00D46F56 /* PEPInternalConstants.h in Headers */ = {isa = PBXBuildFile; fileRef = 43AD0E2E22E99ECE00D46F56 /* PEPInternalConstants.h */; };
43AD0E3122E99ECE00D46F56 /* PEPInternalConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 43AD0E2F22E99ECE00D46F56 /* PEPInternalConstants.m */; };
43BCEFF7222FBA2400148303 /* NSDictionary+CommType.h in Headers */ = {isa = PBXBuildFile; fileRef = 43D27DE41F5DA78700795687 /* NSDictionary+CommType.h */; settings = {ATTRIBUTES = (Public, ); }; };
@ -228,10 +228,10 @@
439393F7208F5B5E00EB1DBD /* NSMutableDictionary+PEP.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "NSMutableDictionary+PEP.m"; sourceTree = "<group>"; };
43953B3320C91E2B001C7DDB /* NSDictionary+Debug.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NSDictionary+Debug.h"; sourceTree = "<group>"; };
43953B3420C91E2B001C7DDB /* NSDictionary+Debug.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "NSDictionary+Debug.m"; sourceTree = "<group>"; };
4396CEB52187190F00FDD398 /* PEPSessionTestNotifyHandshakeDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PEPSessionTestNotifyHandshakeDelegate.h; sourceTree = "<group>"; };
4396CEB62187190F00FDD398 /* PEPSessionTestNotifyHandshakeDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PEPSessionTestNotifyHandshakeDelegate.m; sourceTree = "<group>"; };
4396CEC8218721F900FDD398 /* PEPSessionTestSendMessageDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PEPSessionTestSendMessageDelegate.m; sourceTree = "<group>"; };
4396CEC9218721F900FDD398 /* PEPSessionTestSendMessageDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PEPSessionTestSendMessageDelegate.h; sourceTree = "<group>"; };
4396CEB52187190F00FDD398 /* PEPInternalSessionTestNotifyHandshakeDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PEPInternalSessionTestNotifyHandshakeDelegate.h; sourceTree = "<group>"; };
4396CEB62187190F00FDD398 /* PEPInternalSessionTestNotifyHandshakeDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PEPInternalSessionTestNotifyHandshakeDelegate.m; sourceTree = "<group>"; };
4396CEC8218721F900FDD398 /* PEPInternalSessionTestSendMessageDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PEPInternalSessionTestSendMessageDelegate.m; sourceTree = "<group>"; };
4396CEC9218721F900FDD398 /* PEPInternalSessionTestSendMessageDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PEPInternalSessionTestSendMessageDelegate.h; sourceTree = "<group>"; };
439D91A3208479EE003F6AC2 /* PEPAttachment.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PEPAttachment.h; sourceTree = "<group>"; };
439D91A4208479EE003F6AC2 /* PEPAttachment.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PEPAttachment.m; sourceTree = "<group>"; };
43AD0E2E22E99ECE00D46F56 /* PEPInternalConstants.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PEPInternalConstants.h; sourceTree = "<group>"; };
@ -291,10 +291,10 @@
children = (
15D3D77B2010DDC500A0DA20 /* PEPTestUtils.h */,
15D3D77C2010DDC500A0DA20 /* PEPTestUtils.m */,
4396CEB52187190F00FDD398 /* PEPSessionTestNotifyHandshakeDelegate.h */,
4396CEB62187190F00FDD398 /* PEPSessionTestNotifyHandshakeDelegate.m */,
4396CEC9218721F900FDD398 /* PEPSessionTestSendMessageDelegate.h */,
4396CEC8218721F900FDD398 /* PEPSessionTestSendMessageDelegate.m */,
4396CEB52187190F00FDD398 /* PEPInternalSessionTestNotifyHandshakeDelegate.h */,
4396CEB62187190F00FDD398 /* PEPInternalSessionTestNotifyHandshakeDelegate.m */,
4396CEC9218721F900FDD398 /* PEPInternalSessionTestSendMessageDelegate.h */,
4396CEC8218721F900FDD398 /* PEPInternalSessionTestSendMessageDelegate.m */,
4349CD7724ADDB8800A22A13 /* PEPPassphraseCache+Reset.h */,
4349CD7824ADDB8800A22A13 /* PEPPassphraseCache+Reset.m */,
436E917524B71E12000296FF /* PEPPassphraseProviderMock.h */,
@ -719,14 +719,14 @@
buildActionMask = 2147483647;
files = (
4331CE94229C2AAF00DDDC65 /* PEPSizeTest.m in Sources */,
4396CECB2187220200FDD398 /* PEPSessionTestSendMessageDelegate.m in Sources */,
4396CECB2187220200FDD398 /* PEPInternalSessionTestSendMessageDelegate.m in Sources */,
152D58EF201B6DB200036219 /* PEPMessageUtilTest.m in Sources */,
434707F924C30E9700E05485 /* PEPAsyncSessionTest.m in Sources */,
152A9C472010F50400F962ED /* PEPInternalSessionTest.m in Sources */,
434226811D4F60000083ED79 /* PepTests.m in Sources */,
4336853F203D5CE60069A451 /* PEPTestUtils.m in Sources */,
4349CD7924ADDB8800A22A13 /* PEPPassphraseCache+Reset.m in Sources */,
4396CEB82187196600FDD398 /* PEPSessionTestNotifyHandshakeDelegate.m in Sources */,
4396CEB82187196600FDD398 /* PEPInternalSessionTestNotifyHandshakeDelegate.m in Sources */,
15D3D761200F61BB00A0DA20 /* PEPSessionProviderTest.m in Sources */,
43589EFB24A4ACFC0079BEA2 /* PEPPassphraseCacheTest.m in Sources */,
436E917724B71E12000296FF /* PEPPassphraseProviderMock.m in Sources */,

@ -17,16 +17,16 @@
#import "PEPSync.h"
#import "PEPSendMessageDelegate.h"
#import "PEPSessionTestNotifyHandshakeDelegate.h"
#import "PEPSessionTestSendMessageDelegate.h"
#import "PEPInternalSessionTestNotifyHandshakeDelegate.h"
#import "PEPInternalSessionTestSendMessageDelegate.h"
#import "PEPPassphraseCache+Reset.h"
#import "PEPPassphraseProviderMock.h"
@interface PEPInternalSessionTest : XCTestCase
@property (nonatomic) PEPSync *sync;
@property (nonatomic) PEPSessionTestSendMessageDelegate *sendMessageDelegate;
@property (nonatomic) PEPSessionTestNotifyHandshakeDelegate *notifyHandshakeDelegate;
@property (nonatomic) PEPInternalSessionTestSendMessageDelegate *sendMessageDelegate;
@property (nonatomic) PEPInternalSessionTestNotifyHandshakeDelegate *notifyHandshakeDelegate;
@end
@ -1724,8 +1724,8 @@
- (void)startSync
{
self.sendMessageDelegate = [PEPSessionTestSendMessageDelegate new];
self.notifyHandshakeDelegate = [PEPSessionTestNotifyHandshakeDelegate new];
self.sendMessageDelegate = [PEPInternalSessionTestSendMessageDelegate new];
self.notifyHandshakeDelegate = [PEPInternalSessionTestNotifyHandshakeDelegate new];
self.sync = [[PEPSync alloc]
initWithSendMessageDelegate:self.sendMessageDelegate

@ -1,5 +1,5 @@
//
// PEPSessionTestNotifyHandshakeDelegate.h
// PEPInternalSessionTestNotifyHandshakeDelegate.h
// pEpObjCAdapter
//
// Created by Dirk Zimmermann on 29.10.18.
@ -10,7 +10,7 @@
#import "PEPNotifyHandshakeDelegate.h"
@interface PEPSessionTestNotifyHandshakeDelegate : NSObject<PEPNotifyHandshakeDelegate>
@interface PEPInternalSessionTestNotifyHandshakeDelegate : NSObject<PEPNotifyHandshakeDelegate>
/// This is set to YES if the _engine_ shut the sync loop down.
@property (nonatomic) BOOL engineDidShutdownKeySync;

@ -1,14 +1,14 @@
//
// PEPSessionTestNotifyHandshakeDelegate.m
// PEPInternalSessionTestNotifyHandshakeDelegate.m
// pEpObjCAdapter
//
// Created by Dirk Zimmermann on 29.10.18.
// Copyright © 2018 pp. All rights reserved.
//
#import "PEPSessionTestNotifyHandshakeDelegate.h"
#import "PEPInternalSessionTestNotifyHandshakeDelegate.h"
@implementation PEPSessionTestNotifyHandshakeDelegate
@implementation PEPInternalSessionTestNotifyHandshakeDelegate
- (PEPStatus)notifyHandshake:(void * _Nullable)object
me:(PEPIdentity * _Nonnull)me

@ -1,5 +1,5 @@
//
// PEPSessionTestSendMessageDelegate.h
// PEPInternalSessionTestSendMessageDelegate.h
// pEpObjCAdapter
//
// Created by Dirk Zimmermann on 29.10.18.
@ -12,7 +12,7 @@
@class PEPMessage;
@interface PEPSessionTestSendMessageDelegate : NSObject<PEPSendMessageDelegate>
@interface PEPInternalSessionTestSendMessageDelegate : NSObject<PEPSendMessageDelegate>
/**
Meant for waiting for changes in `messages`, since `NSMutableArray`

@ -1,16 +1,16 @@
//
// PEPSessionTestSendMessageDelegate.m
// PEPInternalSessionTestSendMessageDelegate.m
// pEpObjCAdapter
//
// Created by Dirk Zimmermann on 29.10.18.
// Copyright © 2018 pp. All rights reserved.
//
#import "PEPSessionTestSendMessageDelegate.h"
#import "PEPInternalSessionTestSendMessageDelegate.h"
#import "PEPMessage.h"
@implementation PEPSessionTestSendMessageDelegate
@implementation PEPInternalSessionTestSendMessageDelegate
- (instancetype)init
{
Loading…
Cancel
Save