@@ -48,11 +48,7 @@ - (void)testInit {
4848 NSDictionary *optionsDictionary = [FIROptions defaultOptionsDictionary ];
4949 FIROptions *options = [[FIROptions alloc ] initInternalWithOptionsDictionary: optionsDictionary];
5050 [self assertOptionsMatchDefaults: options andProjectID: YES ];
51- XCTAssertNil (options.deepLinkURLScheme );
5251 XCTAssertTrue (options.usingOptionsFromDefaultPlist );
53-
54- options.deepLinkURLScheme = kDeepLinkURLScheme ;
55- XCTAssertEqualObjects (options.deepLinkURLScheme , kDeepLinkURLScheme );
5652}
5753
5854- (void )testDefaultOptionsDictionaryWithNilFilePath {
@@ -77,11 +73,7 @@ - (void)testDefaultOptions {
7773 [FIROptionsMock mockFIROptions ];
7874 FIROptions *options = [FIROptions defaultOptions ];
7975 [self assertOptionsMatchDefaults: options andProjectID: YES ];
80- XCTAssertNil (options.deepLinkURLScheme );
8176 XCTAssertTrue (options.usingOptionsFromDefaultPlist );
82-
83- options.deepLinkURLScheme = kDeepLinkURLScheme ;
84- XCTAssertEqualObjects (options.deepLinkURLScheme , kDeepLinkURLScheme );
8577}
8678
8779#ifndef SWIFT_PACKAGE
@@ -124,7 +116,6 @@ - (void)testInitWithContentsOfFile {
124116 NSString *filePath = [self validGoogleServicesInfoPlistPath ];
125117 FIROptions *options = [[FIROptions alloc ] initWithContentsOfFile: filePath];
126118 [self assertOptionsMatchDefaults: options andProjectID: YES ];
127- XCTAssertNil (options.deepLinkURLScheme );
128119 XCTAssertFalse (options.usingOptionsFromDefaultPlist );
129120
130121#pragma clang diagnostic push
@@ -145,11 +136,9 @@ - (void)testInitCustomizedOptions {
145136 options.bundleID = kBundleID ;
146137 options.clientID = kClientID ;
147138 options.databaseURL = kDatabaseURL ;
148- options.deepLinkURLScheme = kDeepLinkURLScheme ;
149139 options.projectID = kProjectID ;
150140 options.storageBucket = kStorageBucket ;
151141 [self assertOptionsMatchDefaults: options andProjectID: YES ];
152- XCTAssertEqualObjects (options.deepLinkURLScheme , kDeepLinkURLScheme );
153142 XCTAssertFalse (options.usingOptionsFromDefaultPlist );
154143}
155144
@@ -209,11 +198,6 @@ - (void)testCopyingProperties {
209198 [mutableString appendString: @" 2" ];
210199 XCTAssertEqualObjects (options.databaseURL , @" 1" );
211200
212- mutableString = [[NSMutableString alloc ] initWithString: @" 1" ];
213- options.deepLinkURLScheme = mutableString;
214- [mutableString appendString: @" 2" ];
215- XCTAssertEqualObjects (options.deepLinkURLScheme , @" 1" );
216-
217201 mutableString = [[NSMutableString alloc ] initWithString: @" 1" ];
218202 options.storageBucket = mutableString;
219203 [mutableString appendString: @" 2" ];
@@ -225,30 +209,6 @@ - (void)testCopyingProperties {
225209 XCTAssertEqualObjects (options.appGroupID , @" 1" );
226210}
227211
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-
252212- (void )testAnalyticsConstants {
253213 // The keys are public values and should never change.
254214 XCTAssertEqualObjects (kFIRIsMeasurementEnabled , @" IS_MEASUREMENT_ENABLED" );
@@ -588,7 +548,6 @@ - (void)testModifyingOptionsThrows {
588548 XCTAssertThrows (options.bundleID = @" should_throw" );
589549 XCTAssertThrows (options.clientID = @" should_throw" );
590550 XCTAssertThrows (options.databaseURL = @" should_throw" );
591- XCTAssertThrows (options.deepLinkURLScheme = @" should_throw" );
592551 XCTAssertThrows (options.GCMSenderID = @" should_throw" );
593552 XCTAssertThrows (options.googleAppID = @" should_throw" );
594553 XCTAssertThrows (options.projectID = @" should_throw" );
0 commit comments