@@ -48,11 +48,7 @@ - (void)testInit {
48
48
NSDictionary *optionsDictionary = [FIROptions defaultOptionsDictionary ];
49
49
FIROptions *options = [[FIROptions alloc ] initInternalWithOptionsDictionary: optionsDictionary];
50
50
[self assertOptionsMatchDefaults: options andProjectID: YES ];
51
- XCTAssertNil (options.deepLinkURLScheme );
52
51
XCTAssertTrue (options.usingOptionsFromDefaultPlist );
53
-
54
- options.deepLinkURLScheme = kDeepLinkURLScheme ;
55
- XCTAssertEqualObjects (options.deepLinkURLScheme , kDeepLinkURLScheme );
56
52
}
57
53
58
54
- (void )testDefaultOptionsDictionaryWithNilFilePath {
@@ -77,11 +73,7 @@ - (void)testDefaultOptions {
77
73
[FIROptionsMock mockFIROptions ];
78
74
FIROptions *options = [FIROptions defaultOptions ];
79
75
[self assertOptionsMatchDefaults: options andProjectID: YES ];
80
- XCTAssertNil (options.deepLinkURLScheme );
81
76
XCTAssertTrue (options.usingOptionsFromDefaultPlist );
82
-
83
- options.deepLinkURLScheme = kDeepLinkURLScheme ;
84
- XCTAssertEqualObjects (options.deepLinkURLScheme , kDeepLinkURLScheme );
85
77
}
86
78
87
79
#ifndef SWIFT_PACKAGE
@@ -124,7 +116,6 @@ - (void)testInitWithContentsOfFile {
124
116
NSString *filePath = [self validGoogleServicesInfoPlistPath ];
125
117
FIROptions *options = [[FIROptions alloc ] initWithContentsOfFile: filePath];
126
118
[self assertOptionsMatchDefaults: options andProjectID: YES ];
127
- XCTAssertNil (options.deepLinkURLScheme );
128
119
XCTAssertFalse (options.usingOptionsFromDefaultPlist );
129
120
130
121
#pragma clang diagnostic push
@@ -145,11 +136,9 @@ - (void)testInitCustomizedOptions {
145
136
options.bundleID = kBundleID ;
146
137
options.clientID = kClientID ;
147
138
options.databaseURL = kDatabaseURL ;
148
- options.deepLinkURLScheme = kDeepLinkURLScheme ;
149
139
options.projectID = kProjectID ;
150
140
options.storageBucket = kStorageBucket ;
151
141
[self assertOptionsMatchDefaults: options andProjectID: YES ];
152
- XCTAssertEqualObjects (options.deepLinkURLScheme , kDeepLinkURLScheme );
153
142
XCTAssertFalse (options.usingOptionsFromDefaultPlist );
154
143
}
155
144
@@ -209,11 +198,6 @@ - (void)testCopyingProperties {
209
198
[mutableString appendString: @" 2" ];
210
199
XCTAssertEqualObjects (options.databaseURL , @" 1" );
211
200
212
- mutableString = [[NSMutableString alloc ] initWithString: @" 1" ];
213
- options.deepLinkURLScheme = mutableString;
214
- [mutableString appendString: @" 2" ];
215
- XCTAssertEqualObjects (options.deepLinkURLScheme , @" 1" );
216
-
217
201
mutableString = [[NSMutableString alloc ] initWithString: @" 1" ];
218
202
options.storageBucket = mutableString;
219
203
[mutableString appendString: @" 2" ];
@@ -225,30 +209,6 @@ - (void)testCopyingProperties {
225
209
XCTAssertEqualObjects (options.appGroupID , @" 1" );
226
210
}
227
211
228
- - (void )testCopyWithZone {
229
- [FIROptionsMock mockFIROptions ];
230
- // default options
231
- FIROptions *options = [FIROptions defaultOptions ];
232
- options.deepLinkURLScheme = kDeepLinkURLScheme ;
233
- XCTAssertEqualObjects (options.deepLinkURLScheme , kDeepLinkURLScheme );
234
-
235
- FIROptions *newOptions = [options copy ];
236
- XCTAssertEqualObjects (newOptions.deepLinkURLScheme , kDeepLinkURLScheme );
237
-
238
- [options setDeepLinkURLScheme: kNewDeepLinkURLScheme ];
239
- XCTAssertEqualObjects (options.deepLinkURLScheme , kNewDeepLinkURLScheme );
240
- XCTAssertEqualObjects (newOptions.deepLinkURLScheme , kDeepLinkURLScheme );
241
-
242
- // customized options
243
- FIROptions *customizedOptions = [[FIROptions alloc ] initWithGoogleAppID: kGoogleAppID
244
- GCMSenderID: kGCMSenderID ];
245
- customizedOptions.deepLinkURLScheme = kDeepLinkURLScheme ;
246
- FIROptions *copyCustomizedOptions = [customizedOptions copy ];
247
- [copyCustomizedOptions setDeepLinkURLScheme: kNewDeepLinkURLScheme ];
248
- XCTAssertEqualObjects (customizedOptions.deepLinkURLScheme , kDeepLinkURLScheme );
249
- XCTAssertEqualObjects (copyCustomizedOptions.deepLinkURLScheme , kNewDeepLinkURLScheme );
250
- }
251
-
252
212
- (void )testAnalyticsConstants {
253
213
// The keys are public values and should never change.
254
214
XCTAssertEqualObjects (kFIRIsMeasurementEnabled , @" IS_MEASUREMENT_ENABLED" );
@@ -588,7 +548,6 @@ - (void)testModifyingOptionsThrows {
588
548
XCTAssertThrows (options.bundleID = @" should_throw" );
589
549
XCTAssertThrows (options.clientID = @" should_throw" );
590
550
XCTAssertThrows (options.databaseURL = @" should_throw" );
591
- XCTAssertThrows (options.deepLinkURLScheme = @" should_throw" );
592
551
XCTAssertThrows (options.GCMSenderID = @" should_throw" );
593
552
XCTAssertThrows (options.googleAppID = @" should_throw" );
594
553
XCTAssertThrows (options.projectID = @" should_throw" );
0 commit comments