Skip to content

Commit 23656a2

Browse files
committed
Formatting
1 parent dc49936 commit 23656a2

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

FirebaseAI/Tests/Unit/TestUtilities/GenerativeModelTestUtil.swift

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -85,24 +85,25 @@ enum GenerativeModelTestUtil {
8585
)) {
8686
// Skip tests using MockURLProtocol on watchOS; unsupported in watchOS 2 and later, see
8787
// https://developer.apple.com/documentation/foundation/urlprotocol for details.
88-
#if os(watchOS)
89-
throw XCTSkip("Custom URL protocols are unsupported in watchOS 2 and later.")
90-
#endif // os(watchOS)
91-
return { request in
92-
// This is *not* an HTTPURLResponse
93-
let response = URLResponse(
94-
url: request.url!,
95-
mimeType: nil,
96-
expectedContentLength: 0,
97-
textEncodingName: nil
98-
)
99-
return (response, nil)
100-
}
88+
#if os(watchOS)
89+
throw XCTSkip("Custom URL protocols are unsupported in watchOS 2 and later.")
90+
#else // os(watchOS)
91+
return { request in
92+
// This is *not* an HTTPURLResponse
93+
let response = URLResponse(
94+
url: request.url!,
95+
mimeType: nil,
96+
expectedContentLength: 0,
97+
textEncodingName: nil
98+
)
99+
return (response, nil)
100+
}
101+
#endif // os(watchOS)
101102
}
102103

103104
static func testFirebaseInfo(appCheck: AppCheckInterop? = nil,
104-
auth: AuthInterop? = nil,
105-
privateAppID: Bool = false) -> FirebaseInfo {
105+
auth: AuthInterop? = nil,
106+
privateAppID: Bool = false) -> FirebaseInfo {
106107
let app = FirebaseApp(instanceWithName: "testApp",
107108
options: FirebaseOptions(googleAppID: "ignore",
108109
gcmSenderID: "ignore"))

0 commit comments

Comments
 (0)