src/lib/url/gurl_unittest.cc
// Different types of URLs should be handled differently, and handed off to
// different canonicalizers.
Different types of URLs should be handled differently, and handed off to
different canonicalizers.
Different types of URLs should be handled differently and handed off to different canonicalizers .
TEST(GURLTest, Types) {
  EXPECT_EQ("something:///HOSTNAME.com/", TypesTestCase("something:///HOSTNAME.com/"));
  EXPECT_EQ("http://hostname.com/", TypesTestCase("http:HOSTNAME.com"));
  EXPECT_EQ("http://hostname.com/", TypesTestCase("http:/HOSTNAME.com"));
  EXPECT_EQ("http://hostname.com/", TypesTestCase("http://HOSTNAME.com"));
  EXPECT_EQ("http://hostname.com/", TypesTestCase("http:///HOSTNAME.com"));
}
TEST ( GURLTest , Types ) { EXPECT_EQ ( " " , TypesTestCase ( " " ) ) ; EXPECT_EQ ( " " , TypesTestCase ( " " ) ) ; EXPECT_EQ ( " " , TypesTestCase ( " " ) ) ; EXPECT_EQ ( " " , TypesTestCase ( " " ) ) ; EXPECT_EQ ( " " , TypesTestCase ( " " ) ) ; }
Different types of URLs should be handled differently, and handed off to
different canonicalizers.
Different types of URLs should be handled differently and handed off to different canonicalizers .
// URLs with unknown schemes should be treated as path URLs, even when they // have things like "://". // Conversely, URLs with known schemes should always trigger standard URL // handling.