Skip to content

Commit

Permalink
Port Storage unit tests to Swift for corresponding Swift ports (fireb…
Browse files Browse the repository at this point in the history
  • Loading branch information
paulb777 committed Apr 4, 2022
1 parent cd10144 commit 0c8536e
Show file tree
Hide file tree
Showing 16 changed files with 448 additions and 305 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/storage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ jobs:
cache_key: ${{ matrix.os }}
- name: Initialize xcodebuild
run: scripts/setup_spm_tests.sh
- name: iOS Unit Tests
- name: Objective-C Unit Tests
run: scripts/third_party/travis/retry.sh ./scripts/build.sh StorageUnit iOS spm
- name: Swift Unit Tests
run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseStorageUnit iOS spm

spm-cron:
# Don't run on private repo.
Expand Down
1 change: 1 addition & 0 deletions Example/watchOSSample/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ target 'SampleWatchAppWatchKitExtension' do
pod 'FirebaseCore', :path => '../../'
pod 'FirebaseCoreInternal', :path => '../../'
pod 'FirebaseMessaging', :path => '../../'
pod 'FirebaseCoreExtension', :path => '../../'
pod 'FirebaseCoreInternal', :path => '../../'
pod 'FirebaseCoreDiagnostics', :path => '../../'
pod 'FirebaseInstallations', :path => '../../'
Expand Down
2 changes: 1 addition & 1 deletion FirebaseAppCheck/Interop/FIRAppCheckInterop.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ NS_ASSUME_NONNULL_BEGIN
NS_SWIFT_NAME(AppCheckTokenHandlerInterop)
typedef void (^FIRAppCheckTokenHandlerInterop)(id<FIRAppCheckTokenResultInterop> tokenResult);

NS_SWIFT_NAME(AppCheckInterop) @protocol FIRAppCheckInterop<NSObject>
NS_SWIFT_NAME(AppCheckInterop) @protocol FIRAppCheckInterop

/// Retrieve a cached or generate a new FAA Token. If forcingRefresh == YES always generates a new
/// token and updates the cache.
Expand Down
1 change: 1 addition & 0 deletions FirebaseCore.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ Firebase Core includes FIRApp and FIROptions which provide central configuration
'FirebaseCore/Tests/SwiftUnit/**/*.swift',
'FirebaseCore/Tests/SwiftUnit/**/*.h',
'FirebaseCore/Tests/SwiftUnit/SwiftTestingUtilities/*',
'SharedTestUtilities/ExceptionCatcher.[mh]',
'SharedTestUtilities/FIROptionsMock.[mh]',
]
swift_unit_tests.pod_target_xcconfig = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
// limitations under the License.

#import "FirebaseCore/Extension/FirebaseCoreInternal.h"
#import "FirebaseCore/Tests/SwiftUnit/SwiftTestingUtilities/ExceptionCatcher.h"
#import "SharedTestUtilities/ExceptionCatcher.h"
#import "SharedTestUtilities/FIROptionsMock.h"
2 changes: 1 addition & 1 deletion FirebaseMessaging/Interop/FIRMessagingInterop.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
NS_ASSUME_NONNULL_BEGIN

/** Connector for bridging communication between Firebase SDKs and FIRMessaging API. */
NS_SWIFT_NAME(MessagingInterop) @protocol FIRMessagingInterop<NSObject>
NS_SWIFT_NAME(MessagingInterop) @protocol FIRMessagingInterop

/**
* The FCM registration token is used to identify this device so that FCM can send notifications to
Expand Down
123 changes: 0 additions & 123 deletions FirebaseStorage/Tests/Unit/FIRStorageComponentTests.m

This file was deleted.

Loading

0 comments on commit 0c8536e

Please sign in to comment.