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

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

Issue 353113002: GN: content/content_tests.gypi support targets (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months 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 | Annotate | Revision Log
« no previous file with comments | « content/content_tests.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4
5 import("//build/config/features.gni")
6 import("//build/config/ui.gni")
7
8 content_tests_gypi_values = exec_script(
9 "//build/gypi_to_gn.py",
10 [ rebase_path("../content_tests.gypi"),
11 "--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir" ],
12 "scope",
13 [ "../content_tests.gypi" ])
14
15 static_library("test_support") {
16 # GYP version //content/content_tests.gypi:test_support_content
17 deps = [
18 "//net:test_support",
19 "//skia",
20 "//testing/gmock",
21 "//testing/gtest",
22 "//ui/accessibility:ax_gen",
23 "//ui/base",
24 "//ui/base:ui_base_test_support",
25 "//ui/events:dom4_keycode_converter",
26 "//ui/events:events_base",
27 "//ui/events:events_test_support",
28 "//ui/events:gesture_detection",
29 "//ui/gfx:gfx_test_support",
30 "//ui/resources",
31 "//url",
32 "//webkit/common",
33 "//content/browser/speech/proto",
34 "//content/browser",
35 "//content/common",
36 "//content/app",
37 ]
38
39 if (!is_ios) {
40 sources = rebase_path(content_tests_gypi_values.layouttest_support_content_s ources,
41 ".", "//content")
42
43 deps += [
44 "//content/child",
45 "//content/common",
46 "//content/gpu",
47 "//content/ppapi_plugin",
48 "//content/renderer",
49 "//content/utility",
50 "//content/worker",
51 "//cc",
52 "//cc:test_support",
53 "//ppapi:ppapi_proxy",
54 "//ppapi:ppapi_shared",
55 "//third_party/WebKit/public:blink",
56 "//ui/surface",
57 "//v8",
58 "//webkit/child",
59 "//webkit/common/gpu",
60 "//webkit/browser:storage",
61 "//webkit/common:storage",
62 # TODO(GYP)
63 #"//media",
64 #"//ppapi:host",
65 #"//ppapi:unittest_shared",
66 ]
67
68 forward_dependent_configs_from = [
69 "//third_party/WebKit/public:blink",
70 ]
71
72 # TODO(GYP)
73 # These targets need include dirs and defines from the libjingle target in order
74 # to compile.
75 if (false && enable_webrtc) {
76 sources += [
77 "../renderer/media/mock_media_stream_dispatcher.cc",
78 "../renderer/media/mock_media_stream_dispatcher.h",
79 "../renderer/media/mock_peer_connection_impl.cc",
80 "../renderer/media/mock_peer_connection_impl.h",
81 "../renderer/media/mock_web_rtc_peer_connection_handler_client.cc",
82 "../renderer/media/mock_web_rtc_peer_connection_handler_client.h",
83 "../renderer/media/webrtc/mock_peer_connection_dependency_factory.cc",
84 "../renderer/media/webrtc/mock_peer_connection_dependency_factory.h",
85 ]
86
87 deps += [
88 "//third_party/libjingle:webrtc",
89 "//third_party/libjingle:peerconnection",
90 "//third_party/webrtc/modules:video_capture",
91 ]
92 }
93
94 if (use_glib) {
95 deps += [
96 "//build/linux/system:glib",
97 ]
98 }
99
100 if (use_aura) {
101 deps += [
102 "//ui/aura:test_support",
103 "//ui/resources:test_pak",
104 "//ui/wm",
105 ]
106 }
107
108 if (use_aura || is_mac) {
109 deps += [ "//ui/compositor" ]
110 }
111
112 if (is_win) {
113 deps += [ "//third_party/iaccessible2" ]
114 }
115
116 if (!is_android && !is_ios) {
117 # TODO(GYP)
118 #deps += [ "//third_party/libvpx" ]
119 }
120
121 if (is_android) {
122 deps += [ "//ui/shell_dialogs" ]
123 }
124
125 if (is_win) {
126 deps += [ "//sandbox" ]
127 }
128 } else { # is_ios
129 sources = [
130 "public/test/content_test_suite_base.cc",
131 "public/test/mock_notification_observer.cc",
132 "public/test/mock_resource_context.cc",
133 "public/test/test_browser_thread.cc",
134 "public/test/test_content_client_initializer.cc",
135 "public/test/test_notification_tracker.cc",
136 "public/test/test_utils.cc",
137 "public/test/unittest_test_suite.cc",
138 "test/content_test_suite.cc",
139 "test/test_content_browser_client.cc",
140 "test/test_content_client.cc",
141 ]
142 }
143 }
144
145 if (!is_ios) {
146
147 static_library("layouttest_support") {
148 # GYP version //content/content_tests.gypi:layouttest_support_content
149 sources = rebase_path(content_tests_gypi_values.layouttest_support_content_s ources,
150 ".", "//content")
151
152 deps = [
153 ":test_support",
154 "//skia",
155 "//v8",
156 "//ui/accessibility:ax_gen",
157 ]
158
159 if (is_android) {
160 # TODO(GYP)
161 # deps += [ "test_support_content_jni_headers" ]
162 }
163 }
164
165 } # !is_ios
166
167 # TODO(GYP): Unit test targets
168
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698