chromium/chrome/browser/net/explicitly_allowed_network_ports_policy_handler_unittest.cc

// Copyright 2021 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/net/explicitly_allowed_network_ports_policy_handler.h"

#include <string>

#include "base/values.h"
#include "chrome/common/pref_names.h"
#include "components/policy/core/browser/policy_error_map.h"
#include "components/policy/core/common/policy_map.h"
#include "components/policy/core/common/policy_types.h"
#include "components/policy/policy_constants.h"
#include "components/prefs/pref_value_map.h"
#include "net/base/port_util.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace policy {

class ExplicitlyAllowedNetworkPortsPolicyHandlerTest : public testing::Test {};

TEST_F(ExplicitlyAllowedNetworkPortsPolicyHandlerTest, Unset) {}

TEST_F(ExplicitlyAllowedNetworkPortsPolicyHandlerTest, Empty) {}

TEST_F(ExplicitlyAllowedNetworkPortsPolicyHandlerTest, Valid) {}

TEST_F(ExplicitlyAllowedNetworkPortsPolicyHandlerTest, NotAList) {}

// Non-string types are removed from the list, but the policy is still applied.
TEST_F(ExplicitlyAllowedNetworkPortsPolicyHandlerTest, MixedTypes) {}

// Invalid strings are removed, but the policy is still applied.
TEST_F(ExplicitlyAllowedNetworkPortsPolicyHandlerTest, InvalidStrings) {}

}  // namespace policy