chromium/third_party/blink/renderer/modules/manifest/manifest_parser_unittest.cc

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

#include "third_party/blink/renderer/modules/manifest/manifest_parser.h"

#include <stdint.h>

#include <memory>
#include <optional>

#include "base/test/scoped_feature_list.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/common/permissions_policy/permissions_policy.h"
#include "third_party/blink/public/common/safe_url_pattern.h"
#include "third_party/blink/public/mojom/manifest/manifest.mojom-blink.h"
#include "third_party/blink/renderer/platform/testing/runtime_enabled_features_test_helpers.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/weborigin/kurl.h"
#include "third_party/blink/renderer/platform/weborigin/security_origin.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_uchar.h"
#include "third_party/liburlpattern/pattern.h"

namespace blink {

namespace {
bool IsManifestEmpty(const mojom::blink::ManifestPtr& manifest) {}
}  // namespace

class ManifestParserTest : public testing::Test {};

TEST_F(ManifestParserTest, CrashTest) {}

TEST_F(ManifestParserTest, HasComments) {}

TEST_F(ManifestParserTest, EmptyStringNull) {}

TEST_F(ManifestParserTest, ValidNoContentParses) {}

TEST_F(ManifestParserTest, UnrecognizedFieldsIgnored) {}

TEST_F(ManifestParserTest, MultipleErrorsReporting) {}

TEST_F(ManifestParserTest, NameParseRules) {}

TEST_F(ManifestParserTest, DescriptionParseRules) {}

TEST_F(ManifestParserTest, ShortNameParseRules) {}

TEST_F(ManifestParserTest, IdParseRules) {}

TEST_F(ManifestParserTest, StartURLParseRules) {}

TEST_F(ManifestParserTest, ScopeParseRules) {}

TEST_F(ManifestParserTest, DisplayParseRules) {}

TEST_F(ManifestParserTest, DisplayOverrideParseRules) {}

TEST_F(ManifestParserTest, OrientationParseRules) {}

TEST_F(ManifestParserTest, IconsParseRules) {}

TEST_F(ManifestParserTest, ScreenshotsParseRules) {}

TEST_F(ManifestParserTest, ScreenshotFormFactorParseRules) {}

TEST_F(ManifestParserTest, ScreenshotLabelRules) {}

TEST_F(ManifestParserTest, IconSrcParseRules) {}

TEST_F(ManifestParserTest, IconTypeParseRules) {}

TEST_F(ManifestParserTest, IconSizesParseRules) {}

TEST_F(ManifestParserTest, IconPurposeParseRules) {}

TEST_F(ManifestParserTest, ShortcutsParseRules) {}

TEST_F(ManifestParserTest, ShortcutNameParseRules) {}

TEST_F(ManifestParserTest, ShortcutShortNameParseRules) {}

TEST_F(ManifestParserTest, ShortcutDescriptionParseRules) {}

TEST_F(ManifestParserTest, ShortcutUrlParseRules) {}

TEST_F(ManifestParserTest, ShortcutIconsParseRules) {}

TEST_F(ManifestParserTest, FileHandlerParseRules) {}

TEST_F(ManifestParserTest, FileHandlerIconsParseRules) {}

TEST_F(ManifestParserTest, ProtocolHandlerParseRules) {}

TEST_F(ManifestParserTest, UrlHandlerParseRules) {}

TEST_F(ManifestParserTest, ScopeExtensionParseRules) {}

TEST_F(ManifestParserTest, LockScreenParseRules) {}

TEST_F(ManifestParserTest, NoteTakingParseRules) {}

TEST_F(ManifestParserTest, ShareTargetParseRules) {}

TEST_F(ManifestParserTest, ShareTargetUrlTemplateParseRules) {}

TEST_F(ManifestParserTest, RelatedApplicationsParseRules) {}

TEST_F(ManifestParserTest, ParsePreferRelatedApplicationsParseRules) {}

TEST_F(ManifestParserTest, ThemeColorParserRules) {}

TEST_F(ManifestParserTest, BackgroundColorParserRules) {}

TEST_F(ManifestParserTest, GCMSenderIDParseRules) {}

TEST_F(ManifestParserTest, PermissionsPolicyParsesOrigins) {}

TEST_F(ManifestParserTest, PermissionsPolicyParsesSelf) {}

TEST_F(ManifestParserTest, PermissionsPolicyIgnoresSrc) {}

TEST_F(ManifestParserTest, PermissionsPolicyParsesNone) {}

TEST_F(ManifestParserTest, PermissionsPolicyParsesWildcard) {}

TEST_F(ManifestParserTest, PermissionsPolicyEmptyOrigin) {}

TEST_F(ManifestParserTest, PermissionsPolicyAsArray) {}

TEST_F(ManifestParserTest, PermissionsPolicyInvalidType) {}

TEST_F(ManifestParserTest, PermissionsPolicyInvalidAllowlistType) {}

TEST_F(ManifestParserTest, PermissionsPolicyInvalidAllowlistEntry) {}

TEST_F(ManifestParserTest, LaunchHandlerParseRules) {}

TEST_F(ManifestParserTest, TranslationsParseRules) {}

TEST_F(ManifestParserTest, TranslationsStringsParseRules) {}

TEST_F(ManifestParserTest, TabStripParseRules) {}

TEST_F(ManifestParserTest, TabStripHomeTabScopeParseRules) {}

TEST_F(ManifestParserTest, VersionParseRules) {}

}  // namespace blink