#include "components/optimization_guide/core/mock_optimization_guide_model_executor.h"
#include "base/memory/raw_ptr.h"
#include "components/optimization_guide/core/optimization_guide_model_executor.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace optimization_guide {
MockOptimizationGuideModelExecutor::MockOptimizationGuideModelExecutor() =
default;
MockOptimizationGuideModelExecutor::~MockOptimizationGuideModelExecutor() =
default;
MockSession::MockSession() = default;
MockSession::~MockSession() = default;
MockSessionWrapper::MockSessionWrapper(MockSession* session)
: … { … }
MockSessionWrapper::~MockSessionWrapper() = default;
const optimization_guide::TokenLimits& MockSessionWrapper::GetTokenLimits()
const { … }
void MockSessionWrapper::AddContext(
const google::protobuf::MessageLite& request_metadata) { … }
void MockSessionWrapper::Score(const std::string& text,
OptimizationGuideModelScoreCallback callback) { … }
void MockSessionWrapper::ExecuteModel(
const google::protobuf::MessageLite& request_metadata,
OptimizationGuideModelExecutionResultStreamingCallback callback) { … }
void MockSessionWrapper::GetSizeInTokens(
const std::string& text,
OptimizationGuideModelSizeInTokenCallback callback) { … }
const SamplingParams MockSessionWrapper::GetSamplingParams() const { … }
}