IOSAD-172 Change wording IOSAD-172
authorDirk Zimmermann <dz@pep.security>
Thu, 25 Jun 2020 17:08:21 +0200
branchIOSAD-172
changeset 1448827adca1512d
parent 1447 65dc021aa105
child 1449 bf378dcc639a
IOSAD-172 Change wording
pEpObjCAdapter/PEPPasswordCache.h
pEpObjCAdapter/PEPPasswordCache.m
pEpObjCTests/PEPPasswordCacheTest.m
     1.1 --- a/pEpObjCAdapter/PEPPasswordCache.h	Thu Jun 25 17:08:21 2020 +0200
     1.2 +++ b/pEpObjCAdapter/PEPPasswordCache.h	Thu Jun 25 17:08:21 2020 +0200
     1.3 @@ -16,10 +16,10 @@
     1.4  @property (nonatomic) NSUInteger timeout;
     1.5  
     1.6  /// Add a new password.
     1.7 -- (void)addPassword:(NSString *)password;
     1.8 +- (void)addPassphrase:(NSString *)passphrase;
     1.9  
    1.10  /// Retrieve the current list of cached passwords, including the empty one.
    1.11 -- (NSArray *)passwords;
    1.12 +- (NSArray *)passphrases;
    1.13  
    1.14  @end
    1.15  
     2.1 --- a/pEpObjCAdapter/PEPPasswordCache.m	Thu Jun 25 17:08:21 2020 +0200
     2.2 +++ b/pEpObjCAdapter/PEPPasswordCache.m	Thu Jun 25 17:08:21 2020 +0200
     2.3 @@ -26,11 +26,11 @@
     2.4      return [self initTimeout:10 * 60];
     2.5  }
     2.6  
     2.7 -- (void)addPassword:(NSString *)password
     2.8 +- (void)addPassphrase:(NSString *)passphrase
     2.9  {
    2.10  }
    2.11  
    2.12 -- (NSArray *)passwords
    2.13 +- (NSArray *)passphrases
    2.14  {
    2.15      return @[];
    2.16  }
     3.1 --- a/pEpObjCTests/PEPPasswordCacheTest.m	Thu Jun 25 17:08:21 2020 +0200
     3.2 +++ b/pEpObjCTests/PEPPasswordCacheTest.m	Thu Jun 25 17:08:21 2020 +0200
     3.3 @@ -25,16 +25,16 @@
     3.4  
     3.5  - (void)testContainsEmptyPassphrase
     3.6  {
     3.7 -    XCTAssertEqual(self.cache.passwords.count, 1);
     3.8 -    XCTAssertEqualObjects(self.cache.passwords, @[@""]);
     3.9 +    XCTAssertEqual(self.cache.passphrases.count, 1);
    3.10 +    XCTAssertEqualObjects(self.cache.passphrases, @[@""]);
    3.11  }
    3.12  
    3.13  - (void)testContainsSetPassphrase
    3.14  {
    3.15      NSString *passphrase = @"somepass";
    3.16 -    [self.cache addPassword:passphrase];
    3.17 -    XCTAssertEqual(self.cache.passwords.count, 2);
    3.18 -    XCTAssertEqualObjects(self.cache.passwords, @[@""]);
    3.19 +    [self.cache addPassphrase:passphrase];
    3.20 +    XCTAssertEqual(self.cache.passphrases.count, 2);
    3.21 +    XCTAssertEqualObjects(self.cache.passphrases, @[@""]);
    3.22  }
    3.23  
    3.24  @end