#include "components/optimization_guide/core/model_execution/test/fake_model_assets.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/no_destructor.h"
#include "build/build_config.h"
#include "components/optimization_guide/core/model_execution/feature_keys.h"
#include "components/optimization_guide/core/model_execution/on_device_model_adaptation_loader.h"
#include "components/optimization_guide/core/model_execution/on_device_model_feature_adapter.h"
#include "components/optimization_guide/core/model_execution/test/feature_config_builder.h"
#include "components/optimization_guide/core/optimization_guide_constants.h"
#include "components/optimization_guide/core/optimization_guide_test_util.h"
#include "components/optimization_guide/core/test_model_info_builder.h"
#include "components/optimization_guide/proto/on_device_model_execution_config.pb.h"
#include "services/on_device_model/public/cpp/test_support/fake_service.h"
namespace optimization_guide {
FakeBaseModelAsset::FakeBaseModelAsset() { … }
FakeBaseModelAsset::~FakeBaseModelAsset() = default;
void FakeBaseModelAsset::Write(
std::optional<proto::OnDeviceModelExecutionFeatureConfig> config,
std::optional<proto::OnDeviceModelExecutionFeatureConfig> config2,
std::optional<proto::OnDeviceModelValidationConfig> validation_config) { … }
FakeAdaptationAsset::FakeAdaptationAsset(FakeAdaptationAsset::Content&& content)
: … { … }
FakeAdaptationAsset::~FakeAdaptationAsset() = default;
FakeLanguageModelAsset::FakeLanguageModelAsset() { … }
FakeLanguageModelAsset::~FakeLanguageModelAsset() = default;
FakeSafetyModelAsset::FakeSafetyModelAsset(
proto::FeatureTextSafetyConfiguration&& config)
: … { … }
FakeSafetyModelAsset::FakeSafetyModelAsset(
FakeSafetyModelAsset::Content&& content) { … }
FakeSafetyModelAsset::~FakeSafetyModelAsset() = default;
}