Signal-iOS/SignalServiceKit/tests/Storage
Evan Hahn 4da042c1d5
Clean up database corruption storage code
_This change should have no user impact._

The database corruption flag lives on `UserDefaults`. Currently, this
flag is controlled through `SSKPreferences`, but I kinda think that's
the wrong place—database corruption isn't really a user preference.

This moves it into its own file, tests it, and [drops booleans in favor
of an enum][0]. I think this is useful on its own, but also prepares us
for an upcoming change.

[0]: https://www.luu.io/posts/dont-use-booleans
2022-09-23 18:19:02 +00:00
..
Database Clean up database corruption storage code 2022-09-23 18:19:02 +00:00
InteractionFinderTest.swift Make "Keep Muted Chats Archived" option available publicly 2022-05-26 10:44:43 -04:00
ModelReadCacheTest.swift Fetch phone numbers in a batch. 2022-03-17 12:46:33 -07:00
OWSIdentityManagerTests.swift Add OWSIdentityManager.shouldSharePhoneNumber(with:transaction:) 2022-05-19 14:20:53 -07:00
SDSDatabaseStorageObservationTest.swift Remove databaseChangesWillUpdate. 2021-09-08 21:41:13 -03:00
SDSDatabaseStorageTest.swift Persist quoted replies 2022-08-11 13:44:50 -07:00
SDSKeyValueStoreTest.swift YDB-to-GRDB migration stress testing. 2019-09-16 13:34:55 -03:00
SSKPreKeyStoreTests.m -[SSKPreKeyStore storePreKeyRecords:] should take a transaction 2022-04-04 15:19:10 -07:00
SSKSignedPreKeyStoreTest.swift Parameterize the 1:1 stores by identity (ACI or PNI) 2022-03-16 14:31:06 -07:00
TestModelTests.swift Remove YapDatabase. 2021-03-25 11:41:16 -03:00