#include "components/dom_distiller/content/browser/test/test_util.h"
#include "base/base_paths.h"
#include "base/files/file_path.h"
#include "base/path_service.h"
#include "base/strings/strcat.h"
#include "build/build_config.h"
#include "components/dom_distiller/core/viewer.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/browser_test_utils.h"
#include "net/test/embedded_test_server/controllable_http_response.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/base/resource/resource_scale_factor.h"
namespace dom_distiller {
namespace {
FilePath;
PathService;
StrAppend;
JsReplace;
Referrer;
WaitForLoadStop;
WebContents;
ControllableHttpResponse;
EmbeddedTestServer;
GetArticleTemplateHtml;
const char* kDistilledPagePath = …;
void SetUpTestServerWithoutStarting(EmbeddedTestServer* server) { … }
}
FakeDistilledPage::FakeDistilledPage(EmbeddedTestServer* server)
: … { … }
FakeDistilledPage::~FakeDistilledPage() = default;
void FakeDistilledPage::AppendScriptFile(const std::string& script_file) { … }
void FakeDistilledPage::Load(EmbeddedTestServer* server,
WebContents* web_contents) { … }
std::string FakeDistilledPage::GetPageHtmlWithScripts() { … }
void SetUpTestServer(EmbeddedTestServer* server) { … }
std::unique_ptr<FakeDistilledPage> SetUpTestServerWithDistilledPage(
EmbeddedTestServer* server) { … }
void AddComponentsResources() { … }
}