File tree Expand file tree Collapse file tree 1 file changed +16
-15
lines changed
FirebaseAI/Tests/Unit/TestUtilities Expand file tree Collapse file tree 1 file changed +16
-15
lines changed Original file line number Diff line number Diff 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 " ) )
You can’t perform that action at this time.
0 commit comments