Skip to content

Commit

Permalink
Merge pull request #584 from kishikawakatsumi/osxmacos
Browse files Browse the repository at this point in the history
change OSX to macOS
  • Loading branch information
kishikawakatsumi authored Nov 12, 2023
2 parents 6511d2a + 5cac110 commit 28055c5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Lib/KeychainAccessTests/EnumTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ class EnumTests: XCTestCase {
}

func testAccessibility() {
guard #available(OSX 10.10, *) else {
guard #available(macOS 10.10, *) else {
return
}
do {
Expand Down
14 changes: 7 additions & 7 deletions Lib/KeychainAccessTests/ErrorTypeTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class ErrorTypeTests: XCTestCase {
XCTAssertEqual(status, .unimplemented)
XCTAssertEqual(status?.description, "Function or operation not implemented.")
}
#if os(OSX)
#if os(macOS)
do {
let status = Status(rawValue: errSecDiskFull)
XCTAssertEqual(status, .diskFull)
Expand All @@ -70,7 +70,7 @@ class ErrorTypeTests: XCTestCase {
XCTAssertEqual(status, .param)
XCTAssertEqual(status?.description, "One or more parameters passed to a function were not valid.")
}
#if os(OSX)
#if os(macOS)
do {
let status = Status(rawValue: errSecWrPerm)
XCTAssertEqual(status, .wrPerm)
Expand Down Expand Up @@ -102,7 +102,7 @@ class ErrorTypeTests: XCTestCase {
XCTAssertEqual(status, .notAvailable)
XCTAssertEqual(status?.description, "No keychain is available. You may need to restart your computer.")
}
#if os(OSX)
#if os(macOS)
do {
let status = Status(rawValue: errSecReadOnly)
XCTAssertEqual(status, .readOnly)
Expand All @@ -114,7 +114,7 @@ class ErrorTypeTests: XCTestCase {
XCTAssertEqual(status, .authFailed)
XCTAssertEqual(status?.description, "The user name or passphrase you entered is not correct.")
}
#if os(OSX)
#if os(macOS)
do {
let status = Status(rawValue: errSecNoSuchKeychain)
XCTAssertEqual(status, .noSuchKeychain)
Expand Down Expand Up @@ -151,7 +151,7 @@ class ErrorTypeTests: XCTestCase {
XCTAssertEqual(status, .itemNotFound)
XCTAssertEqual(status?.description, "The specified item could not be found in the keychain.")
}
#if os(OSX)
#if os(macOS)
do {
let status = Status(rawValue: errSecBufferTooSmall)
XCTAssertEqual(status, .bufferTooSmall)
Expand Down Expand Up @@ -193,7 +193,7 @@ class ErrorTypeTests: XCTestCase {
XCTAssertEqual(status, .interactionNotAllowed)
XCTAssertEqual(status?.description, "User interaction is not allowed.")
}
#if os(OSX)
#if os(macOS)
do {
let status = Status(rawValue: errSecReadOnlyAttr)
XCTAssertEqual(status, .readOnlyAttr)
Expand Down Expand Up @@ -364,7 +364,7 @@ class ErrorTypeTests: XCTestCase {
XCTAssertEqual(status, .internal)
XCTAssertEqual(status?.description, "An internal error occurred in the Security framework.")
}
#if os(OSX)
#if os(macOS)
do {
let status = Status(rawValue: errSecServiceNotAvailable)
XCTAssertEqual(status, .serviceNotAvailable)
Expand Down
14 changes: 7 additions & 7 deletions Lib/KeychainAccessTests/KeychainAccessTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1316,7 +1316,7 @@ class KeychainAccessTests: XCTestCase {
// MARK:

func testProperties() {
guard #available(OSX 10.10, *) else {
guard #available(macOS 10.10, *) else {
return
}

Expand Down Expand Up @@ -1357,7 +1357,7 @@ class KeychainAccessTests: XCTestCase {
return key1.compare(key2) == .orderedAscending || key1.compare(key2) == .orderedSame
}

#if !os(OSX)
#if !os(macOS)

let service: String
let accessGroup: String
Expand Down Expand Up @@ -1431,7 +1431,7 @@ class KeychainAccessTests: XCTestCase {
return key1.compare(key2) == .orderedAscending || key1.compare(key2) == .orderedSame
}

#if !os(OSX)
#if !os(macOS)

let accessGroup: String
#if targetEnvironment(macCatalyst)
Expand Down Expand Up @@ -1504,7 +1504,7 @@ class KeychainAccessTests: XCTestCase {
return key1.compare(key2) == .orderedAscending || key1.compare(key2) == .orderedSame
}

#if !os(OSX)
#if !os(macOS)
XCTAssertEqual(sortedItems[0]["synchronizable"] as? String, "false")
XCTAssertEqual(sortedItems[0]["value"] as? String, "google.com_value1")
XCTAssertEqual(sortedItems[0]["key"] as? String, "google.com_key1")
Expand Down Expand Up @@ -1544,7 +1544,7 @@ class KeychainAccessTests: XCTestCase {
#endif
}

#if !os(OSX)
#if !os(macOS)
do {
let allKeys = Keychain.allKeys(.genericPassword)
XCTAssertEqual(allKeys.count, 5)
Expand Down Expand Up @@ -1598,7 +1598,7 @@ class KeychainAccessTests: XCTestCase {
// MARK:

func testAuthenticationPolicy() {
guard #available(iOS 9.0, OSX 10.11, *) else {
guard #available(iOS 9.0, macOS 10.11, *) else {
return
}

Expand Down Expand Up @@ -1796,7 +1796,7 @@ class KeychainAccessTests: XCTestCase {
XCTAssertTrue(accessControl != nil)
}
#endif
#if os(OSX)
#if os(macOS)
do {
let accessibility: Accessibility = .whenPasscodeSetThisDeviceOnly

Expand Down
2 changes: 1 addition & 1 deletion Lib/TestHost/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

#if os(OSX)
#if os(macOS)
import Cocoa

@NSApplicationMain
Expand Down

0 comments on commit 28055c5

Please sign in to comment.