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.
5 import("//build/config/features.gni")
6 import("//build/config/ui.gni")
7 import("//build/module_args/v8.gni")
9 content_tests_gypi_values =
10 exec_script("//build/gypi_to_gn.py",
12 rebase_path("../content_tests.gypi"),
13 "--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir",
16 [ "../content_tests.gypi" ])
18 # GYP version //content/content_tests.gypi:test_support_content
19 static_library("test_support") {
24 "//content/public/app:both",
25 "//content/public/browser:browser_sources",
26 "//content/public/common:common_sources",
32 "//ui/accessibility:ax_gen",
34 "//ui/base:test_support",
35 "//ui/events:dom4_keycode_converter",
36 "//ui/events:events_base",
37 "//ui/events:test_support",
38 "//ui/events:gesture_detection",
39 "//ui/gfx:test_support",
47 rebase_path(content_tests_gypi_values.test_support_content_sources,
51 public_deps += [ "//third_party/WebKit/public:blink" ]
53 "//content/browser/speech/proto",
54 "//content/public/child:child_sources",
56 "//content/public/renderer:renderer_sources",
57 "//content/public/utility:utility_sources",
58 "//content/shell:pak",
64 "//ppapi:ppapi_proxy",
65 "//ppapi:ppapi_shared",
66 "//ppapi:ppapi_unittest_shared",
71 "//webkit/common/gpu",
75 deps += [ "//content/ppapi_plugin" ]
79 # TODO(GYP) remove this when libjingle is converted.
80 configs += [ "//third_party/libjingle:jingle_direct_dependent_configs" ]
83 "../renderer/media/mock_media_stream_dispatcher.cc",
84 "../renderer/media/mock_media_stream_dispatcher.h",
85 "../renderer/media/mock_peer_connection_impl.cc",
86 "../renderer/media/mock_peer_connection_impl.h",
87 "../renderer/media/mock_web_rtc_peer_connection_handler_client.cc",
88 "../renderer/media/mock_web_rtc_peer_connection_handler_client.h",
89 "../renderer/media/webrtc/mock_peer_connection_dependency_factory.cc",
90 "../renderer/media/webrtc/mock_peer_connection_dependency_factory.h",
94 #"//third_party/libjingle:webrtc", TODO(GYP)
95 #"//third_party/libjingle:peerconnection", TODO(GYP)
96 "//third_party/webrtc/modules/video_capture",
99 if (!enable_plugins) {
100 sources -= [ "ppapi_unittest.cc" ]
104 configs += [ "//build/config/linux:glib" ]
109 "//ui/aura:test_support",
110 "//ui/resources:ui_test_pak",
115 if (use_aura || is_mac) {
116 deps += [ "//ui/compositor" ]
120 deps += [ "//ui/ozone" ]
124 deps += [ "//third_party/iaccessible2" ]
127 if (!is_android && !is_ios) {
128 deps += [ "//third_party/libvpx" ]
134 "//ui/shell_dialogs",
139 deps += [ "//sandbox" ]
143 "public/test/content_test_suite_base.cc",
144 "public/test/mock_notification_observer.cc",
145 "public/test/mock_resource_context.cc",
146 "public/test/test_browser_thread.cc",
147 "public/test/test_content_client_initializer.cc",
148 "public/test/test_notification_tracker.cc",
149 "public/test/test_utils.cc",
150 "public/test/unittest_test_suite.cc",
151 "test/content_test_suite.cc",
152 "test/test_content_browser_client.cc",
153 "test/test_content_client.cc",
156 if (v8_use_external_startup_data) {
157 deps += [ "//gin:gin" ]
162 # GYP version //content/content_tests.gypi:layouttest_support_content
163 static_library("layouttest_support") {
165 sources = rebase_path(
166 content_tests_gypi_values.layouttest_support_content_sources,
174 "//content/public/common",
177 "//ui/accessibility:ax_gen",
186 import("//build/config/android/rules.gni")
188 generate_jni("jni") {
190 "../public/test/android/javatests/src/org/chromium/content/browser/test/NestedSystemMessageHandler.java",
192 jni_package = "content/public/test"
196 # TODO(GYP): Unit test targets