#include "components/dom_distiller/core/fake_distiller.h"
#include <utility>
#include "base/auto_reset.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/task/single_thread_task_runner.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace dom_distiller {
namespace test {
MockDistillerFactory::MockDistillerFactory() = default;
MockDistillerFactory::~MockDistillerFactory() = default;
FakeDistiller::FakeDistiller(bool execute_callback)
: … { … }
FakeDistiller::FakeDistiller(bool execute_callback,
base::OnceClosure distillation_initiated_callback)
: … { … }
FakeDistiller::~FakeDistiller() { … }
void FakeDistiller::DistillPage(
const GURL& url,
std::unique_ptr<DistillerPage> distiller_page,
DistillationFinishedCallback article_callback,
const DistillationUpdateCallback& page_callback) { … }
void FakeDistiller::RunDistillerCallback(
std::unique_ptr<DistilledArticleProto> proto) { … }
void FakeDistiller::RunDistillerUpdateCallback(
const ArticleDistillationUpdate& update) { … }
void FakeDistiller::PostDistillerCallback(
std::unique_ptr<DistilledArticleProto> proto) { … }
void FakeDistiller::RunDistillerCallbackInternal(
std::unique_ptr<DistilledArticleProto> proto) { … }
}
}