SwiftGlobalTests.swift 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // Copyright 2023 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. import Foundation
  15. import XCTest
  16. import FirebaseAuth
  17. /// Tests globals defined in Objective-C sources. These globals are for backward compatibility and
  18. /// should not be used in new code.
  19. class SwiftGlobalTests: XCTestCase {
  20. func GlobalSymbolBuildTest() {
  21. let _ = NSNotification.Name.AuthStateDidChange
  22. let _: String = AuthErrorDomain
  23. let _: String = AuthErrorUserInfoNameKey
  24. let _: String = AuthErrorUserInfoEmailKey
  25. let _: String = AuthErrorUserInfoUpdatedCredentialKey
  26. let _: String = AuthErrorUserInfoMultiFactorResolverKey
  27. let _: String = EmailAuthProviderID
  28. let _: String = EmailLinkAuthSignInMethod
  29. let _: String = EmailPasswordAuthSignInMethod
  30. let _: String = FacebookAuthProviderID
  31. let _: String = FacebookAuthSignInMethod
  32. let _: String = GameCenterAuthProviderID
  33. let _: String = GameCenterAuthSignInMethod
  34. let _: String = GitHubAuthProviderID
  35. let _: String = GitHubAuthSignInMethod
  36. let _: String = GoogleAuthProviderID
  37. let _: String = GoogleAuthSignInMethod
  38. #if os(iOS) || os(macOS)
  39. let _: String = TOTPMultiFactorID
  40. #endif
  41. #if os(iOS)
  42. let _: String = PhoneAuthProviderID
  43. let _: String = PhoneAuthSignInMethod
  44. #endif
  45. let _: String = TwitterAuthProviderID
  46. let _: String = TwitterAuthSignInMethod
  47. }
  48. }