chromium/chrome/browser/ui/url_identity_unittest.cc

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

#include "chrome/browser/ui/url_identity.h"

#include <string_view>

#include "chrome/test/base/testing_profile.h"
#include "content/public/test/browser_task_environment.h"
#include "extensions/buildflags/buildflags.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"

#if BUILDFLAG(ENABLE_EXTENSIONS)
#include "chrome/browser/ui/web_applications/test/isolated_web_app_test_utils.h"
#include "chrome/browser/web_applications/test/web_app_install_test_utils.h"
#include "chrome/browser/web_applications/test/web_app_test_utils.h"
#include "components/webapps/common/web_app_id.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/common/extension.h"
#include "extensions/common/extension_builder.h"
#endif  // BUILDFLAG(ENABLE_EXTENSIONS)

Type;
DefaultFormatOptions;
FormatOptions;
TypeSet;
Eq;
Field;

namespace {
struct TestCase {};

constexpr std::string_view kTestIsolatedWebAppUrl =;
constexpr std::string_view kTestIsolatedWebAppName =;
constexpr std::string_view kTestExtensionId =;
}  // namespace

class UrlIdentityTest : public testing::Test {};

TEST_F(UrlIdentityTest, AllowlistedTypesAreAllowed) {}

TEST_F(UrlIdentityTest, DefaultFormatOptionsTest) {}

#if BUILDFLAG(ENABLE_EXTENSIONS)
TEST_F(UrlIdentityTest, ChromeExtensionsOptionsTest) {}

TEST_F(UrlIdentityTest, IsolatedWebAppsOptionsTest) {}

TEST_F(UrlIdentityTest, IsolatedWebAppFallsBackIfNoWebAppProvider) {}
#endif  // BUILDFLAG(ENABLE_EXTENSIONS)

TEST_F(UrlIdentityTest, FileOptionsTest) {}