| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 # Keep in sync with targets in remoting/remoting_client.gypi. | 5 # Keep in sync with targets in remoting/remoting_client.gypi. |
| 6 | 6 |
| 7 import("//build/config/features.gni") | 7 import("//build/config/features.gni") |
| 8 import("//remoting/webapp/build_template.gni") | 8 import("//remoting/webapp/build_template.gni") |
| 9 import("//remoting/webapp/files.gni") | 9 import("//remoting/webapp/files.gni") |
| 10 | 10 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 outputs = [ | 66 outputs = [ |
| 67 "$root_out_dir/remoting/browser_test_resources/{{source_file_part}}", | 67 "$root_out_dir/remoting/browser_test_resources/{{source_file_part}}", |
| 68 ] | 68 ] |
| 69 } | 69 } |
| 70 | 70 |
| 71 remoting_unit_test_out_dir = "$root_out_dir/remoting/unittests" | 71 remoting_unit_test_out_dir = "$root_out_dir/remoting/unittests" |
| 72 | 72 |
| 73 group("unit_tests") { | 73 group("unit_tests") { |
| 74 data_deps = [ | 74 data_deps = [ |
| 75 ":blanketjs", | 75 ":blanketjs", |
| 76 ":build_unittest", |
| 76 ":js_files", | 77 ":js_files", |
| 77 ":qunit", | 78 ":qunit", |
| 78 ":sinonjs", | 79 ":sinonjs", |
| 79 ] | 80 ] |
| 80 } | 81 } |
| 81 | 82 |
| 82 copy("js_files") { | 83 copy("js_files") { |
| 83 # This list corresponds to webapp_js_files in remoting_webapp_unittests | 84 # This list corresponds to webapp_js_files in remoting_webapp_unittests |
| 84 # target in GYP. | 85 # target in GYP. |
| 85 sources = remoting_webapp_unittest_html_all_js_files + | 86 sources = webapp_js_files + remoting_webapp_unittests_all_files |
| 86 remoting_webapp_wcs_sandbox_html_js_files + | |
| 87 remoting_webapp_background_html_js_files + | |
| 88 remoting_webapp_unittests_all_files | |
| 89 outputs = [ | 87 outputs = [ |
| 90 "$remoting_unit_test_out_dir/{{source_file_part}}", | 88 "$remoting_unit_test_out_dir/{{source_file_part}}", |
| 91 ] | 89 ] |
| 92 } | 90 } |
| 93 | 91 |
| 94 copy("blanketjs") { | 92 copy("blanketjs") { |
| 95 sources = [ | 93 sources = [ |
| 96 "//third_party/blanketjs/src/blanket.js", | 94 "//third_party/blanketjs/src/blanket.js", |
| 97 "//third_party/blanketjs/src/qunit_adapter.js", | 95 "//third_party/blanketjs/src/qunit_adapter.js", |
| 98 ] | 96 ] |
| (...skipping 15 matching lines...) Expand all Loading... |
| 114 copy("qunit") { | 112 copy("qunit") { |
| 115 sources = [ | 113 sources = [ |
| 116 "//third_party/qunit/src/browser_test_harness.js", | 114 "//third_party/qunit/src/browser_test_harness.js", |
| 117 "//third_party/qunit/src/qunit.css", | 115 "//third_party/qunit/src/qunit.css", |
| 118 "//third_party/qunit/src/qunit.js", | 116 "//third_party/qunit/src/qunit.js", |
| 119 ] | 117 ] |
| 120 outputs = [ | 118 outputs = [ |
| 121 "$remoting_unit_test_out_dir/qunit/{{source_file_part}}", | 119 "$remoting_unit_test_out_dir/qunit/{{source_file_part}}", |
| 122 ] | 120 ] |
| 123 } | 121 } |
| 122 |
| 123 action("build_unittest") { |
| 124 script = "build-html.py" |
| 125 outputs = [ |
| 126 "$remoting_unit_test_out_dir/unittests.html", |
| 127 ] |
| 128 args = rebase_path(outputs, root_build_dir) + [ |
| 129 rebase_path(remoting_webapp_unittests_template_main, root_build_dir), |
| 130 "--exclude-js", |
| 131 ] + rebase_path(remoting_webapp_unittests_exclude_js_files, |
| 132 root_build_dir) + [ "--js" ] + |
| 133 rebase_path(remoting_webapp_unittests_all_js_files, root_build_dir) + |
| 134 [ "--instrument-js" ] + rebase_path(webapp_js_files, root_build_dir) |
| 135 } |
| OLD | NEW |