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

Unified Diff: chrome/browser/google_apis/drive_api_util_unittest.cc

Issue 14352007: Escape backslash (\x5C) for string value of search query. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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/google_apis/drive_api_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/google_apis/drive_api_util_unittest.cc
diff --git a/chrome/browser/google_apis/drive_api_util_unittest.cc b/chrome/browser/google_apis/drive_api_util_unittest.cc
index 0577c6c106496ebfc70c4e183895c41492be847b..d1d1d50d962e0202b097a5c279a46ccb3b813533 100644
--- a/chrome/browser/google_apis/drive_api_util_unittest.cc
+++ b/chrome/browser/google_apis/drive_api_util_unittest.cc
@@ -14,6 +14,8 @@ TEST(DriveApiUtilTest, EscapeQueryStringValue) {
EXPECT_EQ("abcde", EscapeQueryStringValue("abcde"));
EXPECT_EQ("\\'", EscapeQueryStringValue("'"));
EXPECT_EQ("\\'abcde\\'", EscapeQueryStringValue("'abcde'"));
+ EXPECT_EQ("\\\\", EscapeQueryStringValue("\\"));
+ EXPECT_EQ("\\\\\\'", EscapeQueryStringValue("\\'"));
}
} // namespace util
« no previous file with comments | « chrome/browser/google_apis/drive_api_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698