@@ -65,7 +65,7 @@ - (void)testCacheResetAfterEverySuccessfulFetch {
6565                                forKey: @" fpr_vc_session_sampling_rate"  ];
6666
6767  //  Trigger the RC config fetch
68-   remoteConfig.fetchStatus  = FIRRemoteConfigFetchStatusSuccess ;
68+   remoteConfig.fetchStatus  = FIRRemoteConfigFetchAndActivateStatusSuccessUsingPreFetchedData ;
6969  remoteConfig.lastFetchTime  = nil ;
7070  configFlags.appStartConfigFetchDelayInSeconds  = 0.0 ;
7171  [configFlags update ];
@@ -92,7 +92,7 @@ - (void)testCacheResetAfterEverySuccessfulFetch {
9292                                forKey: @" fpr_vc_session_sampling_rate"  ];
9393
9494  //  Retrigger the RC config fetch
95-   remoteConfig.fetchStatus  = FIRRemoteConfigFetchStatusSuccess ;
95+   remoteConfig.fetchStatus  = FIRRemoteConfigFetchAndActivateStatusSuccessUsingPreFetchedData ;
9696  remoteConfig.lastFetchTime  = nil ;
9797  [configFlags update ];
9898
@@ -112,7 +112,7 @@ - (void)testConfigUpdate {
112112
113113  FPRRemoteConfigFlags *configFlags =
114114      [[FPRRemoteConfigFlags alloc ] initWithRemoteConfig: (FIRRemoteConfig *)remoteConfig];
115-   remoteConfig.fetchStatus  = FIRRemoteConfigFetchStatusSuccess ;
115+   remoteConfig.fetchStatus  = FIRRemoteConfigFetchAndActivateStatusSuccessUsingPreFetchedData ;
116116  configFlags.appStartConfigFetchDelayInSeconds  = 0.0 ;
117117  [configFlags update ];
118118  XCTAssertNotNil (configFlags.lastFetchedTime );
@@ -179,7 +179,7 @@ - (void)testConfigUpdateDoesNotHappenImmediately {
179179  FPRRemoteConfigFlags *configFlags =
180180      [[FPRRemoteConfigFlags alloc ] initWithRemoteConfig: (FIRRemoteConfig *)remoteConfig];
181181
182-   remoteConfig.fetchStatus  = FIRRemoteConfigFetchStatusSuccess ;
182+   remoteConfig.fetchStatus  = FIRRemoteConfigFetchAndActivateStatusSuccessUsingPreFetchedData ;
183183  configFlags.appStartConfigFetchDelayInSeconds  = 0.0 ;
184184  [configFlags update ];
185185  XCTAssertNotNil (configFlags.lastFetchedTime );
@@ -203,7 +203,7 @@ - (void)testConfigUpdateHappensIfInitialFetchHasNotHappened {
203203  FPRRemoteConfigFlags *configFlags =
204204      [[FPRRemoteConfigFlags alloc ] initWithRemoteConfig: (FIRRemoteConfig *)remoteConfig];
205205
206-   remoteConfig.fetchStatus  = FIRRemoteConfigFetchStatusSuccess ;
206+   remoteConfig.fetchStatus  = FIRRemoteConfigFetchAndActivateStatusSuccessUsingPreFetchedData ;
207207  configFlags.appStartConfigFetchDelayInSeconds  = 0.0 ;
208208  [configFlags update ];
209209  XCTAssertNotNil (configFlags.lastFetchedTime );
@@ -224,7 +224,7 @@ - (void)testConfigFetchHappensDoesNotHappenImmediately {
224224      [[FPRRemoteConfigFlags alloc ] initWithRemoteConfig: (FIRRemoteConfig *)remoteConfig];
225225  //  Setting the status to success. Calling update on the config flags should trigger updation of
226226  //  fetch time. Fetch would trigger activation.
227-   remoteConfig.fetchStatus  = FIRRemoteConfigFetchStatusSuccess ;
227+   remoteConfig.fetchStatus  = FIRRemoteConfigFetchAndActivateStatusSuccessUsingPreFetchedData ;
228228  NSDate  *lastActivatedTime = configFlags.lastFetchedTime ;
229229  [configFlags update ];
230230  XCTAssert ([configFlags.lastFetchedTime timeIntervalSinceDate: lastActivatedTime] == 0 );
@@ -240,7 +240,7 @@ - (void)testConfigFetchHappensAfterDelay {
240240      [[FPRRemoteConfigFlags alloc ] initWithRemoteConfig: (FIRRemoteConfig *)remoteConfig];
241241  configFlags.appStartConfigFetchDelayInSeconds  = 0.0 ;
242242
243-   remoteConfig.fetchStatus  = FIRRemoteConfigFetchStatusSuccess ;
243+   remoteConfig.fetchStatus  = FIRRemoteConfigFetchAndActivateStatusSuccessUsingPreFetchedData ;
244244  XCTestExpectation *expectation =
245245      [self  expectationWithDescription: @" Dummy expectation to wait for the fetch delay."  ];
246246  dispatch_after (
0 commit comments