1717#import < XCTest/XCTest.h>
1818
1919#import " FirebaseAppCheck/Sources/Core/FIRAppCheckValidator.h"
20- #import " FirebaseCore/Extension/FIROptionsInternal .h"
20+ #import " FirebaseCore/Sources/Public/FirebaseCore/FIROptions .h"
2121
2222@interface FIRAppCheckValidatorTests : XCTestCase
2323@end
2424
2525@implementation FIRAppCheckValidatorTests
2626
2727- (void )test_tokenExchangeMissingFieldsInOptions_noMissingFields {
28- FIROptions *options = [[FIROptions alloc ] initInternalWithOptionsDictionary: @{
29- kFIRGoogleAppID : @" TEST_GoogleAppID" ,
30- kFIRAPIKey : @" TEST_APIKey" ,
31- kFIRProjectID : @" TEST_ProjectID"
32- }];
28+ FIROptions *options = [[FIROptions alloc ] initWithGoogleAppID: @" TEST_GoogleAppID"
29+ GCMSenderID: @" TEST_GCMSenderID" ];
30+ options.APIKey = @" TEST_APIKey" ;
31+ options.projectID = @" TEST_ProjectID" ;
3332
3433 NSArray *missingFields = [FIRAppCheckValidator tokenExchangeMissingFieldsInOptions: options];
3534
@@ -38,11 +37,10 @@ - (void)test_tokenExchangeMissingFieldsInOptions_noMissingFields {
3837
3938- (void )test_tokenExchangeMissingFieldsInOptions_singleMissingField {
4039 // Google App ID is empty:
41- FIROptions *options = [[FIROptions alloc ] initInternalWithOptionsDictionary: @{
42- kFIRGoogleAppID : @" " ,
43- kFIRAPIKey : @" TEST_APIKey" ,
44- kFIRProjectID : @" TEST_ProjectID"
45- }];
40+ FIROptions *options = [[FIROptions alloc ] initWithGoogleAppID: @" "
41+ GCMSenderID: @" TEST_GCMSenderID" ];
42+ options.APIKey = @" TEST_APIKey" ;
43+ options.projectID = @" TEST_ProjectID" ;
4644
4745 NSArray *missingFields = [FIRAppCheckValidator tokenExchangeMissingFieldsInOptions: options];
4846
@@ -51,8 +49,8 @@ - (void)test_tokenExchangeMissingFieldsInOptions_singleMissingField {
5149
5250- (void )test_tokenExchangeMissingFieldsInOptions_multipleMissingFields {
5351 // Google App ID is empty, and API Key and Project ID are not set:
54- FIROptions *options =
55- [[FIROptions alloc ] initInternalWithOptionsDictionary: @{ kFIRGoogleAppID : @" " } ];
52+ FIROptions *options = [[FIROptions alloc ] initWithGoogleAppID: @" "
53+ GCMSenderID: @" TEST_GCMSenderID " ];
5654
5755 NSArray *missingFields = [FIRAppCheckValidator tokenExchangeMissingFieldsInOptions: options];
5856
0 commit comments