#include "components/optimization_guide/core/model_execution/on_device_model_metadata.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/functional/bind.h"
#include "base/test/task_environment.h"
#include "base/test/test.pb.h"
#include "components/optimization_guide/core/optimization_guide_constants.h"
#include "components/optimization_guide/core/optimization_guide_util.h"
#include "components/optimization_guide/proto/features/compose.pb.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace optimization_guide {
namespace {
const struct OnDeviceBaseModelSpec kModelSpec = …;
const struct OnDeviceBaseModelSpec kModelSpecNew = …;
class OnDeviceModelMetadataTest : public testing::Test { … };
TEST_F(OnDeviceModelMetadataTest, EmptyFilePath) { … }
TEST_F(OnDeviceModelMetadataTest, ConfigFileNotInProvidedPath) { … }
TEST_F(OnDeviceModelMetadataTest, ValidConfig) { … }
TEST_F(OnDeviceModelMetadataTest, ResolvesToLastLoad) { … }
TEST_F(OnDeviceModelMetadataTest, NullStateChangeResets) { … }
}
}