   }
 }
 
-extension AppCheckAPITests: AppCheckProviderFactory {
+class DummyAppCheckProviderFactory: NSObject, AppCheckProviderFactory {
   func createProvider(with app: FirebaseApp) -> AppCheckProvider? {
     return DummyAppCheckProvider()
   }

import FirebaseCore
import FirebaseAppCheck

final class AppCheckAPITests: NSObject {
  func usage() {
    // MARK: - AppAttestProvider


    #endif // swift(>=5.5)

    // Set `AppCheckProviderFactory`
    AppCheck.setAppCheckProviderFactory(DummyAppCheckProviderFactory())

    // Get & Set `isTokenAutoRefreshEnabled`
    _ = AppCheck.appCheck().isTokenAutoRefreshEnabled
