#include "components/optimization_guide/core/model_store_metadata_entry.h"
#include "base/files/file_path.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "components/optimization_guide/core/optimization_guide_features.h"
#include "components/optimization_guide/core/optimization_guide_prefs.h"
#include "components/sync_preferences/testing_pref_service_syncable.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace optimization_guide {
namespace {
const proto::OptimizationTarget kTestOptimizationTargetFoo = …;
const proto::OptimizationTarget kTestOptimizationTargetBar = …;
const char kTestLocaleFoo[] = …;
const char kTestLocaleBar[] = …;
proto::ModelCacheKey CreateModelCacheKey(const std::string& locale) { … }
}
class ModelStoreMetadataEntryTest : public testing::Test { … };
TEST_F(ModelStoreMetadataEntryTest, PurgeAllMetadata) { … }
TEST_F(ModelStoreMetadataEntryTest, PurgeExpiredMetadata) { … }
TEST_F(ModelStoreMetadataEntryTest, PurgeMetadataInKillSwitch) { … }
}