chromium/components/url_matcher/url_util_unittest.cc

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

#include "components/url_matcher/url_util.h"

#include <memory>

#include "base/test/scoped_feature_list.h"
#include "base/values.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
#include "url/url_features.h"

namespace url_matcher {
namespace util {

namespace {

GURL GetEmbeddedURL(const std::string& url) {}

// Parameters for the FilterToComponents test.
struct FilterTestParams {};

// Prints better debug information for Valgrind. Without this function, a
// generic one will print the raw bytes in FilterTestParams, which due to some
// likely padding will access uninitialized memory.
void PrintTo(const FilterTestParams& params, std::ostream* os) {}

bool MatchFilters(const std::vector<std::string>& patterns,
                  const std::string& url) {}

class FilterToComponentsTest : public testing::TestWithParam<FilterTestParams> {};

class OnlyWildcardTest
    : public testing::TestWithParam<std::tuple<std::string /* scheme */,
                                               std::string /* opt_host */,
                                               std::string /* port */,
                                               std::string /* path */,
                                               std::string /* query*/>> {};

}  // namespace

TEST(URLUtilTest, Normalize) {}

TEST(URLUtilTest, GetEmbeddedURLAmpCache) {}

TEST(URLUtilTest, GetEmbeddedURLGoogleAmpViewer) {}

TEST(URLUtilTest, GetEmbeddedURLGoogleWebCache) {}

TEST(URLUtilTest, GetEmbeddedURLTranslate) {}

INSTANTIATE_TEST_SUITE_P();

TEST_P(OnlyWildcardTest, OnlyWildcard) {}

// Non-special URLs behavior is affected by the
// StandardCompliantNonSpecialSchemeURLParsing feature.
// See https://crbug.com/40063064 for details.
class URLUtilParamTest : public ::testing::TestWithParam<bool> {};

TEST_P(URLUtilParamTest, SingleFilter) {}

TEST(URLUtilTest, MultipleFilters) {}

TEST_P(URLUtilParamTest, BasicCoverage) {}

INSTANTIATE_TEST_SUITE_P();

INSTANTIATE_TEST_SUITE_P();

TEST_P(FilterToComponentsTest, FilterToComponents) {}

}  // namespace util
}  // namespace url_matcher