/* * SPDX-FileCopyrightText: 2023 The Calyx Institute * SPDX-License-Identifier: Apache-2.0 */ package com.stevesoltys.seedvault.e2e import android.content.pm.PackageInfo import com.stevesoltys.seedvault.metadata.PackageMetadata import com.stevesoltys.seedvault.restore.AppRestoreResult /** * Contains maps of (package name -> SHA-256 hashes) of application data. * * During backups and restores, we intercept the package data and store the result here. * We can use this to validate that the restored app data actually matches the backed up data. * * For full backups, the mapping is: Map * For K/V backups, the mapping is: Map> */ internal data class SeedvaultLargeTestResult( val backupResults: Map = emptyMap(), val restoreResults: Map = emptyMap(), val full: MutableMap, val kv: MutableMap>, val userApps: List, ) { fun allUserApps() = userApps }