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

Unified Diff: ui/base/ui_base_tests.gyp

Issue 537063002: Eliminate silently letting errors pass on pak loading. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ios finally works Created 6 years, 3 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: ui/base/ui_base_tests.gyp
diff --git a/ui/base/ui_base_tests.gyp b/ui/base/ui_base_tests.gyp
index d95c0de5d40ea2dc77785716146a00fac8841421..f4302caa0dc1cf287b8f440ae61c11176f1ac56e 100644
--- a/ui/base/ui_base_tests.gyp
+++ b/ui/base/ui_base_tests.gyp
@@ -112,6 +112,26 @@
'includes': [ '../../build/copy_test_data_ios.gypi' ],
},
],
+ 'postbuilds': [
+ # The iOS resource bundle code hard-codes the names of the 100% and
+ # 200% paks. This copying allows locale.pak to stand in for them.
+ {
+ 'postbuild_name': 'Copy chrome_100_percent for test',
+ 'action': [
+ 'cp',
+ '${BUILT_PRODUCTS_DIR}/ui/en.lproj/locale.pak',
+ '${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/chrome_100_percent.pak'
+ ],
+ },
+ {
+ 'postbuild_name': 'Copy chrome_200_percent for test',
+ 'action': [
+ 'cp',
+ '${BUILT_PRODUCTS_DIR}/ui/en.lproj/locale.pak',
+ '${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/chrome_200_percent.pak'
+ ],
+ },
+ ],
}],
['OS == "win"', {
'sources': [

Powered by Google App Engine
This is Rietveld 408576698