| Index: net/base/escape_unittest.cc
|
| diff --git a/net/base/escape_unittest.cc b/net/base/escape_unittest.cc
|
| index 90c246a38abc7773d4a28d48c00b6f99d3b39eb2..77d9fc291f7ac2203e195573d3bb60d54db5c959 100644
|
| --- a/net/base/escape_unittest.cc
|
| +++ b/net/base/escape_unittest.cc
|
| @@ -218,6 +218,31 @@ TEST(EscapeTest, UnescapeURLComponent) {
|
| L"Some%20random text %25%2dOK"},
|
| {L"Some%20random text %25%2dOK", UnescapeRule::NORMAL,
|
| L"Some%20random text %25-OK"},
|
| + {L"Some%20random text %25%E2%80", UnescapeRule::NORMAL,
|
| + L"Some%20random text %25\xE2\x80"},
|
| + {L"Some%20random text %25%E2%80OK", UnescapeRule::NORMAL,
|
| + L"Some%20random text %25\xE2\x80OK"},
|
| + {L"Some%20random text %25%E2%80%84OK", UnescapeRule::NORMAL,
|
| + L"Some%20random text %25\xE2\x80\x84OK"},
|
| +
|
| + // BiDi Control characters should not be unescaped.
|
| + {L"Some%20random text %25%D8%9COK", UnescapeRule::NORMAL,
|
| + L"Some%20random text %25%D8%9COK"},
|
| + {L"Some%20random text %25%E2%80%8EOK", UnescapeRule::NORMAL,
|
| + L"Some%20random text %25%E2%80%8EOK"},
|
| + {L"Some%20random text %25%E2%80%8FOK", UnescapeRule::NORMAL,
|
| + L"Some%20random text %25%E2%80%8FOK"},
|
| + {L"Some%20random text %25%E2%80%AAOK", UnescapeRule::NORMAL,
|
| + L"Some%20random text %25%E2%80%AAOK"},
|
| + {L"Some%20random text %25%E2%80%ABOK", UnescapeRule::NORMAL,
|
| + L"Some%20random text %25%E2%80%ABOK"},
|
| + {L"Some%20random text %25%E2%80%AEOK", UnescapeRule::NORMAL,
|
| + L"Some%20random text %25%E2%80%AEOK"},
|
| + {L"Some%20random text %25%E2%81%A6OK", UnescapeRule::NORMAL,
|
| + L"Some%20random text %25%E2%81%A6OK"},
|
| + {L"Some%20random text %25%E2%81%A9OK", UnescapeRule::NORMAL,
|
| + L"Some%20random text %25%E2%81%A9OK"},
|
| +
|
| {L"Some%20random text %25%2dOK", UnescapeRule::SPACES,
|
| L"Some random text %25-OK"},
|
| {L"Some%20random text %25%2dOK", UnescapeRule::URL_SPECIAL_CHARS,
|
|
|