17
17
#import < XCTest/XCTest.h>
18
18
19
19
#import " FirebaseAppCheck/Sources/Core/FIRAppCheckValidator.h"
20
- #import " FirebaseCore/Extension/FIROptionsInternal .h"
20
+ #import " FirebaseCore/Sources/Public/FirebaseCore/FIROptions .h"
21
21
22
22
@interface FIRAppCheckValidatorTests : XCTestCase
23
23
@end
24
24
25
25
@implementation FIRAppCheckValidatorTests
26
26
27
27
- (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" ;
33
32
34
33
NSArray *missingFields = [FIRAppCheckValidator tokenExchangeMissingFieldsInOptions: options];
35
34
@@ -38,11 +37,10 @@ - (void)test_tokenExchangeMissingFieldsInOptions_noMissingFields {
38
37
39
38
- (void )test_tokenExchangeMissingFieldsInOptions_singleMissingField {
40
39
// 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" ;
46
44
47
45
NSArray *missingFields = [FIRAppCheckValidator tokenExchangeMissingFieldsInOptions: options];
48
46
@@ -51,8 +49,8 @@ - (void)test_tokenExchangeMissingFieldsInOptions_singleMissingField {
51
49
52
50
- (void )test_tokenExchangeMissingFieldsInOptions_multipleMissingFields {
53
51
// 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 " ];
56
54
57
55
NSArray *missingFields = [FIRAppCheckValidator tokenExchangeMissingFieldsInOptions: options];
58
56
0 commit comments