#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "url/gurl.h"
#include <stddef.h>
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/scoped_feature_list.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl_abstract_tests.h"
#include "url/origin.h"
#include "url/url_canon.h"
#include "url/url_features.h"
#include "url/url_test_utils.h"
namespace url {
namespace {
std::string TypesTestCase(const char* src) { … }
}
TEST(GURLTest, Types) { … }
TEST(GURLTest, Components) { … }
TEST(GURLTest, Empty) { … }
TEST(GURLTest, Copy) { … }
TEST(GURLTest, Assign) { … }
TEST(GURLTest, SelfAssign) { … }
TEST(GURLTest, CopyFileSystem) { … }
TEST(GURLTest, IsValid) { … }
TEST(GURLTest, ExtraSlashesBeforeAuthority) { … }
TEST(GURLTest, ComponentGettersWorkEvenForInvalidURL) { … }
TEST(GURLTest, Resolve) { … }
class GURLTypedTest : public ::testing::TestWithParam<bool> { … };
TEST_P(GURLTypedTest, Resolve) { … }
INSTANTIATE_TEST_SUITE_P(…);
TEST(GURLTest, GetOrigin) { … }
TEST(GURLTest, GetAsReferrer) { … }
TEST(GURLTest, GetWithEmptyPath) { … }
TEST(GURLTest, GetWithoutFilename) { … }
TEST(GURLTest, GetWithoutRef) { … }
TEST(GURLTest, Replacements) { … }
TEST_P(GURLTypedTest, Replacements) { … }
TEST(GURLTypedTest, ClearFragmentOnDataUrl) { … }
TEST(GURLTest, PathForRequest) { … }
TEST(GURLTest, EffectiveIntPort) { … }
TEST(GURLTest, IPAddress) { … }
TEST(GURLTest, HostNoBrackets) { … }
TEST(GURLTest, DomainIs) { … }
TEST(GURLTest, DomainIsTerminatingDotBehavior) { … }
TEST(GURLTest, DomainIsWithFilesystemScheme) { … }
TEST(GURLTest, Newlines) { … }
TEST(GURLTest, IsStandard) { … }
TEST(GURLTest, SchemeIsHTTPOrHTTPS) { … }
TEST(GURLTest, SchemeIsWSOrWSS) { … }
TEST(GURLTest, SchemeIsCryptographic) { … }
TEST(GURLTest, SchemeIsCryptographicStatic) { … }
TEST(GURLTest, SchemeIsBlob) { … }
TEST(GURLTest, SchemeIsLocal) { … }
TEST(GURLTest, ContentForNonStandardURLs) { … }
TEST_P(GURLTypedTest, ContentForNonStandardURLs) { … }
TEST(GURLTest, PathForNonStandardURLs) { … }
TEST_P(GURLTypedTest, PathForNonStandardURLs) { … }
TEST(GURLTest, EqualsIgnoringRef) { … }
TEST(GURLTest, DebugAlias) { … }
TEST(GURLTest, InvalidHost) { … }
TEST(GURLTest, PortZero) { … }
class GURLTestTraits { … };
INSTANTIATE_TYPED_TEST_SUITE_P(…);
}