summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-05 21:33:46 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-05 21:33:46 +0000
commit4722ab32782838297bf7908b3c06607ca1c9981c (patch)
treeb495224d41f2ca5c62d3ad7ffdcdeabb96a78de7 /base
parentde1d9b4230d475e981f7cd0db8a94875dbf5e31c (diff)
downloadchromium_src-4722ab32782838297bf7908b3c06607ca1c9981c.zip
chromium_src-4722ab32782838297bf7908b3c06607ca1c9981c.tar.gz
chromium_src-4722ab32782838297bf7908b3c06607ca1c9981c.tar.bz2
The RemoveChars utility function requires a NULL-terminated input string, so fix the test accordingly.
TBR=joth BUG=34731 TEST=StringUtilTest.RemoveChars Review URL: http://codereview.chromium.org/578018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38252 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/string_util_unittest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/string_util_unittest.cc b/base/string_util_unittest.cc
index a3585ec..4473cc5 100644
--- a/base/string_util_unittest.cc
+++ b/base/string_util_unittest.cc
@@ -1469,7 +1469,7 @@ TEST(StringUtilTest, HexEncode) {
}
TEST(StringUtilTest, RemoveChars) {
- const char kRemoveChars[] = {'-', '/', '+', '*'};
+ const char* kRemoveChars = "-/+*";
std::string input = "A-+bc/d!*";
EXPECT_TRUE(RemoveChars(input, kRemoveChars, &input));
EXPECT_EQ("Abcd!", input);