IOS-1540 Back out fd9ab3617937: Remove LoggerTest. IOS-1540_GOOD
authorDirk Zimmermann <dz@pep.security>
Tue, 11 Jun 2019 16:28:31 +0200
branchIOS-1540_GOOD
changeset 897774c08c3a553d
parent 8976 7476d1591834
child 8978 2ba8db059a3e
IOS-1540 Back out fd9ab3617937: Remove LoggerTest.
pEpForiOS.xcodeproj/project.pbxproj
pEpForiOSTests/LoggerTest.swift
     1.1 --- a/pEpForiOS.xcodeproj/project.pbxproj	Tue Jun 11 16:28:31 2019 +0200
     1.2 +++ b/pEpForiOS.xcodeproj/project.pbxproj	Tue Jun 11 16:28:31 2019 +0200
     1.3 @@ -320,6 +320,7 @@
     1.4  		43B10C801EC2EE7F003E849F /* CppDummy.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 43B10C7F1EC2EE7F003E849F /* CppDummy.cpp */; };
     1.5  		43B2C31B1D2280ED00A08557 /* 5A90_3590_0E48_AB85_F3DB__045E_4623_C5D1_EAB6_643E.asc in Resources */ = {isa = PBXBuildFile; fileRef = 43B2C3161D2280ED00A08557 /* 5A90_3590_0E48_AB85_F3DB__045E_4623_C5D1_EAB6_643E.asc */; };
     1.6  		43B7154D1CECAADA0027861A /* ViewWidthsAligner.swift in Sources */ = {isa = PBXBuildFile; fileRef = 43B7154C1CECAADA0027861A /* ViewWidthsAligner.swift */; };
     1.7 +		43C273DD21C9024A002EB4C8 /* LoggerTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 43C273DC21C9024A002EB4C8 /* LoggerTest.swift */; };
     1.8  		43C322051EA89EED005073FB /* HandshakePartnerTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 43C322041EA89EED005073FB /* HandshakePartnerTableViewCell.swift */; };
     1.9  		43C322091EA90192005073FB /* PEP+UI.swift in Sources */ = {isa = PBXBuildFile; fileRef = 43C322081EA90192005073FB /* PEP+UI.swift */; };
    1.10  		43C3B1602003851100ED48A4 /* DecryptImportedMessagesTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 43C3B15F2003851100ED48A4 /* DecryptImportedMessagesTests.swift */; };
    1.11 @@ -869,6 +870,7 @@
    1.12  		43B2C3161D2280ED00A08557 /* 5A90_3590_0E48_AB85_F3DB__045E_4623_C5D1_EAB6_643E.asc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = 5A90_3590_0E48_AB85_F3DB__045E_4623_C5D1_EAB6_643E.asc; sourceTree = "<group>"; };
    1.13  		43B7154C1CECAADA0027861A /* ViewWidthsAligner.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ViewWidthsAligner.swift; sourceTree = "<group>"; };
    1.14  		43C046BE1CF48EA500BD0D9D /* AddressBook.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AddressBook.framework; path = System/Library/Frameworks/AddressBook.framework; sourceTree = SDKROOT; };
    1.15 +		43C273DC21C9024A002EB4C8 /* LoggerTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoggerTest.swift; sourceTree = "<group>"; };
    1.16  		43C322041EA89EED005073FB /* HandshakePartnerTableViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HandshakePartnerTableViewCell.swift; sourceTree = "<group>"; };
    1.17  		43C322081EA90192005073FB /* PEP+UI.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "PEP+UI.swift"; sourceTree = "<group>"; };
    1.18  		43C3B15F2003851100ED48A4 /* DecryptImportedMessagesTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DecryptImportedMessagesTests.swift; sourceTree = "<group>"; };
    1.19 @@ -1864,6 +1866,7 @@
    1.20  				4395CDED20AAC909003FC5F1 /* UIImageExtensionsTests.swift */,
    1.21  				434DDC2A20D10F9A00755F44 /* EncryptionTests.swift */,
    1.22  				438BA0F4214F89CC001A4A82 /* MailParsingTests.swift */,
    1.23 +				43C273DC21C9024A002EB4C8 /* LoggerTest.swift */,
    1.24  			);
    1.25  			path = pEpForiOSTests;
    1.26  			sourceTree = "<group>";
    1.27 @@ -3073,6 +3076,7 @@
    1.28  				150707DC21006CD000AA213F /* ComposeUtilTest.swift in Sources */,
    1.29  				15D439A5216F7E0E00EB3933 /* AccountPickerViewModelTest.swift in Sources */,
    1.30  				1574D07D2114696B00FEDC93 /* URL+MailToTest.swift in Sources */,
    1.31 +				43C273DD21C9024A002EB4C8 /* LoggerTest.swift in Sources */,
    1.32  				4356FFEC21356CB600804089 /* ReplyAllPossibleCheckerTest.swift in Sources */,
    1.33  				430C80E01D0EADC200CD4582 /* PepAdapterTests.swift in Sources */,
    1.34  				00DF2C3B2164C53F004EBA6C /* FolderViewModelTest.swift in Sources */,
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/pEpForiOSTests/LoggerTest.swift	Tue Jun 11 16:28:31 2019 +0200
     2.3 @@ -0,0 +1,22 @@
     2.4 +//
     2.5 +//  LoggerTest.swift
     2.6 +//  pEpForiOSTests
     2.7 +//
     2.8 +//  Created by Dirk Zimmermann on 18.12.18.
     2.9 +//  Copyright © 2018 p≡p Security S.A. All rights reserved.
    2.10 +//
    2.11 +
    2.12 +import XCTest
    2.13 +
    2.14 +@testable import pEpForiOS
    2.15 +@testable import MessageModel
    2.16 +@testable import pEpIOSToolbox
    2.17 +
    2.18 +class LoggerTest: XCTestCase {
    2.19 +    func testSimple() {
    2.20 +        let log1 = Logger(subsystem: "sys1", category: "cat1")
    2.21 +        log1.log("1 hi (standalone)")
    2.22 +        log1.log("2 hi (one number): %d", 2)
    2.23 +        log1.log("3 hi (one number plus string): %d %@", 2, "parameters")
    2.24 +    }
    2.25 +}