chromium/extensions/common/manifest_handlers/externally_connectable_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.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "extensions/common/manifest_handlers/externally_connectable.h"

#include <stddef.h>

#include <algorithm>

#include "extensions/common/error_utils.h"
#include "extensions/common/manifest_constants.h"
#include "extensions/common/manifest_test.h"
#include "extensions/common/permissions/permissions_data.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

ElementsAre;

namespace extensions {

errors;

class ExternallyConnectableTest : public ManifestTest {};

TEST_F(ExternallyConnectableTest, IDsAndMatches) {}

TEST_F(ExternallyConnectableTest, IDs) {}

TEST_F(ExternallyConnectableTest, Matches) {}

TEST_F(ExternallyConnectableTest, MatchesWithTlsChannelId) {}

TEST_F(ExternallyConnectableTest, AllIDs) {}

TEST_F(ExternallyConnectableTest, IdCanConnect) {}

TEST_F(ExternallyConnectableTest, ErrorWrongFormat) {}

TEST_F(ExternallyConnectableTest, ErrorBadID) {}

TEST_F(ExternallyConnectableTest, ErrorBadMatches) {}

TEST_F(ExternallyConnectableTest, AllURLs) {}

TEST_F(ExternallyConnectableTest, WildcardHost) {}

TEST_F(ExternallyConnectableTest, TLD) {}

TEST_F(ExternallyConnectableTest, WarningNothingSpecified) {}

TEST_F(ExternallyConnectableTest, WarningUnusedAcceptsTlsChannelId) {}

// Tests that the deprecated externally_connectable.all_urls permission doesn't
// trigger a warning for an extension that requests it.
// TODO(crbug.com/40864987): Remove this test when we remove the
// externally_connectable.all_urls permission.
TEST_F(ExternallyConnectableTest, DeprecatedAllUrlsPermission) {}

}  // namespace extensions