Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Side by Side Diff: content/test/BUILD.gn

Issue 704363002: XXX test gn format everything (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/shell/android/BUILD.gn ('k') | content/utility/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 =
9 "//build/gypi_to_gn.py", 9 exec_script("//build/gypi_to_gn.py",
10 [ rebase_path("../content_tests.gypi"), 10 [
11 "--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir" ], 11 rebase_path("../content_tests.gypi"),
12 "scope", 12 "--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir",
13 [ "../content_tests.gypi" ]) 13 ],
14 "scope",
15 [ "../content_tests.gypi" ])
14 16
15 # GYP version //content/content_tests.gypi:test_support_content 17 # GYP version //content/content_tests.gypi:test_support_content
16 static_library("test_support") { 18 static_library("test_support") {
17 testonly = true 19 testonly = true
18 public_deps = [] 20 public_deps = []
19 deps = [ 21 deps = [
20 "//cc/blink", 22 "//cc/blink",
21 "//content/public/app:both", 23 "//content/public/app:both",
22 "//content/public/browser:browser_sources", 24 "//content/public/browser:browser_sources",
23 "//content/public/common:common_sources", 25 "//content/public/common:common_sources",
24 "//net:test_support", 26 "//net:test_support",
25 "//skia", 27 "//skia",
26 "//storage/common", 28 "//storage/common",
27 "//testing/gmock", 29 "//testing/gmock",
28 "//testing/gtest", 30 "//testing/gtest",
29 "//ui/accessibility:ax_gen", 31 "//ui/accessibility:ax_gen",
30 "//ui/base", 32 "//ui/base",
31 "//ui/base:test_support", 33 "//ui/base:test_support",
32 "//ui/events:dom4_keycode_converter", 34 "//ui/events:dom4_keycode_converter",
33 "//ui/events:events_base", 35 "//ui/events:events_base",
34 "//ui/events:test_support", 36 "//ui/events:test_support",
35 "//ui/events:gesture_detection", 37 "//ui/events:gesture_detection",
36 "//ui/gfx:test_support", 38 "//ui/gfx:test_support",
37 "//ui/gl", 39 "//ui/gl",
38 "//ui/resources", 40 "//ui/resources",
39 "//url", 41 "//url",
40 ] 42 ]
41 43
42 if (!is_ios) { 44 if (!is_ios) {
43 sources = rebase_path(content_tests_gypi_values.test_support_content_sources , 45 sources =
44 ".", "//content") 46 rebase_path(content_tests_gypi_values.test_support_content_sources,
47 ".",
48 "//content")
45 49
46 public_deps += [ 50 public_deps += [ "//third_party/WebKit/public:blink" ]
47 "//third_party/WebKit/public:blink",
48 ]
49 deps += [ 51 deps += [
50 "//content/browser/speech/proto", 52 "//content/browser/speech/proto",
51 "//content/public/child:child_sources", 53 "//content/public/child:child_sources",
52 "//content/gpu", 54 "//content/gpu",
53 "//content/public/renderer:renderer_sources", 55 "//content/public/renderer:renderer_sources",
54 "//content/public/utility:utility_sources", 56 "//content/public/utility:utility_sources",
55 "//content/shell:pak", 57 "//content/shell:pak",
56 "//cc", 58 "//cc",
57 "//cc:test_support", 59 "//cc:test_support",
58 "//media", 60 "//media",
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 deps += [ "//third_party/libvpx" ] 126 deps += [ "//third_party/libvpx" ]
125 } 127 }
126 128
127 if (is_android) { 129 if (is_android) {
128 deps += [ "//ui/shell_dialogs" ] 130 deps += [ "//ui/shell_dialogs" ]
129 } 131 }
130 132
131 if (is_win) { 133 if (is_win) {
132 deps += [ "//sandbox" ] 134 deps += [ "//sandbox" ]
133 } 135 }
134 } else { # is_ios 136 } else { # is_ios
135 sources = [ 137 sources = [
136 "public/test/content_test_suite_base.cc", 138 "public/test/content_test_suite_base.cc",
137 "public/test/mock_notification_observer.cc", 139 "public/test/mock_notification_observer.cc",
138 "public/test/mock_resource_context.cc", 140 "public/test/mock_resource_context.cc",
139 "public/test/test_browser_thread.cc", 141 "public/test/test_browser_thread.cc",
140 "public/test/test_content_client_initializer.cc", 142 "public/test/test_content_client_initializer.cc",
141 "public/test/test_notification_tracker.cc", 143 "public/test/test_notification_tracker.cc",
142 "public/test/test_utils.cc", 144 "public/test/test_utils.cc",
143 "public/test/unittest_test_suite.cc", 145 "public/test/unittest_test_suite.cc",
144 "test/content_test_suite.cc", 146 "test/content_test_suite.cc",
145 "test/test_content_browser_client.cc", 147 "test/test_content_browser_client.cc",
146 "test/test_content_client.cc", 148 "test/test_content_client.cc",
147 ] 149 ]
148 } 150 }
149 } 151 }
150 152
151 if (!is_ios) { 153 if (!is_ios) {
152
153 # GYP version //content/content_tests.gypi:layouttest_support_content 154 # GYP version //content/content_tests.gypi:layouttest_support_content
154 static_library("layouttest_support") { 155 static_library("layouttest_support") {
155 testonly = true 156 testonly = true
156 sources = rebase_path(content_tests_gypi_values.layouttest_support_content_s ources, 157 sources = rebase_path(
157 ".", "//content") 158 content_tests_gypi_values.layouttest_support_content_sources,
159 ".",
160 "//content")
158 161
159 deps = [ 162 deps = [
160 ":test_support", 163 ":test_support",
161 "//cc", 164 "//cc",
162 "//cc/blink", 165 "//cc/blink",
163 "//content/public/common", 166 "//content/public/common",
164 "//skia", 167 "//skia",
165 "//v8", 168 "//v8",
166 "//ui/accessibility:ax_gen", 169 "//ui/accessibility:ax_gen",
167 ] 170 ]
168 171
169 if (is_android) { 172 if (is_android) {
170 deps += [ ":jni" ] 173 deps += [ ":jni" ]
171 } 174 }
172 } 175 }
173 176
174 if (is_android) { 177 if (is_android) {
175 import("//build/config/android/rules.gni") 178 import("//build/config/android/rules.gni")
176 179
177 generate_jni("jni") { 180 generate_jni("jni") {
178 sources = [ "../public/test/android/javatests/src/org/chromium/content/bro wser/test/NestedSystemMessageHandler.java" ] 181 sources = [
182 "../public/test/android/javatests/src/org/chromium/content/browser/test/ NestedSystemMessageHandler.java",
183 ]
179 jni_package = "content/public/test" 184 jni_package = "content/public/test"
180 } 185 }
181 } 186 }
182 } # !is_ios 187 } # !is_ios
183
184 # TODO(GYP): Unit test targets 188 # TODO(GYP): Unit test targets
185
OLDNEW
« no previous file with comments | « content/shell/android/BUILD.gn ('k') | content/utility/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698