chromium/net/dns/dns_hosts_unittest.cc

// Copyright 2012 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/40284755): Remove this and spanify to fix the errors.
#pragma allow_unsafe_buffers
#endif

#include "net/dns/dns_hosts.h"

#include "base/test/metrics/histogram_tester.h"
#include "base/trace_event/memory_usage_estimator.h"
#include "build/build_config.h"
#include "net/base/cronet_buildflags.h"
#include "net/base/ip_address.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace net {

namespace {

struct ExpectedHostsEntry {};

void PopulateExpectedHosts(const ExpectedHostsEntry* entries,
                           size_t num_entries,
                           DnsHosts* expected_hosts_out) {}

TEST(DnsHostsTest, ParseHosts) {}

TEST(DnsHostsTest, ParseHosts_CommaIsToken) {}

TEST(DnsHostsTest, ParseHosts_CommaIsWhitespace) {}

// Test that the right comma mode is used on each platform.
TEST(DnsHostsTest, ParseHosts_CommaModeByPlatform) {}

TEST(DnsHostsTest, HostsParser_Empty) {}

TEST(DnsHostsTest, HostsParser_OnlyWhitespace) {}

TEST(DnsHostsTest, HostsParser_EndsWithNothing) {}

TEST(DnsHostsTest, HostsParser_EndsWithWhitespace) {}

TEST(DnsHostsTest, HostsParser_EndsWithComment) {}

TEST(DnsHostsTest, HostsParser_EndsWithNewline) {}

TEST(DnsHostsTest, HostsParser_EndsWithTwoNewlines) {}

TEST(DnsHostsTest, HostsParser_EndsWithNewlineAndWhitespace) {}

TEST(DnsHostsTest, HostsParser_EndsWithNewlineAndToken) {}

}  // namespace

}  // namespace net