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/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 | 7 |
8 content_tests_gypi_values = exec_script( | 8 content_tests_gypi_values = exec_script( |
9 "//build/gypi_to_gn.py", | 9 "//build/gypi_to_gn.py", |
10 [ rebase_path("../content_tests.gypi"), | 10 [ rebase_path("../content_tests.gypi"), |
11 "--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir" ], | 11 "--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir" ], |
12 "scope", | 12 "scope", |
13 [ "../content_tests.gypi" ]) | 13 [ "../content_tests.gypi" ]) |
14 | 14 |
15 # GYP version //content/content_tests.gypi:test_support_content | 15 # GYP version //content/content_tests.gypi:test_support_content |
16 static_library("test_support") { | 16 static_library("test_support") { |
17 testonly = true | 17 testonly = true |
18 deps = [ | 18 deps = [ |
| 19 "//cc/blink", |
19 "//content/public/app:both", | 20 "//content/public/app:both", |
20 "//content/public/browser", | 21 "//content/public/browser", |
21 "//content/public/common", | 22 "//content/public/common", |
22 "//net:test_support", | 23 "//net:test_support", |
23 "//skia", | 24 "//skia", |
24 "//storage/common", | 25 "//storage/common", |
25 "//testing/gmock", | 26 "//testing/gmock", |
26 "//testing/gtest", | 27 "//testing/gtest", |
27 "//ui/accessibility:ax_gen", | 28 "//ui/accessibility:ax_gen", |
28 "//ui/base", | 29 "//ui/base", |
29 "//ui/base:test_support", | 30 "//ui/base:test_support", |
30 "//ui/events:dom4_keycode_converter", | 31 "//ui/events:dom4_keycode_converter", |
31 "//ui/events:events_base", | 32 "//ui/events:events_base", |
32 "//ui/events:test_support", | 33 "//ui/events:test_support", |
33 "//ui/events:gesture_detection", | 34 "//ui/events:gesture_detection", |
34 "//ui/gfx:test_support", | 35 "//ui/gfx:test_support", |
| 36 "//ui/gl", |
35 "//ui/resources", | 37 "//ui/resources", |
36 "//url", | 38 "//url", |
37 ] | 39 ] |
38 | 40 |
39 if (!is_ios) { | 41 if (!is_ios) { |
40 sources = rebase_path(content_tests_gypi_values.test_support_content_sources
, | 42 sources = rebase_path(content_tests_gypi_values.test_support_content_sources
, |
41 ".", "//content") | 43 ".", "//content") |
42 | 44 |
43 deps += [ | 45 deps += [ |
44 "//content/browser/speech/proto", | 46 "//content/browser/speech/proto", |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 if (!is_ios) { | 141 if (!is_ios) { |
140 | 142 |
141 # GYP version //content/content_tests.gypi:layouttest_support_content | 143 # GYP version //content/content_tests.gypi:layouttest_support_content |
142 static_library("layouttest_support") { | 144 static_library("layouttest_support") { |
143 testonly = true | 145 testonly = true |
144 sources = rebase_path(content_tests_gypi_values.layouttest_support_content_s
ources, | 146 sources = rebase_path(content_tests_gypi_values.layouttest_support_content_s
ources, |
145 ".", "//content") | 147 ".", "//content") |
146 | 148 |
147 deps = [ | 149 deps = [ |
148 ":test_support", | 150 ":test_support", |
| 151 "//cc", |
| 152 "//cc/blink", |
| 153 "//content/public/common", |
149 "//skia", | 154 "//skia", |
150 "//v8", | 155 "//v8", |
151 "//ui/accessibility:ax_gen", | 156 "//ui/accessibility:ax_gen", |
152 ] | 157 ] |
153 | 158 |
154 if (is_android) { | 159 if (is_android) { |
155 #deps += [ "test_support_content_jni_headers" ] TODO(GYP) | 160 #deps += [ "test_support_content_jni_headers" ] TODO(GYP) |
156 } | 161 } |
157 } | 162 } |
158 | 163 |
159 } # !is_ios | 164 } # !is_ios |
160 | 165 |
161 # TODO(GYP): Unit test targets | 166 # TODO(GYP): Unit test targets |
162 | 167 |
OLD | NEW |