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

Unified Diff: tools/grit/grit/format/resource_map_unittest.py

Issue 2608763002: Move GritResourceMap arrays (~12,500 bytes) to read-only data segment (Closed)
Patch Set: Update unit tests to match new struct Created 4 years 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
« no previous file with comments | « tools/grit/grit/format/resource_map.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/grit/grit/format/resource_map_unittest.py
diff --git a/tools/grit/grit/format/resource_map_unittest.py b/tools/grit/grit/format/resource_map_unittest.py
index ecc997a180675ab38dc887c768b9bb3b395cddb7..31d481e9a32c40e92c181ba04e1c376b947e90a6 100755
--- a/tools/grit/grit/format/resource_map_unittest.py
+++ b/tools/grit/grit/format/resource_map_unittest.py
@@ -58,7 +58,7 @@ class FormatResourceMapUnittest(unittest.TestCase):
#ifndef GRIT_RESOURCE_MAP_STRUCT_
#define GRIT_RESOURCE_MAP_STRUCT_
struct GritResourceMap {
- const char* const name;
+ const char* name;
int value;
};
#endif // GRIT_RESOURCE_MAP_STRUCT_
@@ -150,7 +150,7 @@ const size_t kTheRcHeaderSize = arraysize(kTheRcHeader);''', output)
#ifndef GRIT_RESOURCE_MAP_STRUCT_
#define GRIT_RESOURCE_MAP_STRUCT_
struct GritResourceMap {
- const char* const name;
+ const char* name;
int value;
};
#endif // GRIT_RESOURCE_MAP_STRUCT_
@@ -235,7 +235,7 @@ const size_t kTheRcHeaderSize = arraysize(kTheRcHeader);''', output)
#ifndef GRIT_RESOURCE_MAP_STRUCT_
#define GRIT_RESOURCE_MAP_STRUCT_
struct GritResourceMap {
- const char* const name;
+ const char* name;
int value;
};
#endif // GRIT_RESOURCE_MAP_STRUCT_
@@ -313,7 +313,7 @@ const size_t kTheRcHeaderSize = arraysize(kTheRcHeader);''', output)
#ifndef GRIT_RESOURCE_MAP_STRUCT_
#define GRIT_RESOURCE_MAP_STRUCT_
struct GritResourceMap {
- const char* const name;
+ const char* name;
int value;
};
#endif // GRIT_RESOURCE_MAP_STRUCT_
« no previous file with comments | « tools/grit/grit/format/resource_map.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698