#include <optional>
#include "base/feature_list.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "build/build_config.h"
#include "components/webapps/browser/features.h"
#include "components/webapps/browser/installable/installable_logging.h"
#include "components/webapps/browser/installable/installable_manager.h"
#include "content/public/common/content_features.h"
#include "content/public/test/test_renderer_host.h"
#include "content/public/test/web_contents_tester.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/common/manifest/manifest_util.h"
#include "third_party/blink/public/mojom/favicon/favicon_url.mojom.h"
#include "third_party/blink/public/mojom/manifest/display_mode.mojom.h"
#include "third_party/blink/public/mojom/manifest/manifest.mojom.h"
namespace webapps {
IconPurpose;
class InstallableEvaluatorUnitTest : public content::RenderViewHostTestHarness { … };
TEST_F(InstallableEvaluatorUnitTest, DoNotCheck) { … }
class InstallableEvaluatorCriteriaUnitTest
: public InstallableEvaluatorUnitTest,
public testing::WithParamInterface<InstallableCriteria> { … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(InstallableEvaluatorCriteriaUnitTest, UnsetManifest) { … }
TEST_P(InstallableEvaluatorCriteriaUnitTest, ManifestParsingOrNetworkError) { … }
TEST_P(InstallableEvaluatorCriteriaUnitTest, CheckStartUrl) { … }
TEST_P(InstallableEvaluatorCriteriaUnitTest, CheckNameOrShortName) { … }
TEST_F(InstallableEvaluatorUnitTest, ManifestSupportsImagePNG) { … }
TEST_F(InstallableEvaluatorUnitTest, ManifestSupportsImageSVG) { … }
TEST_F(InstallableEvaluatorUnitTest, ManifestSupportsImageWebP) { … }
TEST_F(InstallableEvaluatorUnitTest, ManifestRequiresPurposeAny) { … }
TEST_F(InstallableEvaluatorUnitTest, ManifestRequiresIconSize) { … }
TEST_F(InstallableEvaluatorUnitTest, ManifestDisplayModes) { … }
TEST_F(InstallableEvaluatorUnitTest, ManifestDisplayOverride) { … }
TEST_F(InstallableEvaluatorUnitTest, FallbackToBrowser) { … }
TEST_F(InstallableEvaluatorUnitTest, SupportWindowControlsOverlay) { … }
class InstallableEvaluatorUnitTest_Tabbed
: public InstallableEvaluatorUnitTest { … };
TEST_F(InstallableEvaluatorUnitTest_Tabbed, SupportTabbed) { … }
TEST_F(InstallableEvaluatorUnitTest, ValidManifestValidMetadata) { … }
TEST_F(InstallableEvaluatorUnitTest, ValidMetadata) { … }
TEST_F(InstallableEvaluatorUnitTest, ValidMetadataRootScopePage) { … }
TEST_F(InstallableEvaluatorUnitTest, ImplicitIcons) { … }
}