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 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 import("//sky/engine/config.gni") | 6 import("//sky/engine/config.gni") |
7 | 7 |
8 visibility = [ "//sky/*" ] | 8 visibility = [ "//sky/*" ] |
9 | 9 |
10 platform_web_unittest_files = [ | 10 platform_web_unittest_files = [ |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 "//sky/engine:config", | 130 "//sky/engine:config", |
131 ] | 131 ] |
132 } | 132 } |
133 } | 133 } |
134 | 134 |
135 test("sky_unittests") { | 135 test("sky_unittests") { |
136 deps = [ | 136 deps = [ |
137 "//base", | 137 "//base", |
138 "//base/test:test_support", | 138 "//base/test:test_support", |
139 "//base:i18n", | 139 "//base:i18n", |
| 140 "//sky/engine/testing/platform", |
140 "//sky/engine/wtf:test_support", | 141 "//sky/engine/wtf:test_support", |
141 "//sky/engine/testing/platform", | |
142 "//testing/gmock", | 142 "//testing/gmock", |
143 "//testing/gtest", | 143 "//testing/gtest", |
144 "//third_party/zlib", | 144 "//third_party/zlib", |
145 "//url", | 145 "//url", |
146 "//v8", | 146 "//v8", |
147 ":test_support", | 147 ":test_support", |
148 ":web", | 148 ":web", |
149 ] | 149 ] |
150 | 150 |
| 151 # TODO(abarth): This is a lie - this test is not embedded in an environment |
| 152 # that injects the system thunks, so system calls don't actually work. This |
| 153 # just tricks the linker into thinking that an implementation of these calls |
| 154 # will be injected at runtime so the link succeeds. |
| 155 deps += [ "//mojo/public/platform/native:system" ] |
| 156 |
151 sources = [ | 157 sources = [ |
152 "tests/RunAllTests.cpp", | 158 "tests/RunAllTests.cpp", |
153 ] | 159 ] |
154 | 160 |
155 configs += [ "//sky/engine:config" ] | 161 configs += [ "//sky/engine:config" ] |
156 | 162 |
157 if (!is_component_build) { | 163 if (!is_component_build) { |
158 deps += [ "//sky/engine/core" ] | 164 deps += [ "//sky/engine/core" ] |
159 | 165 |
160 configs += [ "//sky/engine:inside_blink" ] | 166 configs += [ "//sky/engine:inside_blink" ] |
161 | 167 |
162 sources += platform_web_unittest_files | 168 sources += platform_web_unittest_files |
163 } | 169 } |
164 } | 170 } |
OLD | NEW |