| /expo/packages/expo-updates/android/src/androidTest/java/expo/modules/updates/selectionpolicy/ |
| H A D | ReaperSelectionPolicyDevelopmentClientTest.kt | 28 update1.lastAccessed = Date(1619569813251L) in testSelectUpdatesToDelete_BasicCase() 40 Assert.assertTrue(updatesToDelete.contains(update1)) in testSelectUpdatesToDelete_BasicCase() 48 update1.lastAccessed = Date(1619569813250L) in testSelectUpdatesToDelete_SameLastAccessedDate() 53 listOf(update3, update4, update1, update2), in testSelectUpdatesToDelete_SameLastAccessedDate() 58 Assert.assertTrue(updatesToDelete.contains(update1)) in testSelectUpdatesToDelete_SameLastAccessedDate() 65 update1.lastAccessed = Date(1619569813251L) in testSelectUpdatesToDelete_LaunchedUpdateIsOldest() 70 listOf(update1, update2, update3, update4), in testSelectUpdatesToDelete_LaunchedUpdateIsOldest() 71 update1, in testSelectUpdatesToDelete_LaunchedUpdateIsOldest() 82 listOf(update1, update2, update3, update4), in testSelectUpdatesToDelete_NoLaunchedUpdate() 95 listOf(update1, update2), in testSelectUpdatesToDelete_BelowMaxNumber() [all …]
|
| H A D | ReaperSelectionPolicyFilterAwareTest.kt | 15 …private val update1 = UpdateEntity(UUID.randomUUID(), Date(1608667857774L), runtimeVersion, scopeK… constant 24 val updatesToDelete = selectionPolicy.selectUpdatesToDelete(listOf(update1), update1, null) in testSelectUpdatesToDelete_onlyOneUpdate() 31 listOf(update1, update2, update3), in testSelectUpdatesToDelete_olderUpdates() 36 Assert.assertTrue(updatesToDelete.contains(update1)) in testSelectUpdatesToDelete_olderUpdates() 44 listOf(update1, update2), in testSelectUpdatesToDelete_newerUpdates() 45 update1, in testSelectUpdatesToDelete_newerUpdates() 54 listOf(update1, update2, update3, update4, update5), in testSelectUpdatesToDelete_olderAndNewerUpdates() 59 Assert.assertTrue(updatesToDelete.contains(update1)) in testSelectUpdatesToDelete_olderAndNewerUpdates() 71 listOf(update1, update2, update3, update4DifferentScope), in testSelectUpdatesToDelete_differentScopeKey()
|
| /expo/packages/expo-updates/ios/Tests/ |
| H A D | ReaperSelectionPolicyDevelopmentClientSpec.swift | 11 var update1: Update! in spec() variable 23 update1 = Update( in spec() 106 update1.lastAccessed = Date(timeIntervalSince1970: 1619569811) in spec() 115 expect(updatesToDelete.contains(update1)) == true in spec() 122 update1.lastAccessed = Date(timeIntervalSince1970: 1619569810) in spec() 127 …updatesToDelete(withLaunchedUpdate: update4, updates: [update3, update4, update1, update2], filter… in spec() 129 expect(updatesToDelete.contains(update1)) == true in spec() 135 update1.lastAccessed = Date(timeIntervalSince1970: 1619569811) in spec() 140 …ToDelete = selectionPolicy.updatesToDelete(withLaunchedUpdate: update1, updates: [update1, update2… in spec() 147 …= selectionPolicy.updatesToDelete(withLaunchedUpdate: update2, updates: [update1, update2], filter… in spec() [all …]
|
| H A D | ReaperSelectionPolicyFilterAwareSpec.swift | 13 var update1: Update! in spec() variable 27 update1 = Update( in spec() 98 …expect(selectionPolicy.updatesToDelete(withLaunchedUpdate: update1, updates: [update1], filters: n… in spec() 102 …= selectionPolicy.updatesToDelete(withLaunchedUpdate: update3, updates: [update1, update2, update3… in spec() 104 expect(updatesToDelete.contains(update1)) == true in spec() 110 …ToDelete = selectionPolicy.updatesToDelete(withLaunchedUpdate: update1, updates: [update1, update2… in spec() 115 …= selectionPolicy.updatesToDelete(withLaunchedUpdate: update4, updates: [update1, update2, update3… in spec() 117 expect(updatesToDelete.contains(update1)) == true in spec() 139 …icy.updatesToDelete(withLaunchedUpdate: update4DifferentScope, updates: [update1, update2, update3… in spec()
|
| H A D | DatabaseIntegrityCheckSpec.swift | 57 let update1 = Update( in spec() variable 85 try! db.addUpdate(update1) in spec() 115 let update1 = Update( in spec() variable 143 try! db.addUpdate(update1) in spec() 145 try! db.addNewAssets([asset1], toUpdateWithId: update1.updateId) in spec()
|
| H A D | UpdatesDatabaseSpec.swift | 225 let update1 = NewUpdate.update( in spec() variable 239 try! db.addUpdate(update1) in spec() 241 try! db.addNewAssets([asset1, asset2], toUpdateWithId: update1.updateId) in spec() 247 try! db.deleteUpdates([update1]) in spec()
|
| /expo/packages/expo-updates/android/src/androidTest/java/expo/modules/updates/db/ |
| H A D | DatabaseIntegrityCheckTest.kt | 71 val update1 = UpdateEntity(UUID.randomUUID(), Date(), "1.0", scopeKey, JSONObject("{}")) in testMissingAssets() constant 72 update1.status = UpdateStatus.READY in testMissingAssets() 74 db.updateDao().insertUpdate(update1) in testMissingAssets() 75 db.assetDao().insertAssets(listOf(asset1), update1) in testMissingAssets() 82 integrityCheck.run(db, context.cacheDir, update1) in testMissingAssets() 101 val update1 = UpdateEntity(UUID.randomUUID(), Date(), "1.0", scopeKey, JSONObject("{}")) in testNoMissingAssets() constant 102 update1.status = UpdateStatus.READY in testNoMissingAssets() 104 db.updateDao().insertUpdate(update1) in testNoMissingAssets() 105 db.assetDao().insertAssets(listOf(asset1), update1) in testNoMissingAssets() 112 integrityCheck.run(db, context.cacheDir, update1) in testNoMissingAssets()
|
| H A D | UpdatesDatabaseTest.kt | 101 … val update1 = UpdateEntity(UUID.randomUUID(), Date(), runtimeVersion, projectId, JSONObject("{}")) in testDeleteUnusedAssets() constant 105 updateDao.insertUpdate(update1) in testDeleteUnusedAssets() 106 assetDao.insertAssets(listOf(asset1, commonAsset), update1) in testDeleteUnusedAssets() 123 updateDao.deleteUpdates(listOf(update1)) in testDeleteUnusedAssets() 152 … val update1 = UpdateEntity(UUID.randomUUID(), Date(), runtimeVersion, projectId, JSONObject("{}")) in testDeleteUnusedAssets_DuplicateFilenames() constant 154 updateDao.insertUpdate(update1) in testDeleteUnusedAssets_DuplicateFilenames() 156 updateDao.markUpdateFinished(update1) in testDeleteUnusedAssets_DuplicateFilenames() 168 assetDao.insertAssets(listOf(asset1, asset2), update1) in testDeleteUnusedAssets_DuplicateFilenames() 172 updateDao.deleteUpdates(listOf(update1)) in testDeleteUnusedAssets_DuplicateFilenames()
|
| /expo/packages/expo-updates/ios/EXUpdates/SelectionPolicy/ |
| H A D | ReaperSelectionPolicyDevelopmentClient.swift | 37 var updatesMutable = updates.sorted { update1, update2 in in updatesToDelete() 38 if update1.lastAccessed.compare(update2.lastAccessed) == .orderedSame { in updatesToDelete() 39 return update1.commitTime < update2.commitTime in updatesToDelete() 41 return update1.lastAccessed < update2.lastAccessed in updatesToDelete()
|
| /expo/ios/versioned/sdk49/EXUpdates/EXUpdates/SelectionPolicy/ |
| H A D | ReaperSelectionPolicyDevelopmentClient.swift | 37 var updatesMutable = updates.sorted { update1, update2 in in updatesToDelete() 38 if update1.lastAccessed.compare(update2.lastAccessed) == .orderedSame { in updatesToDelete() 39 return update1.commitTime < update2.commitTime in updatesToDelete() 41 return update1.lastAccessed < update2.lastAccessed in updatesToDelete()
|
| /expo/ios/versioned/sdk48/EXUpdates/EXUpdates/SelectionPolicy/ |
| H A D | ABI48_0_0EXUpdatesReaperSelectionPolicyDevelopmentClient.m | 42 ABI48_0_0EXUpdatesUpdate *update1 = (ABI48_0_0EXUpdatesUpdate *)obj1; 44 NSComparisonResult result = [update1.lastAccessed compare:update2.lastAccessed]; 46 result = [update1.commitTime compare:update2.commitTime];
|
| /expo/ios/versioned/sdk47/EXUpdates/EXUpdates/SelectionPolicy/ |
| H A D | ABI47_0_0EXUpdatesReaperSelectionPolicyDevelopmentClient.m | 42 ABI47_0_0EXUpdatesUpdate *update1 = (ABI47_0_0EXUpdatesUpdate *)obj1; 44 NSComparisonResult result = [update1.lastAccessed compare:update2.lastAccessed]; 46 result = [update1.commitTime compare:update2.commitTime];
|