OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/google_apis/drive_api_util.h" |
| 6 |
| 7 #include "testing/gtest/include/gtest/gtest.h" |
| 8 |
| 9 namespace google_apis { |
| 10 namespace drive { |
| 11 namespace util { |
| 12 |
| 13 TEST(DriveApiUtilTest, EscapeQueryStringValue) { |
| 14 EXPECT_EQ("abcde", EscapeQueryStringValue("abcde")); |
| 15 EXPECT_EQ("\\'", EscapeQueryStringValue("'")); |
| 16 EXPECT_EQ("\\'abcde\\'", EscapeQueryStringValue("'abcde'")); |
| 17 } |
| 18 |
| 19 } // namespace util |
| 20 } // namespace drive |
| 21 } // namespace google_apis |
OLD | NEW |