#include "chrome/browser/web_applications/isolated_web_apps/signed_web_bundle_metadata.h"
#include <string_view>
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/test/gmock_expected_support.h"
#include "base/test/test_future.h"
#include "base/threading/thread_restrictions.h"
#include "chrome/browser/web_applications/isolated_web_apps/isolated_web_app_source.h"
#include "chrome/browser/web_applications/isolated_web_apps/isolated_web_app_storage_location.h"
#include "chrome/browser/web_applications/isolated_web_apps/isolated_web_app_trust_checker.h"
#include "chrome/browser/web_applications/isolated_web_apps/test/test_signed_web_bundle_builder.h"
#include "chrome/browser/web_applications/test/fake_web_app_provider.h"
#include "chrome/browser/web_applications/test/fake_web_contents_manager.h"
#include "chrome/browser/web_applications/test/web_app_icon_test_utils.h"
#include "chrome/browser/web_applications/test/web_app_install_test_utils.h"
#include "chrome/browser/web_applications/test/web_app_test.h"
#include "chrome/common/url_constants.h"
#include "components/web_package/test_support/signed_web_bundles/web_bundle_signer.h"
#include "components/webapps/browser/installable/installable_logging.h"
#include "components/webapps/browser/web_contents/web_app_url_loader.h"
#include "services/data_decoder/public/cpp/test_support/in_process_data_decoder.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/origin.h"
namespace web_app {
namespace {
ErrorIs;
ValueIs;
AllOf;
Eq;
HasSubstr;
Property;
constexpr std::string_view kIconPath = …;
blink::mojom::ManifestPtr CreateDefaultManifest(const GURL& application_url,
const base::Version version) { … }
class SignedWebBundleMetadataTest : public WebAppTest { … };
TEST_F(SignedWebBundleMetadataTest, Succeeds) { … }
TEST_F(SignedWebBundleMetadataTest, FailsWhenWebBundleIdNotTrusted) { … }
TEST_F(SignedWebBundleMetadataTest, FailsWhenBundleInvalid) { … }
}
}