| Index: url/gurl_unittest.cc
|
| diff --git a/url/gurl_unittest.cc b/url/gurl_unittest.cc
|
| index dbf2b96a5ee27cc3e126c838cef04b368d3e921a..2b43eab5d0f167237a07f1eaf0c55910d02d2fe8 100644
|
| --- a/url/gurl_unittest.cc
|
| +++ b/url/gurl_unittest.cc
|
| @@ -308,6 +308,19 @@ TEST(GURLTest, Replacements) {
|
| }
|
| }
|
|
|
| +TEST(GURLTest, ClearReplacements) {
|
| + GURL url(" data: one ? two # three ");
|
| + GURL::Replacements repl;
|
| + repl.ClearRef();
|
| + GURL output = url.ReplaceComponents(repl);
|
| +
|
| + EXPECT_EQ("data: one ? two ", output.spec());
|
| +
|
| + GURL importurl(output.spec(), output.parsed_for_possibly_invalid_spec(),
|
| + output.is_valid());
|
| + EXPECT_EQ(importurl, output);
|
| +}
|
| +
|
| TEST(GURLTest, PathForRequest) {
|
| struct TestCase {
|
| const char* input;
|
|
|