#include "chrome/browser/web_applications/isolated_web_apps/test/iwa_test_server_configurator.h"
#include <string>
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/web_applications/isolated_web_apps/isolated_web_app_url_info.h"
#include "services/network/test/test_url_loader_factory.h"
#include "services/network/test/test_utils.h"
namespace {
blink::mojom::ManifestPtr CreateDefaultManifest(const GURL& application_url) { … }
void ConfigureFakeWebContentsManager(
const web_package::SignedWebBundleId& id,
web_app::FakeWebContentsManager& fake_web_contents_manager) { … }
}
namespace web_app {
IwaTestServerConfigurator::IwaTestServerConfigurator() = default;
IwaTestServerConfigurator::~IwaTestServerConfigurator() = default;
void IwaTestServerConfigurator::AddUpdateManifest(std::string relative_url,
std::string manifest_value) { … }
void IwaTestServerConfigurator::AddSignedWebBundle(
std::string relative_url,
web_app::TestSignedWebBundle web_bundle) { … }
void IwaTestServerConfigurator::ConfigureURLLoader(
const GURL& base_url,
network::TestURLLoaderFactory& test_factory,
FakeWebContentsManager& fake_web_contents_manager) { … }
}