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

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

Issue 14013005: Move EscapeQueryStringValue to drive_api_util. (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
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
new file mode 100644
index 0000000000000000000000000000000000000000..0577c6c106496ebfc70c4e183895c41492be847b
--- /dev/null
+++ b/chrome/browser/google_apis/drive_api_util_unittest.cc
@@ -0,0 +1,21 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/google_apis/drive_api_util.h"
+
+#include "testing/gtest/include/gtest/gtest.h"
+
+namespace google_apis {
+namespace drive {
+namespace util {
+
+TEST(DriveApiUtilTest, EscapeQueryStringValue) {
+ EXPECT_EQ("abcde", EscapeQueryStringValue("abcde"));
+ EXPECT_EQ("\\'", EscapeQueryStringValue("'"));
+ EXPECT_EQ("\\'abcde\\'", EscapeQueryStringValue("'abcde'"));
+}
+
+} // namespace util
+} // namespace drive
+} // namespace google_apis

Powered by Google App Engine
This is Rietveld 408576698