123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- // _____ _
- // |_ _| |_ _ _ ___ ___ _ __ __ _
- // | | | ' \| '_/ -_) -_) ' \/ _` |_
- // |_| |_||_|_| \___\___|_|_|_\__,_(_)
- //
- // Threema iOS Client
- // Copyright (c) 2019-2020 Threema GmbH
- //
- // This program is free software: you can redistribute it and/or modify
- // it under the terms of the GNU Affero General Public License, version 3,
- // as published by the Free Software Foundation.
- //
- // This program is distributed in the hope that it will be useful,
- // but WITHOUT ANY WARRANTY; without even the implied warranty of
- // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- // GNU Affero General Public License for more details.
- //
- // You should have received a copy of the GNU Affero General Public License
- // along with this program. If not, see <https://www.gnu.org/licenses/>.
- import Foundation
- @testable import Threema
- class SafeConfigManagerMock: NSObject, SafeConfigManagerProtocol {
- var safeConfigDestroyCallCount = 0
-
- private var server: String?
-
- init(server: String?) {
- self.server = server
- }
-
- func destroy() {
- safeConfigDestroyCallCount += 1
- }
-
- func getKey() -> [UInt8]? {
- return nil
- }
-
- func setKey(_ value: [UInt8]?) {
- }
-
- func getCustomServer() -> String? {
- return nil
- }
-
- func setCustomServer(_ value: String?) {
- }
-
- func getServer() -> String? {
- return self.server
- }
-
- func setServer(_ value: String?) {
- }
-
- func getMaxBackupBytes() -> Int? {
- return nil
- }
-
- func setMaxBackupBytes(_ value: Int?) {
- }
-
- func getRetentionDays() -> Int? {
- return nil
- }
-
- func setRetentionDays(_ value: Int?) {
- }
-
- func getBackupSize() -> Int64? {
- return nil
- }
-
- func setBackupSize(_ value: Int64?) {
- }
-
- func getBackupStartedAt() -> Date? {
- return nil
- }
-
- func setBackupStartedAt(_ value: Date?) {
- }
-
- func getLastBackup() -> Date? {
- return nil
- }
-
- func setLastBackup(_ value: Date?) {
- }
-
- func getLastResult() -> String? {
- return nil
- }
-
- func setLastResult(_ value: String?) {
- }
-
- func getLastChecksum() -> [UInt8]? {
- return nil
- }
-
- func setLastChecksum(_ value: [UInt8]?) {
- }
-
- public func getLastAlertBackupFailed() -> Date? {
- return nil
- }
-
- public func setLastAlertBackupFailed(_ value: Date?) {
- }
-
- func getIsTriggered() -> Bool {
- return false
- }
-
- func setIsTriggered(_ value: Bool) {
- }
- }
|