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

Unified Diff: chrome/browser/policy/device_management_service_unittest.cc

Issue 8552002: net: Move UnescapeRule into the net namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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/net/url_fixer_upper.cc ('k') | chrome/browser/safe_browsing/safe_browsing_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/device_management_service_unittest.cc
diff --git a/chrome/browser/policy/device_management_service_unittest.cc b/chrome/browser/policy/device_management_service_unittest.cc
index 34c585ffbeaeebb2df8be94e7f3b271ae777bdb7..00bc701a0981ae55e2106e134bb0d48e9abcc10a 100644
--- a/chrome/browser/policy/device_management_service_unittest.cc
+++ b/chrome/browser/policy/device_management_service_unittest.cc
@@ -247,24 +247,24 @@ class QueryParams {
bool Check(const std::string& name, const std::string& expected_value) {
bool found = false;
for (ParamMap::const_iterator i(params_.begin()); i != params_.end(); ++i) {
- std::string unescaped_name(
- net::UnescapeURLComponent(i->first,
- UnescapeRule::NORMAL |
- UnescapeRule::SPACES |
- UnescapeRule::URL_SPECIAL_CHARS |
- UnescapeRule::CONTROL_CHARS |
- UnescapeRule::REPLACE_PLUS_WITH_SPACE));
+ std::string unescaped_name(net::UnescapeURLComponent(
+ i->first,
+ net::UnescapeRule::NORMAL |
+ net::UnescapeRule::SPACES |
+ net::UnescapeRule::URL_SPECIAL_CHARS |
+ net::UnescapeRule::CONTROL_CHARS |
+ net::UnescapeRule::REPLACE_PLUS_WITH_SPACE));
if (unescaped_name == name) {
if (found)
return false;
found = true;
- std::string unescaped_value(
- net::UnescapeURLComponent(i->second,
- UnescapeRule::NORMAL |
- UnescapeRule::SPACES |
- UnescapeRule::URL_SPECIAL_CHARS |
- UnescapeRule::CONTROL_CHARS |
- UnescapeRule::REPLACE_PLUS_WITH_SPACE));
+ std::string unescaped_value(net::UnescapeURLComponent(
+ i->second,
+ net::UnescapeRule::NORMAL |
+ net::UnescapeRule::SPACES |
+ net::UnescapeRule::URL_SPECIAL_CHARS |
+ net::UnescapeRule::CONTROL_CHARS |
+ net::UnescapeRule::REPLACE_PLUS_WITH_SPACE));
if (unescaped_value != expected_value)
return false;
}
« no previous file with comments | « chrome/browser/net/url_fixer_upper.cc ('k') | chrome/browser/safe_browsing/safe_browsing_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698