Skip to content

Commit bbf4fa7

Browse files
authored
Add tvOS Storage unit testing (#451)
1 parent cde66b1 commit bbf4fa7

File tree

30 files changed

+1086
-2
lines changed

30 files changed

+1086
-2
lines changed

Example/Firebase.xcodeproj/project.pbxproj

Lines changed: 448 additions & 2 deletions
Large diffs are not rendered by default.
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "0910"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "DEAAD3E01FBA46AA0053BF48"
18+
BuildableName = "Storage_Example_tvOS.app"
19+
BlueprintName = "Storage_Example_tvOS"
20+
ReferencedContainer = "container:Firebase.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
language = ""
30+
shouldUseLaunchSchemeArgsEnv = "YES">
31+
<Testables>
32+
<TestableReference
33+
skipped = "NO">
34+
<BuildableReference
35+
BuildableIdentifier = "primary"
36+
BlueprintIdentifier = "DEAAD3F41FBA46AB0053BF48"
37+
BuildableName = "Storage_Tests_tvOS.xctest"
38+
BlueprintName = "Storage_Tests_tvOS"
39+
ReferencedContainer = "container:Firebase.xcodeproj">
40+
</BuildableReference>
41+
</TestableReference>
42+
</Testables>
43+
<MacroExpansion>
44+
<BuildableReference
45+
BuildableIdentifier = "primary"
46+
BlueprintIdentifier = "DEAAD3E01FBA46AA0053BF48"
47+
BuildableName = "Storage_Example_tvOS.app"
48+
BlueprintName = "Storage_Example_tvOS"
49+
ReferencedContainer = "container:Firebase.xcodeproj">
50+
</BuildableReference>
51+
</MacroExpansion>
52+
<AdditionalOptions>
53+
</AdditionalOptions>
54+
</TestAction>
55+
<LaunchAction
56+
buildConfiguration = "Debug"
57+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
58+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
59+
language = ""
60+
launchStyle = "0"
61+
useCustomWorkingDirectory = "NO"
62+
ignoresPersistentStateOnLaunch = "NO"
63+
debugDocumentVersioning = "YES"
64+
debugServiceExtension = "internal"
65+
allowLocationSimulation = "YES">
66+
<BuildableProductRunnable
67+
runnableDebuggingMode = "0">
68+
<BuildableReference
69+
BuildableIdentifier = "primary"
70+
BlueprintIdentifier = "DEAAD3E01FBA46AA0053BF48"
71+
BuildableName = "Storage_Example_tvOS.app"
72+
BlueprintName = "Storage_Example_tvOS"
73+
ReferencedContainer = "container:Firebase.xcodeproj">
74+
</BuildableReference>
75+
</BuildableProductRunnable>
76+
<AdditionalOptions>
77+
</AdditionalOptions>
78+
</LaunchAction>
79+
<ProfileAction
80+
buildConfiguration = "Release"
81+
shouldUseLaunchSchemeArgsEnv = "YES"
82+
savedToolIdentifier = ""
83+
useCustomWorkingDirectory = "NO"
84+
debugDocumentVersioning = "YES">
85+
<BuildableProductRunnable
86+
runnableDebuggingMode = "0">
87+
<BuildableReference
88+
BuildableIdentifier = "primary"
89+
BlueprintIdentifier = "DEAAD3E01FBA46AA0053BF48"
90+
BuildableName = "Storage_Example_tvOS.app"
91+
BlueprintName = "Storage_Example_tvOS"
92+
ReferencedContainer = "container:Firebase.xcodeproj">
93+
</BuildableReference>
94+
</BuildableProductRunnable>
95+
</ProfileAction>
96+
<AnalyzeAction
97+
buildConfiguration = "Debug">
98+
</AnalyzeAction>
99+
<ArchiveAction
100+
buildConfiguration = "Release"
101+
revealArchiveInOrganizer = "YES">
102+
</ArchiveAction>
103+
</Scheme>
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "0910"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
</BuildAction>
9+
<TestAction
10+
buildConfiguration = "Debug"
11+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
12+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
13+
language = ""
14+
shouldUseLaunchSchemeArgsEnv = "YES">
15+
<Testables>
16+
<TestableReference
17+
skipped = "NO">
18+
<BuildableReference
19+
BuildableIdentifier = "primary"
20+
BlueprintIdentifier = "DEAAD3F41FBA46AB0053BF48"
21+
BuildableName = "Storage_Tests_tvOS.xctest"
22+
BlueprintName = "Storage_Tests_tvOS"
23+
ReferencedContainer = "container:Firebase.xcodeproj">
24+
</BuildableReference>
25+
</TestableReference>
26+
</Testables>
27+
<AdditionalOptions>
28+
</AdditionalOptions>
29+
</TestAction>
30+
<LaunchAction
31+
buildConfiguration = "Debug"
32+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
33+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
34+
language = ""
35+
launchStyle = "0"
36+
useCustomWorkingDirectory = "NO"
37+
ignoresPersistentStateOnLaunch = "NO"
38+
debugDocumentVersioning = "YES"
39+
debugServiceExtension = "internal"
40+
allowLocationSimulation = "YES">
41+
<AdditionalOptions>
42+
</AdditionalOptions>
43+
</LaunchAction>
44+
<ProfileAction
45+
buildConfiguration = "Release"
46+
shouldUseLaunchSchemeArgsEnv = "YES"
47+
savedToolIdentifier = ""
48+
useCustomWorkingDirectory = "NO"
49+
debugDocumentVersioning = "YES">
50+
</ProfileAction>
51+
<AnalyzeAction
52+
buildConfiguration = "Debug">
53+
</AnalyzeAction>
54+
<ArchiveAction
55+
buildConfiguration = "Release"
56+
revealArchiveInOrganizer = "YES">
57+
</ArchiveAction>
58+
</Scheme>

Example/Podfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,3 +164,20 @@ target 'Storage_Example_macOS' do
164164
pod 'OCMock'
165165
end
166166
end
167+
168+
target 'Storage_Example_tvOS' do
169+
platform :tvos, '10.0'
170+
171+
pod 'FirebaseCommunity/Storage', :path => '../'
172+
173+
target 'Storage_Tests_tvOS' do
174+
inherit! :search_paths
175+
pod 'OCMock'
176+
end
177+
178+
#TODO Storage_IntegrationTests_tvOS
179+
# target 'Storage_IntegrationTests_tvOS' do
180+
# inherit! :search_paths
181+
# pod 'OCMock'
182+
# end
183+
end
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// Copyright 2017 Google
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+
15+
#import <UIKit/UIKit.h>
16+
17+
@interface AppDelegate : UIResponder <UIApplicationDelegate>
18+
19+
@property(strong, nonatomic) UIWindow *window;
20+
21+
@end
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
// Copyright 2017 Google
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+
15+
@import FirebaseCommunity;
16+
17+
#import "AppDelegate.h"
18+
19+
@interface AppDelegate ()
20+
21+
@end
22+
23+
@implementation AppDelegate
24+
25+
- (BOOL)application:(UIApplication *)application
26+
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
27+
// Override point for customization after application launch.
28+
[FIRApp configure];
29+
return YES;
30+
}
31+
32+
- (void)applicationWillResignActive:(UIApplication *)application {
33+
// Sent when the application is about to move from active to inactive state. This can occur for
34+
// certain types of temporary interruptions (such as an incoming phone call or SMS message) or
35+
// when the user quits the application and it begins the transition to the background state. Use
36+
// this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates.
37+
// Games should use this method to pause the game.
38+
}
39+
40+
- (void)applicationDidEnterBackground:(UIApplication *)application {
41+
// Use this method to release shared resources, save user data, invalidate timers, and store
42+
// enough application state information to restore your application to its current state in case
43+
// it is terminated later. If your application supports background execution, this method is
44+
// called instead of applicationWillTerminate: when the user quits.
45+
}
46+
47+
- (void)applicationWillEnterForeground:(UIApplication *)application {
48+
// Called as part of the transition from the background to the active state; here you can undo
49+
// many of the changes made on entering the background.
50+
}
51+
52+
- (void)applicationDidBecomeActive:(UIApplication *)application {
53+
// Restart any tasks that were paused (or not yet started) while the application was inactive. If
54+
// the application was previously in the background, optionally refresh the user interface.
55+
}
56+
57+
- (void)applicationWillTerminate:(UIApplication *)application {
58+
// Called when the application is about to terminate. Save data if appropriate. See also
59+
// applicationDidEnterBackground:.
60+
}
61+
62+
@end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "tv"
5+
}
6+
],
7+
"info" : {
8+
"version" : 1,
9+
"author" : "xcode"
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"version" : 1,
4+
"author" : "xcode"
5+
}
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"layers" : [
3+
{
4+
"filename" : "Front.imagestacklayer"
5+
},
6+
{
7+
"filename" : "Middle.imagestacklayer"
8+
},
9+
{
10+
"filename" : "Back.imagestacklayer"
11+
}
12+
],
13+
"info" : {
14+
"version" : 1,
15+
"author" : "xcode"
16+
}
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "tv"
5+
}
6+
],
7+
"info" : {
8+
"version" : 1,
9+
"author" : "xcode"
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"version" : 1,
4+
"author" : "xcode"
5+
}
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "tv"
5+
}
6+
],
7+
"info" : {
8+
"version" : 1,
9+
"author" : "xcode"
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"version" : 1,
4+
"author" : "xcode"
5+
}
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "tv",
5+
"scale" : "1x"
6+
},
7+
{
8+
"idiom" : "tv",
9+
"scale" : "2x"
10+
}
11+
],
12+
"info" : {
13+
"version" : 1,
14+
"author" : "xcode"
15+
}
16+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"version" : 1,
4+
"author" : "xcode"
5+
}
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"layers" : [
3+
{
4+
"filename" : "Front.imagestacklayer"
5+
},
6+
{
7+
"filename" : "Middle.imagestacklayer"
8+
},
9+
{
10+
"filename" : "Back.imagestacklayer"
11+
}
12+
],
13+
"info" : {
14+
"version" : 1,
15+
"author" : "xcode"
16+
}
17+
}

0 commit comments

Comments
 (0)