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

Unified Diff: chrome/common/extensions/update_manifest_unittest.cc

Issue 635623003: Cleanup: Better constify some strings in chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix mac Created 6 years, 2 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/common/extensions/update_manifest_unittest.cc
diff --git a/chrome/common/extensions/update_manifest_unittest.cc b/chrome/common/extensions/update_manifest_unittest.cc
index 75ee71c90008e0fdcb7adf7f311853d45f433cd5..36ea5d5b50753490f96aaa31accf70951948a35d 100644
--- a/chrome/common/extensions/update_manifest_unittest.cc
+++ b/chrome/common/extensions/update_manifest_unittest.cc
@@ -7,7 +7,7 @@
#include "libxml/globals.h"
#include "testing/gtest/include/gtest/gtest.h"
-static const char* kValidXml =
+static const char kValidXml[] =
"<?xml version='1.0' encoding='UTF-8'?>"
"<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>"
" <app appid='12345'>"
@@ -16,7 +16,7 @@ static const char* kValidXml =
" </app>"
"</gupdate>";
-const char *valid_xml_with_hash =
+static const char valid_xml_with_hash[] =
"<?xml version='1.0' encoding='UTF-8'?>"
"<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>"
" <app appid='12345'>"
@@ -26,7 +26,7 @@ const char *valid_xml_with_hash =
" </app>"
"</gupdate>";
-static const char* kMissingAppId =
+static const char kMissingAppId[] =
"<?xml version='1.0'?>"
"<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>"
" <app>"
@@ -35,7 +35,7 @@ static const char* kMissingAppId =
" </app>"
"</gupdate>";
-static const char* kInvalidCodebase =
+static const char kInvalidCodebase[] =
"<?xml version='1.0'?>"
"<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>"
" <app appid='12345' status='ok'>"
@@ -44,7 +44,7 @@ static const char* kInvalidCodebase =
" </app>"
"</gupdate>";
-static const char* kMissingVersion =
+static const char kMissingVersion[] =
"<?xml version='1.0'?>"
"<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>"
" <app appid='12345' status='ok'>"
@@ -52,7 +52,7 @@ static const char* kMissingVersion =
" </app>"
"</gupdate>";
-static const char* kInvalidVersion =
+static const char kInvalidVersion[] =
"<?xml version='1.0'?>"
"<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>"
" <app appid='12345' status='ok'>"
@@ -61,7 +61,7 @@ static const char* kInvalidVersion =
" </app>"
"</gupdate>";
-static const char* kUsesNamespacePrefix =
+static const char kUsesNamespacePrefix[] =
"<?xml version='1.0' encoding='UTF-8'?>"
"<g:gupdate xmlns:g='http://www.google.com/update2/response' protocol='2.0'>"
" <g:app appid='12345'>"
@@ -72,7 +72,7 @@ static const char* kUsesNamespacePrefix =
// Includes unrelated <app> tags from other xml namespaces - this should
// not cause problems.
-static const char* kSimilarTagnames =
+static const char kSimilarTagnames[] =
"<?xml version='1.0' encoding='UTF-8'?>"
"<gupdate xmlns='http://www.google.com/update2/response'"
" xmlns:a='http://a' protocol='2.0'>"
@@ -85,7 +85,7 @@ static const char* kSimilarTagnames =
"</gupdate>";
// Includes a <daystart> tag.
-static const char* kWithDaystart =
+static const char kWithDaystart[] =
"<?xml version='1.0' encoding='UTF-8'?>"
"<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>"
" <daystart elapsed_seconds='456' />"
@@ -96,7 +96,7 @@ static const char* kWithDaystart =
"</gupdate>";
// Indicates no updates available - this should not be a parse error.
-static const char* kNoUpdate =
+static const char kNoUpdate[] =
"<?xml version='1.0' encoding='UTF-8'?>"
"<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>"
" <app appid='12345'>"
@@ -105,7 +105,7 @@ static const char* kNoUpdate =
"</gupdate>";
// Includes two <app> tags, one with an error.
-static const char* kTwoAppsOneError =
+static const char kTwoAppsOneError[] =
"<?xml version='1.0' encoding='UTF-8'?>"
"<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>"
" <app appid='aaaaaaaa' status='error-unknownApplication'>"
« no previous file with comments | « chrome/common/extensions/manifest_tests/extension_manifests_platformapp_unittest.cc ('k') | chrome/common/mac/mock_launchd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698