#include "components/segmentation_platform/internal/database/cached_result_writer.h"
#include "base/test/simple_test_clock.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/testing_pref_service.h"
#include "components/segmentation_platform/internal/constants.h"
#include "components/segmentation_platform/internal/database/client_result_prefs.h"
#include "components/segmentation_platform/internal/metadata/metadata_utils.h"
#include "components/segmentation_platform/internal/metadata/metadata_writer.h"
#include "components/segmentation_platform/internal/platform_options.h"
#include "components/segmentation_platform/internal/post_processor/post_processing_test_utils.h"
#include "components/segmentation_platform/public/config.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
_;
Invoke;
Return;
SaveArg;
namespace segmentation_platform {
class CachedResultWriterTest : public testing::Test { … };
TEST_F(CachedResultWriterTest, UpdatePrefsIfResultUnavailable) { … }
TEST_F(CachedResultWriterTest, UpdatePrefsIfForceRefreshResult) { … }
TEST_F(CachedResultWriterTest, UpdatePrefsIfModelIsUpdated) { … }
TEST_F(CachedResultWriterTest, UpdatePrefsIfExpiredResult) { … }
TEST_F(CachedResultWriterTest, MarkResultAsUsed) { … }
TEST_F(CachedResultWriterTest, CacheModelExecution) { … }
TEST_F(CachedResultWriterTest, CacheModelExecutionOverwritesAnyPrefs) { … }
}