#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;
namespace {
constexpr const char* kValidSearchSchemes[] = …;
constexpr const char* kValidSearchQueryParams[] = …;
bool IsHomePage(const std::string& url) { … }
bool IsSearch(const std::string& url) { … }
bool StartsWithBaseURL(const std::string& url) { … }
}
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) { … }