Move the test template to //testing/test.gni (part 2)
This CL move the test target from build/config/BUILDCONFIG.gn to testing/test.gni It also update the test template to automatically build an apk on Android. R=cjhopman@chromium.org,brettw@chromium.org Review URL: https://codereview.chromium.org/824263004 Cr-Commit-Position: refs/heads/master@{#312396}
This commit is contained in:
ash
base
breakpad
build
config
secondary
cc
chrome
chromeos
components
content/test
courgette
crypto
dbus
extensions
gin
google_apis
gpu
ipc
media
mojo
common
converters
surfaces
tests
services
net
printing
rlz
sandbox
skia
sql
sync
testing
third_party
tools
ui
accessibility
android
app_list
aura
base
chromeos
compositor
display
events
gfx
keyboard
message_center
ozone
shell_dialogs
snapshot
touch_selection
views
wm
url
@ -4,6 +4,7 @@
|
||||
|
||||
import("//build/config/features.gni")
|
||||
import("//build/config/ui.gni")
|
||||
import("//testing/test.gni")
|
||||
|
||||
gypi_values = exec_script("//build/gypi_to_gn.py",
|
||||
[ rebase_path("ash.gyp") ],
|
||||
|
@ -3,6 +3,7 @@
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//build/config/ui.gni")
|
||||
import("//testing/test.gni")
|
||||
|
||||
if (is_android) {
|
||||
import("//build/config/android/rules.gni")
|
||||
@ -1377,6 +1378,13 @@ test("base_unittests") {
|
||||
"//third_party/icu",
|
||||
]
|
||||
|
||||
if (is_android) {
|
||||
apk_deps = [
|
||||
":base_java",
|
||||
":base_java_unittest_support",
|
||||
]
|
||||
}
|
||||
|
||||
if (is_ios) {
|
||||
sources -= [
|
||||
"metrics/stats_table_uinittest.cc", # Requires spawning a process.
|
||||
@ -1531,14 +1539,4 @@ if (is_android) {
|
||||
java_files =
|
||||
[ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ]
|
||||
}
|
||||
|
||||
# GYP: //base.gyp:base_unittests_apk
|
||||
unittest_apk("base_unittests_apk") {
|
||||
deps = [
|
||||
":base_java",
|
||||
":base_java_unittest_support",
|
||||
":base_unittests",
|
||||
]
|
||||
unittests_dep = ":base_unittests"
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,8 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//testing/test.gni")
|
||||
|
||||
config("tools_config") {
|
||||
include_dirs = [
|
||||
"src",
|
||||
|
@ -717,202 +717,3 @@ template("component") {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# ==============================================================================
|
||||
# TEST SETUP
|
||||
# ==============================================================================
|
||||
|
||||
# Define a test as an executable (or shared_library on Android) with the
|
||||
# "testonly" flag set.
|
||||
template("test") {
|
||||
if (is_android) {
|
||||
shared_library(target_name) {
|
||||
# Configs will always be defined since we set_defaults for a component
|
||||
# above. We want to use those rather than whatever came with the nested
|
||||
# shared/static library inside the component.
|
||||
configs = [] # Prevent list overwriting warning.
|
||||
configs = invoker.configs
|
||||
|
||||
# See above call.
|
||||
set_sources_assignment_filter([])
|
||||
|
||||
testonly = true
|
||||
|
||||
if (defined(invoker.all_dependent_configs)) {
|
||||
all_dependent_configs = invoker.all_dependent_configs
|
||||
}
|
||||
if (defined(invoker.allow_circular_includes_from)) {
|
||||
allow_circular_includes_from = invoker.allow_circular_includes_from
|
||||
}
|
||||
if (defined(invoker.cflags)) {
|
||||
cflags = invoker.cflags
|
||||
}
|
||||
if (defined(invoker.cflags_c)) {
|
||||
cflags_c = invoker.cflags_c
|
||||
}
|
||||
if (defined(invoker.cflags_cc)) {
|
||||
cflags_cc = invoker.cflags_cc
|
||||
}
|
||||
if (defined(invoker.cflags_objc)) {
|
||||
cflags_objc = invoker.cflags_objc
|
||||
}
|
||||
if (defined(invoker.cflags_objcc)) {
|
||||
cflags_objcc = invoker.cflags_objcc
|
||||
}
|
||||
if (defined(invoker.check_includes)) {
|
||||
check_includes = invoker.check_includes
|
||||
}
|
||||
if (defined(invoker.data)) {
|
||||
data = invoker.data
|
||||
}
|
||||
if (defined(invoker.data_deps)) {
|
||||
data_deps = invoker.data_deps
|
||||
}
|
||||
if (defined(invoker.datadeps)) {
|
||||
datadeps = invoker.datadeps
|
||||
}
|
||||
if (defined(invoker.defines)) {
|
||||
defines = invoker.defines
|
||||
}
|
||||
if (defined(invoker.deps)) {
|
||||
deps = invoker.deps
|
||||
}
|
||||
if (defined(invoker.direct_dependent_configs)) {
|
||||
direct_dependent_configs = invoker.direct_dependent_configs
|
||||
}
|
||||
if (defined(invoker.forward_dependent_configs_from)) {
|
||||
forward_dependent_configs_from = invoker.forward_dependent_configs_from
|
||||
}
|
||||
if (defined(invoker.include_dirs)) {
|
||||
include_dirs = invoker.include_dirs
|
||||
}
|
||||
if (defined(invoker.ldflags)) {
|
||||
ldflags = invoker.ldflags
|
||||
}
|
||||
if (defined(invoker.lib_dirs)) {
|
||||
lib_dirs = invoker.lib_dirs
|
||||
}
|
||||
if (defined(invoker.libs)) {
|
||||
libs = invoker.libs
|
||||
}
|
||||
if (defined(invoker.output_extension)) {
|
||||
output_extension = invoker.output_extension
|
||||
}
|
||||
if (defined(invoker.output_name)) {
|
||||
output_name = invoker.output_name
|
||||
}
|
||||
if (defined(invoker.public)) {
|
||||
public = invoker.public
|
||||
}
|
||||
if (defined(invoker.public_configs)) {
|
||||
public_configs = invoker.public_configs
|
||||
}
|
||||
if (defined(invoker.public_deps)) {
|
||||
public_deps = invoker.public_deps
|
||||
}
|
||||
if (defined(invoker.sources)) {
|
||||
sources = invoker.sources
|
||||
}
|
||||
if (defined(invoker.visibility)) {
|
||||
visibility = invoker.visibility
|
||||
}
|
||||
}
|
||||
} else {
|
||||
executable(target_name) {
|
||||
# See above.
|
||||
configs = [] # Prevent list overwriting warning.
|
||||
configs = invoker.configs
|
||||
|
||||
# See above call.
|
||||
set_sources_assignment_filter([])
|
||||
|
||||
testonly = true
|
||||
|
||||
if (defined(invoker.all_dependent_configs)) {
|
||||
all_dependent_configs = invoker.all_dependent_configs
|
||||
}
|
||||
if (defined(invoker.allow_circular_includes_from)) {
|
||||
allow_circular_includes_from = invoker.allow_circular_includes_from
|
||||
}
|
||||
if (defined(invoker.cflags)) {
|
||||
cflags = invoker.cflags
|
||||
}
|
||||
if (defined(invoker.cflags_c)) {
|
||||
cflags_c = invoker.cflags_c
|
||||
}
|
||||
if (defined(invoker.cflags_cc)) {
|
||||
cflags_cc = invoker.cflags_cc
|
||||
}
|
||||
if (defined(invoker.cflags_objc)) {
|
||||
cflags_objc = invoker.cflags_objc
|
||||
}
|
||||
if (defined(invoker.cflags_objcc)) {
|
||||
cflags_objcc = invoker.cflags_objcc
|
||||
}
|
||||
if (defined(invoker.check_includes)) {
|
||||
check_includes = invoker.check_includes
|
||||
}
|
||||
if (defined(invoker.data)) {
|
||||
data = invoker.data
|
||||
}
|
||||
if (defined(invoker.data_deps)) {
|
||||
data_deps = invoker.data_deps
|
||||
}
|
||||
if (defined(invoker.datadeps)) {
|
||||
datadeps = invoker.datadeps
|
||||
}
|
||||
if (defined(invoker.defines)) {
|
||||
defines = invoker.defines
|
||||
}
|
||||
|
||||
# All shared libraries must have the sanitizer deps to properly link in
|
||||
# asan mode (this target will be empty in other cases).
|
||||
if (defined(invoker.deps)) {
|
||||
deps = invoker.deps + [ "//build/config/sanitizers:deps" ]
|
||||
} else {
|
||||
deps = [
|
||||
"//build/config/sanitizers:deps",
|
||||
]
|
||||
}
|
||||
if (defined(invoker.direct_dependent_configs)) {
|
||||
direct_dependent_configs = invoker.direct_dependent_configs
|
||||
}
|
||||
if (defined(invoker.forward_dependent_configs_from)) {
|
||||
forward_dependent_configs_from = invoker.forward_dependent_configs_from
|
||||
}
|
||||
if (defined(invoker.include_dirs)) {
|
||||
include_dirs = invoker.include_dirs
|
||||
}
|
||||
if (defined(invoker.ldflags)) {
|
||||
ldflags = invoker.ldflags
|
||||
}
|
||||
if (defined(invoker.lib_dirs)) {
|
||||
lib_dirs = invoker.lib_dirs
|
||||
}
|
||||
if (defined(invoker.libs)) {
|
||||
libs = invoker.libs
|
||||
}
|
||||
if (defined(invoker.output_extension)) {
|
||||
output_extension = invoker.output_extension
|
||||
}
|
||||
if (defined(invoker.output_name)) {
|
||||
output_name = invoker.output_name
|
||||
}
|
||||
if (defined(invoker.public)) {
|
||||
public = invoker.public
|
||||
}
|
||||
if (defined(invoker.public_configs)) {
|
||||
public_configs = invoker.public_configs
|
||||
}
|
||||
if (defined(invoker.public_deps)) {
|
||||
public_deps = invoker.public_deps
|
||||
}
|
||||
if (defined(invoker.sources)) {
|
||||
sources = invoker.sources
|
||||
}
|
||||
if (defined(invoker.visibility)) {
|
||||
visibility = invoker.visibility
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -15,6 +15,7 @@ android_sdk_jar = "$android_sdk/android.jar"
|
||||
rebased_android_sdk_jar = rebase_path(android_sdk_jar, root_build_dir)
|
||||
|
||||
template("android_lint") {
|
||||
set_sources_assignment_filter([])
|
||||
if (defined(invoker.testonly)) {
|
||||
testonly = invoker.testonly
|
||||
}
|
||||
@ -62,6 +63,7 @@ template("android_lint") {
|
||||
}
|
||||
|
||||
template("dex") {
|
||||
set_sources_assignment_filter([])
|
||||
if (defined(invoker.testonly)) {
|
||||
testonly = invoker.testonly
|
||||
}
|
||||
@ -113,6 +115,7 @@ template("dex") {
|
||||
# Creates a zip archive of the inputs.
|
||||
# If base_dir is provided, the archive paths will be relative to it.
|
||||
template("zip") {
|
||||
set_sources_assignment_filter([])
|
||||
if (defined(invoker.testonly)) {
|
||||
testonly = invoker.testonly
|
||||
}
|
||||
@ -155,6 +158,7 @@ template("zip") {
|
||||
# See build/android/gyp/write_build_config.py and
|
||||
# build/android/gyp/util/build_utils.py:ExpandFileArgs
|
||||
template("write_build_config") {
|
||||
set_sources_assignment_filter([])
|
||||
if (defined(invoker.testonly)) {
|
||||
testonly = invoker.testonly
|
||||
}
|
||||
@ -288,6 +292,7 @@ template("write_build_config") {
|
||||
}
|
||||
|
||||
template("process_java_prebuilt") {
|
||||
set_sources_assignment_filter([])
|
||||
if (defined(invoker.testonly)) {
|
||||
testonly = invoker.testonly
|
||||
}
|
||||
@ -375,6 +380,7 @@ template("process_java_prebuilt") {
|
||||
# Packages resources, assets, dex, and native libraries into an apk. Signs and
|
||||
# zipaligns the apk.
|
||||
template("create_apk") {
|
||||
set_sources_assignment_filter([])
|
||||
if (defined(invoker.testonly)) {
|
||||
testonly = invoker.testonly
|
||||
}
|
||||
@ -554,6 +560,7 @@ template("create_apk") {
|
||||
}
|
||||
|
||||
template("java_prebuilt_impl") {
|
||||
set_sources_assignment_filter([])
|
||||
if (defined(invoker.testonly)) {
|
||||
testonly = invoker.testonly
|
||||
}
|
||||
@ -633,6 +640,7 @@ template("java_prebuilt_impl") {
|
||||
# jar_path: Use this to explicitly set the output jar path. Defaults to
|
||||
# "${target_gen_dir}/${target_name}.jar.
|
||||
template("compile_java") {
|
||||
set_sources_assignment_filter([])
|
||||
if (defined(invoker.testonly)) {
|
||||
testonly = invoker.testonly
|
||||
}
|
||||
@ -733,6 +741,7 @@ template("compile_java") {
|
||||
}
|
||||
|
||||
template("java_library_impl") {
|
||||
set_sources_assignment_filter([])
|
||||
if (defined(invoker.testonly)) {
|
||||
testonly = invoker.testonly
|
||||
}
|
||||
@ -916,6 +925,7 @@ template("java_library_impl") {
|
||||
|
||||
# Runs process_resources.py
|
||||
template("process_resources") {
|
||||
set_sources_assignment_filter([])
|
||||
if (defined(invoker.testonly)) {
|
||||
testonly = invoker.testonly
|
||||
}
|
||||
@ -1006,6 +1016,7 @@ template("process_resources") {
|
||||
}
|
||||
|
||||
template("copy_ex") {
|
||||
set_sources_assignment_filter([])
|
||||
if (defined(invoker.testonly)) {
|
||||
testonly = invoker.testonly
|
||||
}
|
||||
@ -1053,6 +1064,7 @@ template("copy_ex") {
|
||||
|
||||
# Produces a single .dex.jar out of a set of Java dependencies.
|
||||
template("deps_dex") {
|
||||
set_sources_assignment_filter([])
|
||||
build_config = "$target_gen_dir/${target_name}.build_config"
|
||||
write_build_config("${target_name}__build_config") {
|
||||
type = "deps_dex"
|
||||
|
@ -30,6 +30,7 @@ assert(is_android)
|
||||
# jni_package = "foo"
|
||||
# }
|
||||
template("generate_jni") {
|
||||
set_sources_assignment_filter([])
|
||||
if (defined(invoker.testonly)) {
|
||||
testonly = invoker.testonly
|
||||
}
|
||||
@ -128,6 +129,7 @@ template("generate_jni") {
|
||||
# jni_package = "foo"
|
||||
# }
|
||||
template("generate_jar_jni") {
|
||||
set_sources_assignment_filter([])
|
||||
if (defined(invoker.testonly)) {
|
||||
testonly = invoker.testonly
|
||||
}
|
||||
@ -237,6 +239,7 @@ template("generate_jar_jni") {
|
||||
# include_path = "android/java/templates"
|
||||
# }
|
||||
template("java_cpp_template") {
|
||||
set_sources_assignment_filter([])
|
||||
if (defined(invoker.testonly)) {
|
||||
testonly = invoker.testonly
|
||||
}
|
||||
@ -333,6 +336,7 @@ template("java_cpp_template") {
|
||||
# ]
|
||||
# }
|
||||
template("java_cpp_enum") {
|
||||
set_sources_assignment_filter([])
|
||||
if (defined(invoker.testonly)) {
|
||||
testonly = invoker.testonly
|
||||
}
|
||||
@ -392,6 +396,7 @@ template("java_cpp_enum") {
|
||||
# output = "$target_gen_dir/AndroidManifest.xml"
|
||||
# }
|
||||
template("jinja_template") {
|
||||
set_sources_assignment_filter([])
|
||||
if (defined(invoker.testonly)) {
|
||||
testonly = invoker.testonly
|
||||
}
|
||||
@ -448,6 +453,7 @@ template("jinja_template") {
|
||||
# variables = ["color=red"]
|
||||
# }
|
||||
template("jinja_template_resources") {
|
||||
set_sources_assignment_filter([])
|
||||
if (defined(invoker.testonly)) {
|
||||
testonly = invoker.testonly
|
||||
}
|
||||
@ -530,6 +536,7 @@ template("jinja_template_resources") {
|
||||
# custom_package = "org.chromium.foo"
|
||||
# }
|
||||
template("android_resources") {
|
||||
set_sources_assignment_filter([])
|
||||
if (defined(invoker.testonly)) {
|
||||
testonly = invoker.testonly
|
||||
}
|
||||
@ -600,6 +607,7 @@ template("android_resources") {
|
||||
# grd_file = "foo_strings.grd"
|
||||
# }
|
||||
template("java_strings_grd") {
|
||||
set_sources_assignment_filter([])
|
||||
if (defined(invoker.testonly)) {
|
||||
testonly = invoker.testonly
|
||||
}
|
||||
@ -666,6 +674,7 @@ template("java_strings_grd") {
|
||||
# ]
|
||||
# }
|
||||
template("java_strings_grd_prebuilt") {
|
||||
set_sources_assignment_filter([])
|
||||
if (defined(invoker.testonly)) {
|
||||
testonly = invoker.testonly
|
||||
}
|
||||
@ -725,6 +734,8 @@ template("java_strings_grd_prebuilt") {
|
||||
# main_class = "org.chromium.foo.FooMain"
|
||||
# }
|
||||
template("java_binary") {
|
||||
set_sources_assignment_filter([])
|
||||
|
||||
# TODO(cjhopman): This should not act like a java_library for dependents (i.e.
|
||||
# dependents shouldn't get the jar in their classpath, etc.).
|
||||
java_library_impl(target_name) {
|
||||
@ -810,6 +821,7 @@ template("java_binary") {
|
||||
# ]
|
||||
# }
|
||||
template("java_library") {
|
||||
set_sources_assignment_filter([])
|
||||
java_library_impl(target_name) {
|
||||
if (defined(invoker.DEPRECATED_java_in_dir)) {
|
||||
DEPRECATED_java_in_dir = invoker.DEPRECATED_java_in_dir
|
||||
@ -876,6 +888,7 @@ template("java_library") {
|
||||
# ]
|
||||
# }
|
||||
template("java_prebuilt") {
|
||||
set_sources_assignment_filter([])
|
||||
java_prebuilt_impl(target_name) {
|
||||
jar_path = invoker.jar_path
|
||||
if (defined(invoker.testonly)) {
|
||||
@ -942,6 +955,7 @@ template("java_prebuilt") {
|
||||
# ]
|
||||
# }
|
||||
template("android_library") {
|
||||
set_sources_assignment_filter([])
|
||||
assert(!defined(invoker.jar_path),
|
||||
"android_library does not support a custom jar path")
|
||||
java_library_impl(target_name) {
|
||||
@ -1008,6 +1022,7 @@ template("android_library") {
|
||||
# will be packaged into the resulting .dex.jar file.
|
||||
# dex_path: location at which the output file will be put
|
||||
template("android_standalone_library") {
|
||||
set_sources_assignment_filter([])
|
||||
deps_dex(target_name) {
|
||||
deps = invoker.deps
|
||||
dex_path = invoker.dex_path
|
||||
@ -1037,6 +1052,7 @@ template("android_standalone_library") {
|
||||
# ]
|
||||
# }
|
||||
template("android_java_prebuilt") {
|
||||
set_sources_assignment_filter([])
|
||||
java_prebuilt_impl(target_name) {
|
||||
jar_path = invoker.jar_path
|
||||
supports_android = true
|
||||
@ -1105,6 +1121,7 @@ template("android_java_prebuilt") {
|
||||
# ]
|
||||
# }
|
||||
template("android_apk") {
|
||||
set_sources_assignment_filter([])
|
||||
if (defined(invoker.testonly)) {
|
||||
testonly = invoker.testonly
|
||||
}
|
||||
@ -1437,6 +1454,7 @@ template("android_apk") {
|
||||
# unittests_dep = ":foo_unittests"
|
||||
# }
|
||||
template("unittest_apk") {
|
||||
set_sources_assignment_filter([])
|
||||
testonly = true
|
||||
|
||||
assert(defined(invoker.unittests_dep), "Need unittests_dep for $target_name")
|
||||
@ -1508,6 +1526,7 @@ template("unittest_apk") {
|
||||
# ]
|
||||
# }
|
||||
template("android_aidl") {
|
||||
set_sources_assignment_filter([])
|
||||
if (defined(invoker.testonly)) {
|
||||
testonly = invoker.testonly
|
||||
}
|
||||
@ -1583,6 +1602,7 @@ template("android_aidl") {
|
||||
# binary = "$root_build_dir/exe.stripped/foo"
|
||||
# }
|
||||
template("create_native_executable_dist") {
|
||||
set_sources_assignment_filter([])
|
||||
if (defined(invoker.testonly)) {
|
||||
testonly = invoker.testonly
|
||||
}
|
||||
@ -1663,6 +1683,7 @@ template("create_native_executable_dist") {
|
||||
# sources = [ "$proto_path/foo.proto" ]
|
||||
# }
|
||||
template("proto_java_library") {
|
||||
set_sources_assignment_filter([])
|
||||
_protoc_dep = "//third_party/android_protobuf:android_protoc($host_toolchain)"
|
||||
_protoc_out_dir = get_label_info(_protoc_dep, "root_out_dir")
|
||||
_protoc_bin = "$_protoc_out_dir/android_protoc"
|
||||
@ -1705,6 +1726,7 @@ template("proto_java_library") {
|
||||
|
||||
# TODO(GYP): implement this.
|
||||
template("uiautomator_test") {
|
||||
set_sources_assignment_filter([])
|
||||
if (defined(invoker.testonly)) {
|
||||
testonly = invoker.testonly
|
||||
}
|
||||
|
@ -2,6 +2,8 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//testing/test.gni")
|
||||
|
||||
config("cacheinvalidation_config") {
|
||||
include_dirs = [
|
||||
"overrides",
|
||||
|
@ -4,6 +4,9 @@
|
||||
|
||||
# Snappy is a compression library we use.
|
||||
# TODO(brettw) It's not clear why this needs to be parameterized.
|
||||
|
||||
import("//testing/test.gni")
|
||||
|
||||
use_snappy = true
|
||||
|
||||
defines = [ "LEVELDB_PLATFORM_CHROMIUM=1" ]
|
||||
|
@ -2,6 +2,8 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//testing/test.gni")
|
||||
|
||||
component("cc") {
|
||||
sources = [
|
||||
"animation/animation.cc",
|
||||
|
@ -2,6 +2,8 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//testing/test.gni")
|
||||
|
||||
# GYP version: //cc/blink/cc_blink.gyp:cc_blink
|
||||
component("blink") {
|
||||
output_name = "cc_blink"
|
||||
|
@ -6,6 +6,7 @@ import("//build/config/android/config.gni")
|
||||
import("//build/config/android/rules.gni")
|
||||
import("//build/module_args/v8.gni")
|
||||
import("//chrome/version.gni")
|
||||
import("//testing/test.gni")
|
||||
import("//third_party/icu/config.gni")
|
||||
import("channel.gni")
|
||||
|
||||
|
@ -5,6 +5,7 @@
|
||||
import("//build/config/features.gni")
|
||||
import("//build/config/ui.gni")
|
||||
import("//build/module_args/v8.gni")
|
||||
import("//testing/test.gni")
|
||||
|
||||
# This target exists to reference other test executables to bring these files
|
||||
# into the build.
|
||||
|
@ -2,6 +2,8 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//testing/test.gni")
|
||||
|
||||
# This test appears to be a legacy target consisting of files not yet moved
|
||||
# elsewhere.
|
||||
test("perf") {
|
||||
|
@ -4,6 +4,7 @@
|
||||
|
||||
import("//build/config/allocator.gni")
|
||||
import("//build/config/ui.gni")
|
||||
import("//testing/test.gni")
|
||||
import("//third_party/protobuf/proto_library.gni")
|
||||
|
||||
assert(is_chromeos, "Non-ChromeOS builds must not depend on //chromeos")
|
||||
|
@ -4,6 +4,7 @@
|
||||
|
||||
import("//build/config/features.gni")
|
||||
import("//build/config/ui.gni")
|
||||
import("//testing/test.gni")
|
||||
|
||||
# Collection of all components. You wouldn't link to this, but this is rather
|
||||
# to reference the files so they can be compiled by the build system.
|
||||
@ -242,6 +243,7 @@ test("components_unittests") {
|
||||
"//components/domain_reliability:unit_tests",
|
||||
"//components/favicon_base:unit_tests",
|
||||
"//components/google/core/browser:unit_tests",
|
||||
"//components/invalidation:unittests",
|
||||
"//components/login:unit_tests",
|
||||
"//components/metrics:unit_tests",
|
||||
"//components/omnibox:unit_tests",
|
||||
|
@ -2,6 +2,8 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//testing/test.gni")
|
||||
|
||||
source_set("proximity_auth") {
|
||||
sources = [
|
||||
"base64url.cc",
|
||||
|
@ -6,6 +6,7 @@ import("//build/config/crypto.gni")
|
||||
import("//build/config/features.gni")
|
||||
import("//build/config/ui.gni")
|
||||
import("//build/module_args/v8.gni")
|
||||
import("//testing/test.gni")
|
||||
import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni")
|
||||
|
||||
content_tests_gypi_values =
|
||||
@ -363,6 +364,8 @@ if (!is_mac) {
|
||||
"//content/shell:content_shell_lib",
|
||||
"//testing/android:native_test_util",
|
||||
]
|
||||
|
||||
use_launcher = false
|
||||
}
|
||||
|
||||
if (is_mac) {
|
||||
|
@ -2,6 +2,8 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//testing/test.gni")
|
||||
|
||||
static_library("courgette_lib") {
|
||||
sources = [
|
||||
"adjustment_method.cc",
|
||||
|
@ -3,6 +3,7 @@
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//build/config/crypto.gni")
|
||||
import("//testing/test.gni")
|
||||
|
||||
component("crypto") {
|
||||
output_name = "crcrypto" # Avoid colliding with OpenSSL's libcrypto.
|
||||
|
@ -2,6 +2,7 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//testing/test.gni")
|
||||
import("//third_party/protobuf/proto_library.gni")
|
||||
|
||||
component("dbus") {
|
||||
|
@ -2,6 +2,7 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//testing/test.gni")
|
||||
import("//tools/grit/grit_rule.gni")
|
||||
import("//tools/grit/repack.gni")
|
||||
|
||||
|
@ -3,6 +3,7 @@
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//build/module_args/v8.gni")
|
||||
import("//testing/test.gni")
|
||||
|
||||
component("gin") {
|
||||
sources = [
|
||||
|
@ -3,6 +3,7 @@
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//build/config/features.gni")
|
||||
import("//testing/test.gni")
|
||||
|
||||
declare_args() {
|
||||
# You can set the variable 'use_official_google_api_keys' to true
|
||||
|
@ -2,6 +2,7 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//testing/test.gni")
|
||||
import("//third_party/protobuf/proto_library.gni")
|
||||
|
||||
component("gcm") {
|
||||
|
@ -33,6 +33,8 @@
|
||||
#
|
||||
# gpu/skia_bindings/skia_bindings.gyp:gpu_skia_bindings => //gpu/skia_bindings
|
||||
|
||||
import("//testing/test.gni")
|
||||
|
||||
component("gpu") {
|
||||
public_deps = [
|
||||
"//gpu/command_buffer/client",
|
||||
|
@ -2,6 +2,8 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//testing/test.gni")
|
||||
|
||||
component("ipc") {
|
||||
sources = [
|
||||
"ipc_channel.cc",
|
||||
|
@ -2,6 +2,7 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//testing/test.gni")
|
||||
import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni")
|
||||
|
||||
mojom("client_channel") {
|
||||
|
@ -8,6 +8,7 @@ import("//build/config/features.gni")
|
||||
import("//build/config/linux/pkg_config.gni")
|
||||
import("//build/config/ui.gni")
|
||||
import("//media/media_options.gni")
|
||||
import("//testing/test.gni")
|
||||
|
||||
# Common configuration for targets in the media directory.
|
||||
# NOT for exporting.
|
||||
|
@ -1,6 +1,9 @@
|
||||
# Copyright 2014 The Chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//testing/test.gni")
|
||||
|
||||
component("blink") {
|
||||
output_name = "media_blink"
|
||||
|
||||
|
@ -2,6 +2,8 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//testing/test.gni")
|
||||
|
||||
component("cast") {
|
||||
deps = [
|
||||
":sender",
|
||||
|
@ -2,6 +2,7 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//testing/test.gni")
|
||||
import("//third_party/mojo/src/mojo/public/mojo_application.gni")
|
||||
|
||||
# Target naming conventions:
|
||||
|
@ -2,6 +2,8 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//testing/test.gni")
|
||||
|
||||
# GYP version: mojo/mojo_base.gyp:mojo_common_lib
|
||||
component("common") {
|
||||
output_name = "mojo_common_lib"
|
||||
|
@ -2,6 +2,8 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//testing/test.gni")
|
||||
|
||||
# GYP version: mojo/mojo_converters.gypi:mojo_surfaces_lib_unittests
|
||||
test("mojo_surfaces_lib_unittests") {
|
||||
deps = [
|
||||
|
@ -2,6 +2,7 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//testing/test.gni")
|
||||
import("//third_party/mojo/src/mojo/public/mojo.gni")
|
||||
import("//third_party/mojo/src/mojo/public/mojo_application.gni")
|
||||
|
||||
|
@ -3,6 +3,7 @@
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//build/config/ui.gni")
|
||||
import("//testing/test.gni")
|
||||
|
||||
test("mojo_view_manager_lib_unittests") {
|
||||
sources = [
|
||||
|
@ -7,6 +7,7 @@ import("//build/config/features.gni")
|
||||
import("//build/config/ui.gni")
|
||||
import("//build/module_args/v8.gni")
|
||||
import("//url/config.gni")
|
||||
import("//testing/test.gni")
|
||||
|
||||
# TODO(cjhopman): //build/config/android/rules.gni also imports grit_rule.gni.
|
||||
# Currently, that file can't be imported multiple times. Make this always
|
||||
|
@ -4,6 +4,7 @@
|
||||
|
||||
import("//build/config/features.gni")
|
||||
import("//build/config/ui.gni")
|
||||
import("//testing/test.gni")
|
||||
if (is_mac) {
|
||||
import("//build/config/mac/mac_sdk.gni")
|
||||
}
|
||||
|
@ -5,6 +5,8 @@
|
||||
# Note that this build file assumes rlz_use_chrome_net which is a condition in
|
||||
# the GYP file, but is always true for Chrome builds.
|
||||
|
||||
import("//testing/test.gni")
|
||||
|
||||
config("rlz_config") {
|
||||
defines = [ "RLZ_NETWORK_IMPLEMENTATION_CHROME_NET" ]
|
||||
}
|
||||
|
@ -3,6 +3,7 @@
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//build/config/features.gni")
|
||||
import("//testing/test.gni")
|
||||
|
||||
declare_args() {
|
||||
compile_suid_client = is_linux
|
||||
|
@ -3,6 +3,7 @@
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//build/config/mac/mac_sdk.gni")
|
||||
import("//testing/test.gni")
|
||||
|
||||
component("sandbox") {
|
||||
sources = [
|
||||
|
@ -2,6 +2,8 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//testing/test.gni")
|
||||
|
||||
source_set("sandbox") {
|
||||
sources = [
|
||||
"src/acl.cc",
|
||||
|
@ -4,12 +4,10 @@
|
||||
|
||||
import("//build/config/features.gni")
|
||||
import("//build/config/ui.gni")
|
||||
import("//testing/test.gni")
|
||||
if (cpu_arch == "arm") {
|
||||
import("//build/config/arm.gni")
|
||||
}
|
||||
if (is_android) {
|
||||
import("//build/config/android/rules.gni")
|
||||
}
|
||||
|
||||
skia_support_gpu = !is_ios
|
||||
skia_support_pdf = !is_ios && (enable_basic_printing || enable_print_preview)
|
||||
@ -746,13 +744,3 @@ test("skia_unittests") {
|
||||
"//ui/gfx/geometry",
|
||||
]
|
||||
}
|
||||
|
||||
if (is_android) {
|
||||
# GYP: //skia/skia_tests.gyp:skia_unittests_apk
|
||||
unittest_apk("skia_unittests_apk") {
|
||||
unittests_dep = ":skia_unittests"
|
||||
deps = [
|
||||
":skia_unittests",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,8 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//testing/test.gni")
|
||||
|
||||
component("sql") {
|
||||
sources = [
|
||||
"connection.cc",
|
||||
|
@ -3,6 +3,7 @@
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//build/config/features.gni")
|
||||
import("//testing/test.gni")
|
||||
|
||||
component("sync") {
|
||||
public_deps = [
|
||||
@ -645,13 +646,6 @@ test("sync_unit_tests") {
|
||||
":test_support_sync_internal_api",
|
||||
]
|
||||
|
||||
# TODO(GYP)
|
||||
# ['OS == "android"', {
|
||||
# 'dependencies': [
|
||||
# '../testing/android/native_test.gyp:native_test_native_code',
|
||||
# ],
|
||||
# }],
|
||||
|
||||
if (is_chromeos) {
|
||||
# Required by get_session_name_unittest.cc on Chrome OS.
|
||||
deps += [ "//chromeos" ]
|
||||
@ -812,12 +806,4 @@ if (is_android) {
|
||||
"//base",
|
||||
]
|
||||
}
|
||||
|
||||
# GYP: //sync/sync_tests.gypi:sync_unit_tests_apk
|
||||
unittest_apk("sync_unit_tests_apk") {
|
||||
unittests_dep = ":sync_unit_tests"
|
||||
deps = [
|
||||
":sync_unit_tests",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
234
testing/test.gni
234
testing/test.gni
@ -1,3 +1,237 @@
|
||||
# Copyright 2015 The Chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
# ==============================================================================
|
||||
# TEST SETUP
|
||||
# ==============================================================================
|
||||
|
||||
# Define a test as an executable (or apk on Android) with the "testonly" flag
|
||||
# set.
|
||||
template("test") {
|
||||
if (is_android) {
|
||||
import("//build/config/android/config.gni")
|
||||
import("//build/config/android/rules.gni")
|
||||
|
||||
main_target_name = target_name
|
||||
library_name = "_${target_name}__library"
|
||||
apk_name = "${target_name}_apk"
|
||||
|
||||
shared_library(library_name) {
|
||||
# Configs will always be defined since we set_defaults for a component
|
||||
# in the main config. We want to use those rather than whatever came with
|
||||
# the nested shared/static library inside the component.
|
||||
configs = [] # Prevent list overwriting warning.
|
||||
configs = invoker.configs
|
||||
|
||||
# See above call.
|
||||
set_sources_assignment_filter([])
|
||||
|
||||
testonly = true
|
||||
|
||||
if (defined(invoker.all_dependent_configs)) {
|
||||
all_dependent_configs = invoker.all_dependent_configs
|
||||
}
|
||||
if (defined(invoker.allow_circular_includes_from)) {
|
||||
allow_circular_includes_from = invoker.allow_circular_includes_from
|
||||
}
|
||||
if (defined(invoker.cflags)) {
|
||||
cflags = invoker.cflags
|
||||
}
|
||||
if (defined(invoker.cflags_c)) {
|
||||
cflags_c = invoker.cflags_c
|
||||
}
|
||||
if (defined(invoker.cflags_cc)) {
|
||||
cflags_cc = invoker.cflags_cc
|
||||
}
|
||||
if (defined(invoker.cflags_objc)) {
|
||||
cflags_objc = invoker.cflags_objc
|
||||
}
|
||||
if (defined(invoker.cflags_objcc)) {
|
||||
cflags_objcc = invoker.cflags_objcc
|
||||
}
|
||||
if (defined(invoker.check_includes)) {
|
||||
check_includes = invoker.check_includes
|
||||
}
|
||||
if (defined(invoker.data)) {
|
||||
data = invoker.data
|
||||
}
|
||||
if (defined(invoker.data_deps)) {
|
||||
data_deps = invoker.data_deps
|
||||
}
|
||||
if (defined(invoker.datadeps)) {
|
||||
datadeps = invoker.datadeps
|
||||
}
|
||||
if (defined(invoker.defines)) {
|
||||
defines = invoker.defines
|
||||
}
|
||||
deps = []
|
||||
if (!defined(invoker.use_launcher) || invoker.use_launcher) {
|
||||
deps += [ "//testing/android:native_test_native_code" ]
|
||||
}
|
||||
if (defined(invoker.deps)) {
|
||||
deps += invoker.deps
|
||||
}
|
||||
if (defined(invoker.direct_dependent_configs)) {
|
||||
direct_dependent_configs = invoker.direct_dependent_configs
|
||||
}
|
||||
if (defined(invoker.forward_dependent_configs_from)) {
|
||||
forward_dependent_configs_from = invoker.forward_dependent_configs_from
|
||||
}
|
||||
if (defined(invoker.include_dirs)) {
|
||||
include_dirs = invoker.include_dirs
|
||||
}
|
||||
if (defined(invoker.ldflags)) {
|
||||
ldflags = invoker.ldflags
|
||||
}
|
||||
if (defined(invoker.lib_dirs)) {
|
||||
lib_dirs = invoker.lib_dirs
|
||||
}
|
||||
if (defined(invoker.libs)) {
|
||||
libs = invoker.libs
|
||||
}
|
||||
if (defined(invoker.output_extension)) {
|
||||
output_extension = invoker.output_extension
|
||||
}
|
||||
if (defined(invoker.output_name)) {
|
||||
output_name = invoker.output_name
|
||||
}
|
||||
if (defined(invoker.public)) {
|
||||
public = invoker.public
|
||||
}
|
||||
if (defined(invoker.public_configs)) {
|
||||
public_configs = invoker.public_configs
|
||||
}
|
||||
if (defined(invoker.public_deps)) {
|
||||
public_deps = invoker.public_deps
|
||||
}
|
||||
if (defined(invoker.sources)) {
|
||||
sources = invoker.sources
|
||||
}
|
||||
if (defined(invoker.visibility)) {
|
||||
visibility = invoker.visibility
|
||||
}
|
||||
}
|
||||
|
||||
unittest_apk(apk_name) {
|
||||
unittests_dep = ":$library_name"
|
||||
apk_name = main_target_name
|
||||
if (defined(invoker.output_name)) {
|
||||
test_output_name = invoker.output_name
|
||||
unittests_binary = "lib${test_output_name}.so"
|
||||
}
|
||||
deps = [
|
||||
":$library_name",
|
||||
]
|
||||
if (defined(invoker.apk_deps)) {
|
||||
deps += invoker.apk_deps
|
||||
}
|
||||
}
|
||||
|
||||
group(target_name) {
|
||||
testonly = true
|
||||
|
||||
deps = [
|
||||
":$library_name",
|
||||
":$apk_name",
|
||||
]
|
||||
}
|
||||
} else {
|
||||
executable(target_name) {
|
||||
# See above.
|
||||
configs = [] # Prevent list overwriting warning.
|
||||
configs = invoker.configs
|
||||
|
||||
# See above call.
|
||||
set_sources_assignment_filter([])
|
||||
|
||||
testonly = true
|
||||
|
||||
if (defined(invoker.all_dependent_configs)) {
|
||||
all_dependent_configs = invoker.all_dependent_configs
|
||||
}
|
||||
if (defined(invoker.allow_circular_includes_from)) {
|
||||
allow_circular_includes_from = invoker.allow_circular_includes_from
|
||||
}
|
||||
if (defined(invoker.cflags)) {
|
||||
cflags = invoker.cflags
|
||||
}
|
||||
if (defined(invoker.cflags_c)) {
|
||||
cflags_c = invoker.cflags_c
|
||||
}
|
||||
if (defined(invoker.cflags_cc)) {
|
||||
cflags_cc = invoker.cflags_cc
|
||||
}
|
||||
if (defined(invoker.cflags_objc)) {
|
||||
cflags_objc = invoker.cflags_objc
|
||||
}
|
||||
if (defined(invoker.cflags_objcc)) {
|
||||
cflags_objcc = invoker.cflags_objcc
|
||||
}
|
||||
if (defined(invoker.check_includes)) {
|
||||
check_includes = invoker.check_includes
|
||||
}
|
||||
if (defined(invoker.data)) {
|
||||
data = invoker.data
|
||||
}
|
||||
if (defined(invoker.data_deps)) {
|
||||
data_deps = invoker.data_deps
|
||||
}
|
||||
if (defined(invoker.datadeps)) {
|
||||
datadeps = invoker.datadeps
|
||||
}
|
||||
if (defined(invoker.defines)) {
|
||||
defines = invoker.defines
|
||||
}
|
||||
|
||||
# All shared libraries must have the sanitizer deps to properly link in
|
||||
# asan mode (this target will be empty in other cases).
|
||||
if (defined(invoker.deps)) {
|
||||
deps = invoker.deps + [ "//build/config/sanitizers:deps" ]
|
||||
} else {
|
||||
deps = [
|
||||
"//build/config/sanitizers:deps",
|
||||
]
|
||||
}
|
||||
if (defined(invoker.direct_dependent_configs)) {
|
||||
direct_dependent_configs = invoker.direct_dependent_configs
|
||||
}
|
||||
if (defined(invoker.forward_dependent_configs_from)) {
|
||||
forward_dependent_configs_from = invoker.forward_dependent_configs_from
|
||||
}
|
||||
if (defined(invoker.include_dirs)) {
|
||||
include_dirs = invoker.include_dirs
|
||||
}
|
||||
if (defined(invoker.ldflags)) {
|
||||
ldflags = invoker.ldflags
|
||||
}
|
||||
if (defined(invoker.lib_dirs)) {
|
||||
lib_dirs = invoker.lib_dirs
|
||||
}
|
||||
if (defined(invoker.libs)) {
|
||||
libs = invoker.libs
|
||||
}
|
||||
if (defined(invoker.output_extension)) {
|
||||
output_extension = invoker.output_extension
|
||||
}
|
||||
if (defined(invoker.output_name)) {
|
||||
output_name = invoker.output_name
|
||||
}
|
||||
if (defined(invoker.public)) {
|
||||
public = invoker.public
|
||||
}
|
||||
if (defined(invoker.public_configs)) {
|
||||
public_configs = invoker.public_configs
|
||||
}
|
||||
if (defined(invoker.public_deps)) {
|
||||
public_deps = invoker.public_deps
|
||||
}
|
||||
if (defined(invoker.sources)) {
|
||||
sources = invoker.sources
|
||||
}
|
||||
if (defined(invoker.visibility)) {
|
||||
visibility = invoker.visibility
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
1
third_party/libaddressinput/BUILD.gn
vendored
1
third_party/libaddressinput/BUILD.gn
vendored
@ -2,6 +2,7 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//testing/test.gni")
|
||||
import("//tools/grit/grit_rule.gni")
|
||||
|
||||
libaddressinput_util_files = [
|
||||
|
1
third_party/libphonenumber/BUILD.gn
vendored
1
third_party/libphonenumber/BUILD.gn
vendored
@ -2,6 +2,7 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//testing/test.gni")
|
||||
import("//third_party/protobuf/proto_library.gni")
|
||||
|
||||
proto_library("proto") {
|
||||
|
@ -2,6 +2,8 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//testing/test.gni")
|
||||
|
||||
test("js_unittests") {
|
||||
deps = [
|
||||
"../../js",
|
||||
|
19
third_party/mojo/src/mojo/edk/system/BUILD.gn
vendored
19
third_party/mojo/src/mojo/edk/system/BUILD.gn
vendored
@ -2,13 +2,9 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//testing/test.gni")
|
||||
import("../mojo_edk.gni")
|
||||
|
||||
if (is_android) {
|
||||
import("//build/config/android/config.gni")
|
||||
import("//build/config/android/rules.gni")
|
||||
}
|
||||
|
||||
config("system_config") {
|
||||
defines = [
|
||||
# Ensures that dependent projects import the core functions on Windows.
|
||||
@ -173,10 +169,6 @@ test("mojo_system_unittests") {
|
||||
"//testing/gtest",
|
||||
]
|
||||
|
||||
if (is_android) {
|
||||
deps += [ "//testing/android:native_test_native_code" ]
|
||||
}
|
||||
|
||||
allow_circular_includes_from = [ "../embedder:embedder_unittests" ]
|
||||
}
|
||||
|
||||
@ -198,12 +190,3 @@ test("mojo_message_pipe_perftests") {
|
||||
"//testing/gtest",
|
||||
]
|
||||
}
|
||||
|
||||
if (is_android) {
|
||||
unittest_apk("mojo_system_unittests_apk") {
|
||||
deps = [
|
||||
":mojo_system_unittests",
|
||||
]
|
||||
unittests_dep = ":mojo_system_unittests"
|
||||
}
|
||||
}
|
||||
|
1
third_party/mojo/src/mojo/edk/test/BUILD.gn
vendored
1
third_party/mojo/src/mojo/edk/test/BUILD.gn
vendored
@ -2,6 +2,7 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//testing/test.gni")
|
||||
import("../mojo_edk.gni")
|
||||
|
||||
mojo_edk_source_set("test_support") {
|
||||
|
@ -2,6 +2,8 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//testing/test.gni")
|
||||
|
||||
defines = [ "GN_BUILD" ]
|
||||
|
||||
static_library("gn_lib") {
|
||||
|
@ -1,4 +1,7 @@
|
||||
# Don't separate simple statements in a scope.
|
||||
|
||||
import("//testing/test.gni")
|
||||
|
||||
test("something") {
|
||||
if (is_linux) {
|
||||
sources -= [ "file_version_info_unittest.cc" ]
|
||||
|
@ -3,6 +3,7 @@
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("config.gni")
|
||||
import("//testing/test.gni")
|
||||
|
||||
assert(relocation_packing_supported)
|
||||
|
||||
|
@ -3,6 +3,7 @@
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//build/json_schema_api.gni")
|
||||
import("//testing/test.gni")
|
||||
|
||||
component("accessibility") {
|
||||
sources = [
|
||||
|
@ -3,6 +3,7 @@
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//build/config/android/rules.gni")
|
||||
import("//testing/test.gni")
|
||||
|
||||
assert(is_android)
|
||||
|
||||
@ -153,18 +154,10 @@ test("ui_android_unittests") {
|
||||
"//base/test:test_support",
|
||||
"//cc",
|
||||
"//skia",
|
||||
"//testing/android:native_test_native_code",
|
||||
"//testing/gtest",
|
||||
"//ui/base",
|
||||
"//ui/gfx",
|
||||
"//ui/resources:ui_test_pak",
|
||||
]
|
||||
}
|
||||
|
||||
unittest_apk("ui_android_unittests_apk") {
|
||||
deps = [
|
||||
":ui_android_unittests",
|
||||
":ui_java",
|
||||
]
|
||||
unittests_dep = ":ui_android_unittests"
|
||||
apk_deps = [ ":ui_java" ]
|
||||
}
|
||||
|
@ -3,6 +3,7 @@
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//build/config/ui.gni")
|
||||
import("//testing/test.gni")
|
||||
|
||||
component("app_list") {
|
||||
sources = [
|
||||
|
@ -3,6 +3,7 @@
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//build/config/ui.gni")
|
||||
import("//testing/test.gni")
|
||||
|
||||
component("aura") {
|
||||
sources = [
|
||||
|
@ -3,6 +3,7 @@
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//build/config/ui.gni")
|
||||
import("//testing/test.gni")
|
||||
|
||||
if (is_android) {
|
||||
import("//build/config/android/config.gni")
|
||||
@ -878,9 +879,7 @@ test("ui_base_unittests") {
|
||||
}
|
||||
|
||||
if (is_android) {
|
||||
deps += [
|
||||
#"testing/android/native_test.gyp:native_test_native_code" TODO(GYP)
|
||||
]
|
||||
apk_deps = [ "//chrome:resources" ]
|
||||
}
|
||||
|
||||
if (use_pango) {
|
||||
@ -929,14 +928,4 @@ test("ui_base_unittests") {
|
||||
deps += [ "//chromeos" ]
|
||||
}
|
||||
}
|
||||
|
||||
# TODO(GYP) Mac (ui_base_tests_bundle)
|
||||
if (is_android) {
|
||||
unittest_apk("ui_base_unittests_apk") {
|
||||
unittests_dep = ":ui_base_unittests"
|
||||
deps = [
|
||||
":ui_base_unittests",
|
||||
"//chrome:resources",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,8 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//testing/test.gni")
|
||||
|
||||
component("ui_chromeos") {
|
||||
sources = [
|
||||
"accessibility_types.h",
|
||||
|
@ -3,6 +3,7 @@
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//build/config/ui.gni")
|
||||
import("//testing/test.gni")
|
||||
|
||||
component("compositor") {
|
||||
sources = [
|
||||
|
@ -3,6 +3,7 @@
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//build/config/ui.gni")
|
||||
import("//testing/test.gni")
|
||||
|
||||
component("display") {
|
||||
sources = [
|
||||
|
@ -3,6 +3,7 @@
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//build/config/ui.gni")
|
||||
import("//testing/test.gni")
|
||||
|
||||
static_library("dom4_keycode_converter") {
|
||||
sources = [
|
||||
|
@ -3,6 +3,7 @@
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//build/config/ui.gni")
|
||||
import("//testing/test.gni")
|
||||
|
||||
if (is_android) {
|
||||
import("//build/config/android/config.gni")
|
||||
|
@ -2,6 +2,7 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//testing/test.gni")
|
||||
import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni")
|
||||
import("//third_party/google_input_tools/closure.gni")
|
||||
import("//third_party/google_input_tools/inputview.gni")
|
||||
|
@ -4,6 +4,7 @@
|
||||
|
||||
import("//build/config/features.gni")
|
||||
import("//build/config/ui.gni")
|
||||
import("//testing/test.gni")
|
||||
|
||||
component("message_center") {
|
||||
deps = [
|
||||
|
@ -3,6 +3,7 @@
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//ui/ozone/ozone.gni")
|
||||
import("//testing/test.gni")
|
||||
|
||||
# The list of platforms that will be built.
|
||||
ozone_platforms = []
|
||||
|
@ -3,6 +3,7 @@
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//build/config/ui.gni")
|
||||
import("//testing/test.gni")
|
||||
if (is_android) {
|
||||
import("//build/config/android/config.gni")
|
||||
}
|
||||
|
@ -3,6 +3,7 @@
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//build/config/ui.gni")
|
||||
import("//testing/test.gni")
|
||||
|
||||
component("snapshot") {
|
||||
sources = [
|
||||
|
@ -3,6 +3,7 @@
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//build/config/ui.gni")
|
||||
import("//testing/test.gni")
|
||||
|
||||
if (is_android) {
|
||||
import("//build/config/android/rules.gni")
|
||||
|
@ -4,6 +4,7 @@
|
||||
|
||||
import("//build/config/features.gni")
|
||||
import("//build/config/ui.gni")
|
||||
import("//testing/test.gni")
|
||||
|
||||
gypi_values = exec_script("//build/gypi_to_gn.py",
|
||||
[ rebase_path("views.gyp") ],
|
||||
|
@ -3,6 +3,7 @@
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//build/config/ui.gni")
|
||||
import("//testing/test.gni")
|
||||
|
||||
component("wm") {
|
||||
sources = [
|
||||
|
@ -2,6 +2,7 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//testing/test.gni")
|
||||
import("//url/config.gni")
|
||||
|
||||
# Sets the USE_ICU_ALTERNATIVES_ON_ANDROID define based on the build flag.
|
||||
|
Reference in New Issue
Block a user