EXPECT_EQ("", u.password());
EXPECT_EQ("www.facebook.com", u.host());
EXPECT_EQ(0, u.port());
+ EXPECT_EQ("www.facebook.com", u.authority());
EXPECT_EQ("/hello/world", u.path());
EXPECT_EQ("query", u.query());
EXPECT_EQ("fragment", u.fragment());
EXPECT_EQ("", u.password());
EXPECT_EQ("www.facebook.com", u.host());
EXPECT_EQ(8080, u.port());
+ EXPECT_EQ("www.facebook.com:8080", u.authority());
EXPECT_EQ("/hello/world", u.path());
EXPECT_EQ("query", u.query());
EXPECT_EQ("fragment", u.fragment());
EXPECT_EQ("", u.password());
EXPECT_EQ("127.0.0.1", u.host());
EXPECT_EQ(8080, u.port());
+ EXPECT_EQ("127.0.0.1:8080", u.authority());
EXPECT_EQ("/hello/world", u.path());
EXPECT_EQ("query", u.query());
EXPECT_EQ("fragment", u.fragment());
EXPECT_EQ("", u.password());
EXPECT_EQ("[::1]", u.host());
EXPECT_EQ(8080, u.port());
+ EXPECT_EQ("[::1]:8080", u.authority());
EXPECT_EQ("/hello/world", u.path());
EXPECT_EQ("query", u.query());
EXPECT_EQ("fragment", u.fragment());
EXPECT_EQ("pass", u.password());
EXPECT_EQ("host.com", u.host());
EXPECT_EQ(0, u.port());
+ EXPECT_EQ("user:pass@host.com", u.authority());
EXPECT_EQ("/", u.path());
EXPECT_EQ("", u.query());
EXPECT_EQ("", u.fragment());
EXPECT_EQ("", u.password());
EXPECT_EQ("host.com", u.host());
EXPECT_EQ(0, u.port());
+ EXPECT_EQ("user@host.com", u.authority());
EXPECT_EQ("/", u.path());
EXPECT_EQ("", u.query());
EXPECT_EQ("", u.fragment());
EXPECT_EQ("", u.password());
EXPECT_EQ("host.com", u.host());
EXPECT_EQ(0, u.port());
+ EXPECT_EQ("user@host.com", u.authority());
EXPECT_EQ("/", u.path());
EXPECT_EQ("", u.query());
EXPECT_EQ("", u.fragment());
EXPECT_EQ("pass", u.password());
EXPECT_EQ("host.com", u.host());
EXPECT_EQ(0, u.port());
+ EXPECT_EQ(":pass@host.com", u.authority());
EXPECT_EQ("/", u.path());
EXPECT_EQ("", u.query());
EXPECT_EQ("", u.fragment());
EXPECT_EQ("", u.password());
EXPECT_EQ("host.com", u.host());
EXPECT_EQ(0, u.port());
+ EXPECT_EQ("host.com", u.authority());
EXPECT_EQ("/", u.path());
EXPECT_EQ("", u.query());
EXPECT_EQ("", u.fragment());
EXPECT_EQ("", u.password());
EXPECT_EQ("host.com", u.host());
EXPECT_EQ(0, u.port());
+ EXPECT_EQ("host.com", u.authority());
EXPECT_EQ("/", u.path());
EXPECT_EQ("", u.query());
EXPECT_EQ("", u.fragment());
EXPECT_EQ("", u.password());
EXPECT_EQ("", u.host());
EXPECT_EQ(0, u.port());
+ EXPECT_EQ("", u.authority());
EXPECT_EQ("/etc/motd", u.path());
EXPECT_EQ("", u.query());
EXPECT_EQ("", u.fragment());
EXPECT_EQ("", u.password());
EXPECT_EQ("", u.host());
EXPECT_EQ(0, u.port());
+ EXPECT_EQ("", u.authority());
EXPECT_EQ("/etc/motd", u.path());
EXPECT_EQ("", u.query());
EXPECT_EQ("", u.fragment());
EXPECT_EQ("", u.password());
EXPECT_EQ("etc", u.host());
EXPECT_EQ(0, u.port());
+ EXPECT_EQ("etc", u.authority());
EXPECT_EQ("/motd", u.path());
EXPECT_EQ("", u.query());
EXPECT_EQ("", u.fragment());