pEpObjCTests/PEPSessionTest.m
changeset 524 60dbfc88af73
parent 523 3d167bef8afa
child 525 4ac6cca59c29
     1.1 --- a/pEpObjCTests/PEPSessionTest.m	Mon Mar 12 12:08:39 2018 +0100
     1.2 +++ b/pEpObjCTests/PEPSessionTest.m	Tue Mar 13 09:49:50 2018 +0100
     1.3 @@ -465,7 +465,7 @@
     1.4      XCTAssertEqual(clr, PEP_rating_reliable);
     1.5  
     1.6      NSError *error = nil;
     1.7 -    PEPMessage *encMsg = [session encryptMessage:msg extraKeys:nil error:&error];
     1.8 +    PEPMessage *encMsg = [session encryptMessage:msg extraKeys:nil status:nil error:&error];
     1.9      XCTAssertNotNil(encMsg);
    1.10      XCTAssertNil(error);
    1.11  
    1.12 @@ -610,7 +610,7 @@
    1.13      XCTAssertEqual(clr, PEP_rating_unencrypted);
    1.14  
    1.15      NSError *error = nil;
    1.16 -    PEPMessage *encMsg = [session encryptMessage:msg extraKeys:nil error:&error];
    1.17 +    PEPMessage *encMsg = [session encryptMessage:msg extraKeys:nil status:nil error:&error];
    1.18      XCTAssertNotNil(encMsg);
    1.19      XCTAssertNil(error);
    1.20  
    1.21 @@ -678,7 +678,7 @@
    1.22      XCTAssertEqual(clr, PEP_rating_trusted_and_anonymized);
    1.23  
    1.24      NSError *error = nil;
    1.25 -    PEPMessage *encMsg = [session encryptMessage:msg extraKeys:nil error:&error];
    1.26 +    PEPMessage *encMsg = [session encryptMessage:msg extraKeys:nil status:nil error:&error];
    1.27      XCTAssertNotNil(encMsg);
    1.28      XCTAssertNil(error);
    1.29  
    1.30 @@ -689,6 +689,7 @@
    1.31                            decryptMessage:encMsg
    1.32                            rating:&clr
    1.33                            extraKeys:&keys
    1.34 +                          status:nil
    1.35                            error:&error];
    1.36      XCTAssertNotNil(decmsg);
    1.37      XCTAssertNil(error);
    1.38 @@ -733,6 +734,7 @@
    1.39                                      decryptMessage:msg
    1.40                                      rating:nil
    1.41                                      extraKeys:&keys
    1.42 +                                    status:nil
    1.43                                      error:&error];
    1.44      XCTAssertNotNil(pepDecryptedMail);
    1.45      XCTAssertNil(error);
    1.46 @@ -888,7 +890,7 @@
    1.47      XCTAssertEqual(clr, PEP_rating_unencrypted);
    1.48  
    1.49      NSError *error = nil;
    1.50 -    PEPMessage *encMsg = [session encryptMessage:msg extraKeys:nil error:&error];
    1.51 +    PEPMessage *encMsg = [session encryptMessage:msg extraKeys:nil status:nil error:&error];
    1.52      XCTAssertNotNil(encMsg);
    1.53      XCTAssertNil(error);
    1.54  
    1.55 @@ -901,6 +903,7 @@
    1.56                            decryptMessage:encMsg
    1.57                            rating:&pEpRating
    1.58                            extraKeys:&keys
    1.59 +                          status:nil
    1.60                            error:&error];
    1.61      XCTAssertNotNil(decMsg);
    1.62      XCTAssertNil(error);
    1.63 @@ -1125,6 +1128,7 @@
    1.64                               decryptMessage:encMessage
    1.65                               rating:&rating
    1.66                               extraKeys:keys
    1.67 +                             status:nil
    1.68                               error:&error];
    1.69      XCTAssertNotNil(unencDict);
    1.70      XCTAssertNil(error);
    1.71 @@ -1186,7 +1190,7 @@
    1.72          XCTAssertEqual(statusEnc, PEP_STATUS_OK);
    1.73      } else {
    1.74          NSError *error = nil;
    1.75 -        encMsg = [session encryptMessage:msg extraKeys:nil error:&error];
    1.76 +        encMsg = [session encryptMessage:msg extraKeys:nil status:nil error:&error];
    1.77          XCTAssertNotNil(encMsg);
    1.78          XCTAssertNil(error);
    1.79      }
    1.80 @@ -1199,6 +1203,7 @@
    1.81                            decryptMessage:encMsg
    1.82                            rating:&pEpRating
    1.83                            extraKeys:&keys
    1.84 +                          status:nil
    1.85                            error:&error];
    1.86      XCTAssertNil(error);
    1.87      XCTAssertNotNil(decMsg);