Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(508)

Unified Diff: chrome/browser/search_engines/template_url_unittest.cc

Issue 159707: Fixes bug in creating search terms where we weren't unescaping... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/search_engines/template_url.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search_engines/template_url_unittest.cc
===================================================================
--- chrome/browser/search_engines/template_url_unittest.cc (revision 22055)
+++ chrome/browser/search_engines/template_url_unittest.cc (working copy)
@@ -144,6 +144,10 @@
{"%e4%bd%a05%e5%a5%bd+to+you", L"\x4f60\x35\x597d to you"},
// Undecodable input should stay escaped.
{"%91%01+abcd", L"%91%01 abcd"},
+ // Make sure we convert %2B to +.
+ {"C%2B%2B", L"C++"},
+ // C%2B is escaped as C%252B, make sure we unescape it properly.
+ {"C%252B", L"C%2B"},
};
TemplateURL t_url;
« no previous file with comments | « chrome/browser/search_engines/template_url.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698