summaryrefslogtreecommitdiffstats
path: root/remoting/remoting_webapp_compile.gypi
diff options
context:
space:
mode:
authorkelvinp <kelvinp@chromium.org>2015-05-26 14:32:52 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-26 21:33:31 +0000
commit1a8d5b2da013f3149fe601331125ef8d9205289e (patch)
tree9efbe8e8cb685373324c8441a132b6c3fe7f2c28 /remoting/remoting_webapp_compile.gypi
parent663a3a2fee3f20a58791219f10ec528c55c08928 (diff)
downloadchromium_src-1a8d5b2da013f3149fe601331125ef8d9205289e.zip
chromium_src-1a8d5b2da013f3149fe601331125ef8d9205289e.tar.gz
chromium_src-1a8d5b2da013f3149fe601331125ef8d9205289e.tar.bz2
[Chromoting] Separates chrome mocks from chrome protos in unittests.
The current unittest reuses the chrome_proto.js as stubs in the unittest. chrome_proto.js is subjected to changes as JSCompile augments the existing set of functions through externs. Summary of changes: 1. Auto activate/restore chrome mocks in each unittest. 2. Separates chrome mocks from chrome protos. Review URL: https://codereview.chromium.org/1143033004 Cr-Commit-Position: refs/heads/master@{#331441}
Diffstat (limited to 'remoting/remoting_webapp_compile.gypi')
-rw-r--r--remoting/remoting_webapp_compile.gypi13
1 files changed, 7 insertions, 6 deletions
diff --git a/remoting/remoting_webapp_compile.gypi b/remoting/remoting_webapp_compile.gypi
index abae2d9..3b5038e 100644
--- a/remoting/remoting_webapp_compile.gypi
+++ b/remoting/remoting_webapp_compile.gypi
@@ -9,6 +9,10 @@
'success_stamp': '<(PRODUCT_DIR)/<(_target_name)_jscompile.stamp',
'success_stamp_bt': '<(PRODUCT_DIR)/<(_target_name)_bt_jscompile.stamp',
'success_stamp_ut': '<(PRODUCT_DIR)/<(_target_name)_ut_jscompile.stamp',
+ 'compiler_flags': [
+ '--strict',
+ '--no-single-file',
+ ],
},
'actions': [
{
@@ -24,8 +28,7 @@
],
'action': [
'python', '<(DEPTH)/third_party/closure_compiler/compile.py',
- '--strict',
- '--no-single-file',
+ '<@(compiler_flags)',
'--success-stamp', '<(success_stamp)',
'<@(remoting_webapp_crd_js_files)',
'<@(remoting_webapp_js_proto_files)',
@@ -45,8 +48,7 @@
],
'action': [
'python', '<(DEPTH)/third_party/closure_compiler/compile.py',
- '--strict',
- '--no-single-file',
+ '<@(compiler_flags)',
'--success-stamp', '<(success_stamp_bt)',
'<@(remoting_webapp_crd_js_files)',
'<@(remoting_webapp_browsertest_all_js_files)',
@@ -67,8 +69,7 @@
],
'action': [
'python', '<(DEPTH)/third_party/closure_compiler/compile.py',
- '--strict',
- '--no-single-file',
+ '<@(compiler_flags)',
'--success-stamp', '<(success_stamp_ut)',
'<@(remoting_webapp_crd_js_files)',
'<@(remoting_webapp_unittests_all_js_files)',