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

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
« content/content_tests.gypi ('K') | « 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",
jamesr 2014/06/27 06:01:15 does this exist?
65 #"//ppapi:unittest_shared",
66 ]
67
68 forward_dependent_configs_from = [
69 "//third_party/WebKit/public:blink",
70 ]
71
72 # TODO(GYP)
73 if (false && enable_webrtc) {
jamesr 2014/06/27 06:01:15 these files don't even compile without the libjing
brettw 2014/06/30 17:26:06 CAn you write this in the comment for the TODO?
74 sources += [
75 "../renderer/media/mock_media_stream_dispatcher.cc",
76 "../renderer/media/mock_media_stream_dispatcher.h",
77 "../renderer/media/mock_peer_connection_impl.cc",
78 "../renderer/media/mock_peer_connection_impl.h",
79 "../renderer/media/mock_web_rtc_peer_connection_handler_client.cc",
80 "../renderer/media/mock_web_rtc_peer_connection_handler_client.h",
81 "../renderer/media/webrtc/mock_peer_connection_dependency_factory.cc",
82 "../renderer/media/webrtc/mock_peer_connection_dependency_factory.h",
83 ]
84
85 deps += [
86 "//third_party/libjingle:webrtc",
87 "//third_party/libjingle:peerconnection",
88 "//third_party/webrtc/modules:video_capture",
89 ]
90 }
91
92 if (use_glib) {
93 deps += [
94 "//build/linux/system:glib",
95 ]
96 }
97
98 if (use_aura) {
99 deps += [
100 "//ui/aura:test_support",
101 "//ui/resources:test_pak",
102 "//ui/wm",
103 ]
104 }
105
106 if (use_aura || is_mac) {
107 deps += [ "//ui/compositor" ]
108 }
109
110 if (is_win) {
111 deps += [ "//third_party/iaccessible2" ]
112 }
113
114 if (!is_android && !is_ios) {
115 # TODO(GYP)
116 #deps += [ "//third_party/libvpx" ]
117 }
118
119 if (is_android) {
120 deps += [ "//ui/shell_dialogs" ]
121 }
122
123 if (is_win) {
124 deps += [ "//sandbox" ]
125 }
126 } else { # is_ios
127 sources = [
128 "public/test/content_test_suite_base.cc",
129 "public/test/mock_notification_observer.cc",
130 "public/test/mock_resource_context.cc",
131 "public/test/test_browser_thread.cc",
132 "public/test/test_content_client_initializer.cc",
133 "public/test/test_notification_tracker.cc",
134 "public/test/test_utils.cc",
135 "public/test/unittest_test_suite.cc",
136 "test/content_test_suite.cc",
137 "test/test_content_browser_client.cc",
138 "test/test_content_client.cc",
139 ]
140 }
141 }
142
143 if (!is_ios) {
144
145 static_library("layouttest_support") {
146 # GYP version //content/content_tests.gypi:layouttest_support_content
147 sources = rebase_path(content_tests_gypi_values.layouttest_support_content_s ources,
148 ".", "//content")
149
150 deps = [
151 ":test_support",
152 "//skia",
153 "//v8",
154 "//ui/accessibility:ax_gen",
155 ]
156
157 if (is_android) {
158 # TODO(GYP)
159 # deps += [ "test_support_content_jni_headers" ]
160 }
161 }
162
163 } # !is_ios
164
165 # TODO(GYP): Unit test targets
166
OLDNEW
« content/content_tests.gypi ('K') | « content/content_tests.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698