chromium/components/google/core/common/google_util_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.

#include "components/google/core/common/google_util.h"

#include "base/command_line.h"
#include "base/strings/strcat.h"
#include "components/google/core/common/google_switches.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
#include "url/url_constants.h"

IsGoogleDomainUrl;

// Helpers --------------------------------------------------------------------

namespace {

constexpr const char* kValidSearchSchemes[] =;

constexpr const char* kValidSearchQueryParams[] =;

// These functions merely provide brevity in the callers.

bool IsHomePage(const std::string& url) {}

bool IsSearch(const std::string& url) {}

bool StartsWithBaseURL(const std::string& url) {}

}  // namespace

// Actual tests ---------------------------------------------------------------

TEST(GoogleUtilTest, GoodHomePagesNonSecure) {}

TEST(GoogleUtilTest, GoodHomePagesSecure) {}

TEST(GoogleUtilTest, BadHomePages) {}

TEST(GoogleUtilTest, GoodSearches) {}

TEST(GoogleUtilTest, BadSearches) {}

TEST(GoogleUtilTest, GoogleDomains) {}

TEST(GoogleUtilTest, GoogleBaseURLNotSpecified) {}

TEST(GoogleUtilTest, GoogleBaseURLDisallowQuery) {}

TEST(GoogleUtilTest, GoogleBaseURLDisallowRef) {}

TEST(GoogleUtilTest, GoogleBaseURLFixup) {}

TEST(GoogleUtilTest, YoutubeDomains) {}

TEST(GoogleUtilTest, GoogleAssociatedDomains) {}

TEST(GoogleUtilTest, AppendToAsyncQueryParam) {}

TEST(GoogleUtilTest, GoogleSearchMode) {}