| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
| 6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
| 7 import("//build/util/version.gni") | 7 import("//build/util/version.gni") |
| 8 import("//remoting/remoting_version.gni") | 8 import("//remoting/remoting_version.gni") |
| 9 import("//remoting/remoting_enable.gni") | 9 import("//remoting/remoting_enable.gni") |
| 10 import("//testing/test.gni") | 10 import("//testing/test.gni") |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 deps += [ "//components/policy:test_support" ] | 94 deps += [ "//components/policy:test_support" ] |
| 95 } | 95 } |
| 96 | 96 |
| 97 if (enable_remoting_host) { | 97 if (enable_remoting_host) { |
| 98 deps += [ "//remoting/host:test_support" ] | 98 deps += [ "//remoting/host:test_support" ] |
| 99 } | 99 } |
| 100 } | 100 } |
| 101 | 101 |
| 102 # TODO(GYP) remoting_unittests on Mac. Needs to be tested. | 102 # TODO(GYP) remoting_unittests on Mac. Needs to be tested. |
| 103 if (!is_mac) { | 103 if (!is_mac) { |
| 104 # TODO(GYP): Delete this after we've converted everything to GN. |
| 105 # The _run targets exist only for compatibility w/ GYP. |
| 106 group("remoting_unittests_run") { |
| 107 testonly = true |
| 108 deps = [ |
| 109 ":remoting_unittests", |
| 110 ] |
| 111 } |
| 112 |
| 104 test("remoting_unittests") { | 113 test("remoting_unittests") { |
| 105 configs += [ | 114 configs += [ |
| 106 ":version", | 115 ":version", |
| 107 | 116 |
| 108 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 117 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 109 "//build/config/compiler:no_size_t_to_int_warning", | 118 "//build/config/compiler:no_size_t_to_int_warning", |
| 110 ] | 119 ] |
| 111 | 120 |
| 121 data = [ |
| 122 "//net/data/ssl/certificates/ok_cert.pem", |
| 123 "//net/data/ssl/certificates/unittest.key.bin", |
| 124 "//net/data/ssl/certificates/unittest.selfsigned.der", |
| 125 ] |
| 126 |
| 112 deps = [ | 127 deps = [ |
| 113 ":test_support", | 128 ":test_support", |
| 114 "//base/allocator", | 129 "//base/allocator", |
| 115 "//google_apis", | 130 "//google_apis", |
| 116 "//remoting/base:unit_tests", | 131 "//remoting/base:unit_tests", |
| 117 "//remoting/client:unit_tests", | 132 "//remoting/client:unit_tests", |
| 118 "//remoting/protocol:unit_tests", | 133 "//remoting/protocol:unit_tests", |
| 119 "//remoting/signaling:unit_tests", | 134 "//remoting/signaling:unit_tests", |
| 120 "//remoting/test:unit_tests", | 135 "//remoting/test:unit_tests", |
| 121 "//testing/gmock", | 136 "//testing/gmock", |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 } | 230 } |
| 216 } | 231 } |
| 217 | 232 |
| 218 group("remoting_key_tester_pexe") { | 233 group("remoting_key_tester_pexe") { |
| 219 # TODO(GYP): crbug.com/471924 implement me when we have a pnacl toolchain. | 234 # TODO(GYP): crbug.com/471924 implement me when we have a pnacl toolchain. |
| 220 #sources = [ | 235 #sources = [ |
| 221 # "tools/javascript_key_tester/pnacl/remoting_key_tester.cc", | 236 # "tools/javascript_key_tester/pnacl/remoting_key_tester.cc", |
| 222 #] | 237 #] |
| 223 } | 238 } |
| 224 } | 239 } |
| OLD | NEW |