#include "components/optimization_guide/core/model_execution/test/test_on_device_model_component_state_manager.h"
#include "base/check.h"
#include "base/files/file_path.h"
#include "base/functional/callback_forward.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_refptr.h"
#include "base/task/sequenced_task_runner.h"
#include "base/version.h"
namespace optimization_guide {
struct TestOnDeviceModelComponentStateManager::State
: public base::RefCounted<TestOnDeviceModelComponentStateManager::State> { … };
class FakeOnDeviceModelComponentStateManagerDelegate
: public OnDeviceModelComponentStateManager::Delegate { … };
TestOnDeviceModelComponentStateManager::TestOnDeviceModelComponentStateManager(
PrefService* local_state)
: … { … }
TestOnDeviceModelComponentStateManager::
~TestOnDeviceModelComponentStateManager() { … }
scoped_refptr<OnDeviceModelComponentStateManager>
TestOnDeviceModelComponentStateManager::get() { … }
void TestOnDeviceModelComponentStateManager::Reset() { … }
bool TestOnDeviceModelComponentStateManager::IsInstallerRegistered() const { … }
bool TestOnDeviceModelComponentStateManager::WasComponentUninstalled() const { … }
void TestOnDeviceModelComponentStateManager::SetFreeDiskSpace(
int64_t free_space_bytes) { … }
void TestOnDeviceModelComponentStateManager::SetReady(
const base::FilePath& install_dir,
const std::string& version) { … }
}