Index: base/json/json_reader_unittest.cc |
diff --git a/base/json/json_reader_unittest.cc b/base/json/json_reader_unittest.cc |
index 67070fff6dab9dbe8e8464bd26e70230ef80f5a2..a3ec4f72e2f8ae6ee1cc2692d72828f2ed27ec54 100644 |
--- a/base/json/json_reader_unittest.cc |
+++ b/base/json/json_reader_unittest.cc |
@@ -505,7 +505,7 @@ TEST(JSONReaderTest, Reading) { |
EXPECT_EQ("\xf0\x9f\x92\xa9\xf0\x9f\x91\xac", str_val); |
// Test invalid utf16 strings. |
- const char* cases[] = { |
+ const char* const cases[] = { |
"\"\\u123\"", // Invalid scalar. |
"\"\\ud83d\"", // Invalid scalar. |
"\"\\u$%@!\"", // Invalid scalar. |
@@ -627,7 +627,7 @@ TEST(JSONReaderTest, StringOptimizations) { |
// parser implementation against buffer overflow. Best run with DCHECKs so |
// that the one in NextChar fires. |
TEST(JSONReaderTest, InvalidSanity) { |
- const char* invalid_json[] = { |
+ const char* const invalid_json[] = { |
"/* test *", |
"{\"foo\"", |
"{\"foo\":", |