chromium/net/base/host_mapping_rules_unittest.cc

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

#include "net/base/host_mapping_rules.h"

#include <string.h>

#include "net/base/host_port_pair.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
#include "url/third_party/mozilla/url_parse.h"
#include "url/url_canon.h"
#include "url/url_util.h"

namespace net {

namespace {

TEST(HostMappingRulesTest, SetRulesFromString) {}

TEST(HostMappingRulesTest, PortSpecificMatching) {}

// Parsing bad rules should silently discard the rule (and never crash).
TEST(HostMappingRulesTest, ParseInvalidRules) {}

TEST(HostMappingRulesTest, RewritesUrl) {}

TEST(HostMappingRulesTest, RewritesUrlToIpv6Literal) {}

TEST(HostMappingRulesTest, RewritesUrlPreservingScheme) {}

TEST(HostMappingRulesTest, RewritesFileUrl) {}

TEST(HostMappingRulesTest, RewritesAnyStandardUrlWithPort) {}

TEST(HostMappingRulesTest, RewritesAnyStandardUrlWithoutPort) {}

TEST(HostMappingRulesTest, IgnoresUnmappedUrls) {}

TEST(HostMappingRulesTest, IgnoresInvalidReplacementUrls) {}

// Remapping to "^NOTFOUND" is documented as a special case for
// MappedHostResolver usage. Ensure that it is handled as invalid as expected.
TEST(HostMappingRulesTest, NotFoundIgnoredAsInvalidUrl) {}

}  // namespace

}  // namespace net