chromium/url/scheme_host_port_unittest.cc

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

#include "url/scheme_host_port.h"

#include <stddef.h>
#include <stdint.h>

#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
#include "url/url_util.h"

namespace {

class SchemeHostPortTest : public testing::Test {};

void ExpectParsedUrlsEqual(const GURL& a, const GURL& b) {}

TEST_F(SchemeHostPortTest, Invalid) {}

TEST_F(SchemeHostPortTest, ExplicitConstruction) {}

TEST_F(SchemeHostPortTest, InvalidConstruction) {}

TEST_F(SchemeHostPortTest, InvalidConstructionWithEmbeddedNulls) {}

TEST_F(SchemeHostPortTest, GURLConstruction) {}

TEST_F(SchemeHostPortTest, Serialization) {}

TEST_F(SchemeHostPortTest, Comparison) {}

// Some schemes have optional authority. Make sure that GURL conversion from
// SchemeHostPort is not opinionated in that regard. For more info, See
// crbug.com/820194, where we considered all SchemeHostPorts with
// SCHEME_WITH_HOST (i.e., without ports) as valid with empty hosts, even though
// most are not (e.g. chrome URLs).
TEST_F(SchemeHostPortTest, EmptyHostGurlConversion) {}

}  // namespace url