IOSAD-157 Implement PEPNotifyHandshakeDelegate IOSAD-157
authorDirk Zimmermann <dz@pep.security>
Wed, 20 Nov 2019 16:39:59 +0100
branchIOSAD-157
changeset 135626652ce6f2d8
parent 1355 4b9fe45edb44
child 1357 9295e6eceea7
IOSAD-157 Implement PEPNotifyHandshakeDelegate
pEpObjCTests/PEPSessionTest.m
pEpObjCTests/TestUtils/PEPSessionTestNotifyHandshakeDelegate.h
pEpObjCTests/TestUtils/PEPSessionTestNotifyHandshakeDelegate.m
     1.1 --- a/pEpObjCTests/PEPSessionTest.m	Wed Nov 20 16:39:59 2019 +0100
     1.2 +++ b/pEpObjCTests/PEPSessionTest.m	Wed Nov 20 16:39:59 2019 +0100
     1.3 @@ -1317,7 +1317,7 @@
     1.4      XCTAssertNil(error);
     1.5  
     1.6      // leaving a device group should disable sync
     1.7 -    XCTAssertTrue(self.notifyHandshakeDelegate.keySyncDisabled);
     1.8 +    XCTAssertTrue(self.notifyHandshakeDelegate.engineDisabledKeySync);
     1.9  
    1.10      [self shutdownSync];
    1.11  }
    1.12 @@ -1551,7 +1551,6 @@
    1.13  - (void)shutdownSync
    1.14  {
    1.15      [self.sync shutdown];
    1.16 -    XCTAssertTrue(self.notifyHandshakeDelegate.keySyncDisabled);
    1.17  }
    1.18  
    1.19  - (NSNumber * _Nullable)testOutgoingRatingForMessage:(PEPMessage * _Nonnull)theMessage
     2.1 --- a/pEpObjCTests/TestUtils/PEPSessionTestNotifyHandshakeDelegate.h	Wed Nov 20 16:39:59 2019 +0100
     2.2 +++ b/pEpObjCTests/TestUtils/PEPSessionTestNotifyHandshakeDelegate.h	Wed Nov 20 16:39:59 2019 +0100
     2.3 @@ -13,6 +13,6 @@
     2.4  @interface PEPSessionTestNotifyHandshakeDelegate : NSObject<PEPNotifyHandshakeDelegate>
     2.5  
     2.6  /// This is set to YES if the _engine_ shut the sync loop down.
     2.7 -@property (nonatomic) BOOL keySyncDisabled;
     2.8 +@property (nonatomic) BOOL engineDisabledKeySync;
     2.9  
    2.10  @end
     3.1 --- a/pEpObjCTests/TestUtils/PEPSessionTestNotifyHandshakeDelegate.m	Wed Nov 20 16:39:59 2019 +0100
     3.2 +++ b/pEpObjCTests/TestUtils/PEPSessionTestNotifyHandshakeDelegate.m	Wed Nov 20 16:39:59 2019 +0100
     3.3 @@ -18,4 +18,9 @@
     3.4      return PEPStatusOK;
     3.5  }
     3.6  
     3.7 +- (void)keySyncDisabled
     3.8 +{
     3.9 +    self.engineDisabledKeySync = YES;
    3.10 +}
    3.11 +
    3.12  @end