@@ -246,7 +246,7 @@ TEST(FlagPersistenceTests, RecordsFreshnessOnAPayload) {
246246 std::chrono::milliseconds{500 }};
247247 });
248248
249- EXPECT_FALSE (flag_persistence.FreshnessFor (context).has_value ());
249+ EXPECT_FALSE (flag_persistence.ReadFreshness (context).has_value ());
250250
251251 flag_persistence.Apply (
252252 context,
@@ -262,7 +262,7 @@ TEST(FlagPersistenceTests, RecordsFreshnessOnAPayload) {
262262
263263 EXPECT_EQ (
264264 std::chrono::system_clock::time_point{std::chrono::milliseconds{500 }},
265- flag_persistence.FreshnessFor (context));
265+ flag_persistence.ReadFreshness (context));
266266}
267267
268268// A "none" intent is the service confirming the SDK's data is current, which
@@ -287,7 +287,7 @@ TEST(FlagPersistenceTests, RecordsFreshnessOnANoneChangeSet) {
287287
288288 EXPECT_EQ (
289289 std::chrono::system_clock::time_point{std::chrono::milliseconds{700 }},
290- flag_persistence.FreshnessFor (context));
290+ flag_persistence.ReadFreshness (context));
291291}
292292
293293// The freshness record is keyed by the whole context, because changing an
@@ -313,8 +313,8 @@ TEST(FlagPersistenceTests, FreshnessIsPerContextAttributeSet) {
313313 FlagChangeSet{ChangeSetType::kNone , {}, Selector{}},
314314 /* from_cache= */ false );
315315
316- EXPECT_TRUE (flag_persistence.FreshnessFor (plain).has_value ());
317- EXPECT_FALSE (flag_persistence.FreshnessFor (with_attribute).has_value ());
316+ EXPECT_TRUE (flag_persistence.ReadFreshness (plain).has_value ());
317+ EXPECT_FALSE (flag_persistence.ReadFreshness (with_attribute).has_value ());
318318}
319319
320320// A stored context that has aged out of the cache should not keep a freshness
@@ -342,10 +342,10 @@ TEST(FlagPersistenceTests, PrunesFreshnessBeyondMaxContexts) {
342342 now++;
343343 }
344344
345- EXPECT_FALSE (flag_persistence.FreshnessFor (first).has_value ());
345+ EXPECT_FALSE (flag_persistence.ReadFreshness (first).has_value ());
346346 EXPECT_TRUE (
347347 flag_persistence
348- .FreshnessFor (ContextBuilder ().Kind (" user" , " third" ).Build ())
348+ .ReadFreshness (ContextBuilder ().Kind (" user" , " third" ).Build ())
349349 .has_value ());
350350}
351351
@@ -378,7 +378,7 @@ TEST(FlagPersistenceTests, ApplyFromCacheDoesNotWriteTheCache) {
378378 // Nothing is written back.
379379 EXPECT_TRUE (persistence->store_ .empty ());
380380 // Nor was it confirmed current by the service, so it is not freshness.
381- EXPECT_FALSE (flag_persistence.FreshnessFor (context).has_value ());
381+ EXPECT_FALSE (flag_persistence.ReadFreshness (context).has_value ());
382382 // The data is still applied to the store, so evaluation can use it.
383383 ASSERT_TRUE (store.Get (" flagA" ));
384384}
0 commit comments