Commit graph

38 commits

Author SHA1 Message Date
Danny Moesch
73c2607f3c Add test for issue #303 2019-09-16 15:51:10 -07:00
Danny Moesch
730542d5bb Separate encryption/decryption logic for different frameworks used 2019-09-15 00:32:18 -07:00
Danny Moesch
e2201ffa52 Add general tests for basic encryption and decryption with Crypto framework 2019-09-15 00:32:18 -07:00
Danny Moesch
5c7d4e55a4 Introduce KeyStore protocol in order to provide specialized key store implementations for tests
With the DictBasedKeychain the main AppKeychain is not influenced by tests. The previous implementation led to an empty Keychain requiring a new setup of the simulator.
2019-07-20 23:42:32 +02:00
Danny Moesch
5527c98568 Group test support files 2019-07-20 23:42:32 +02:00
Danny Moesch
3eaf00f9fd Move 'keyHandler' in KeyFileManager from constructor to function 2019-07-20 23:42:32 +02:00
Yishi Lin
e967bb1f4c Add PGPAgent tests and minor updated 2019-07-20 00:41:45 +08:00
Yishi Lin
765b487ffa Add tests in PGPAgentTest 2019-07-19 00:14:51 +08:00
Yishi Lin
6ae4a02a01 Seperate PGPAgent from PasswordStore and add tests 2019-07-17 02:58:01 +08:00
Danny Moesch
6b95e60ea1 Introduce CryptographicKey protocol 2019-07-03 21:45:27 -07:00
Danny Moesch
7bee780b46 Extract key importing logic and put it into separate class 2019-07-02 13:50:16 -07:00
Meris Bahtijaragic
c59c72729b Get username from filepath. (#265) 2019-05-17 23:30:41 +08:00
Danny Moesch
e06413b348 Add default value to non-optional DefaultsKeys 2019-05-01 18:30:13 +02:00
Danny Moesch
d698f2e3c3 Use folder references for all groups and sort files/folders 2019-01-21 20:34:18 -08:00
Danny Moesch
1b4040135e Localize strings in code 2019-01-20 21:04:04 -08:00
Danny Moesch
2d5ca58bd9 Use PasswordGeneratorFlavor class to set user defaults and UI elements 2019-01-20 21:04:04 -08:00
Danny Moesch
c18b70e7d7 Use XCTAssert instead of XCTAssertTrue 2018-12-18 10:06:45 -08:00
Danny Moesch
ae57042f36 Make sure unknowns and OTP fields are not hidden in PasswordTest 2018-12-18 10:06:45 -08:00
Danny Moesch
9e027b878a Replace TableCell struct with AdditionField 2018-12-18 10:06:45 -08:00
Mingshen Sun
ed387069a4
lint: delete trailing whitespaces 2018-12-09 16:59:07 -08:00
Danny Moesch
2ba6917710 Test also counting of unknown and OTP related fields 2018-12-08 21:15:51 -08:00
Danny Moesch
e019f6ac9d Introduce some helper methods in TestBase to simplify PasswordTest 2018-12-08 21:15:51 -08:00
Danny Moesch
fa12a6f046 Move constants from ParserTest to TestBase 2018-12-08 21:15:51 -08:00
Danny Moesch
57acc6ecb5 Move helper methods from PasswordTest to common TestBase 2018-12-08 21:15:51 -08:00
Danny Moesch
68dd60fb8e Introduce utility methods to test for unknowns and OTP keywords 2018-12-08 21:15:51 -08:00
Danny Moesch
cfb50276bc Add description field to OtpType 2018-12-05 12:59:04 -08:00
Danny Moesch
2e744a760f Introduce TokenBuilder to build up OTP tokens conveniently 2018-12-05 12:59:04 -08:00
Danny Moesch
6817f61e3b Split PasswordHelpers and move components into Parser 2018-12-05 12:59:04 -08:00
Danny Moesch
d4d8d7267a Tweak Password class 2018-12-05 12:59:04 -08:00
Danny Moesch
3cd8df310c Introduce enum for password generator flavour 2018-12-05 12:59:04 -08:00
Danny Moesch
b6f94f8814 Introduce string extension property 'trimmed' 2018-11-13 15:38:18 -08:00
Danny Moesch
7c12263458 Separate parser and helpers from Password class for better testability 2018-11-11 11:30:39 -08:00
Bob Sun
2abbceb2e9
Set name and url in Password non-optional
Name and url in Password class shouldn't be optional because we store
them in core data as non-optional. This change also help us to avoid
man unneccessary unwrap.
2018-11-10 22:38:12 -08:00
Danny Moesch
ddddfda931 Use own parser for multiline values giving up Yams 2018-08-13 23:12:30 -07:00
Danny Moesch
904d04d71c Use computed properties instead of separate getter methods 2018-08-13 23:12:30 -07:00
Danny Moesch
f76721d7fe Simplify/Tweak Password.swift 2018-08-13 23:12:30 -07:00
Danny Moesch
213234f57e Add unit tests for "key: value" syntax in Password class 2018-08-13 23:12:30 -07:00
Yishi Lin
9bb51d209c Change extension name and folder names 2017-06-15 17:27:02 +08:00