chromium/components/dom_distiller/content/browser/test/test_util.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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;

// The path of the distilled page URL relative to the EmbeddedTestServer's base
// directory. This file's contents are generated at test runtime; it is not a
// real file in the repository.
const char* kDistilledPagePath =;

void SetUpTestServerWithoutStarting(EmbeddedTestServer* server) {}

}  // namespace

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() {}

}  // namespace dom_distiller