summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--BUILD.gn1
-rw-r--r--build/config/android/config.gni4
-rw-r--r--build/config/android/rules.gni6
-rw-r--r--chrome/test/BUILD.gn334
4 files changed, 176 insertions, 169 deletions
diff --git a/BUILD.gn b/BUILD.gn
index b18d34e2..3270889 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -184,6 +184,7 @@ group("root") {
"//third_party/openmax_dl/dl",
"//content/shell/android:content_shell_apk",
"//chrome/android:chrome_shell_apk",
+ "//chrome/test:test_support_unit",
"//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
"//ui/android:ui_java",
"//third_party/android_tools:android_gcm_java",
diff --git a/build/config/android/config.gni b/build/config/android/config.gni
index 82405dd..60934c2 100644
--- a/build/config/android/config.gni
+++ b/build/config/android/config.gni
@@ -12,7 +12,9 @@ if (is_android) {
if (has_chrome_android_internal) {
import("//clank/config.gni")
- } else {
+ }
+
+ if (!defined(default_android_sdk_root)) {
default_android_sdk_root = "//third_party/android_tools/sdk"
default_android_sdk_version = "21"
default_android_sdk_build_tools_version = "21.0.1"
diff --git a/build/config/android/rules.gni b/build/config/android/rules.gni
index 1e9501a..5075da9 100644
--- a/build/config/android/rules.gni
+++ b/build/config/android/rules.gni
@@ -1408,8 +1408,7 @@ template("android_apk") {
group(target_name) {
deps = final_deps
if (defined(invoker.datadeps)) {
- # TODO(cjhopman): Fix this when group datadeps works.
- deps += invoker.datadeps
+ datadeps = invoker.datadeps
}
}
}
@@ -1464,6 +1463,9 @@ template("unittest_apk") {
"//tools/android/forwarder2",
"//tools/android/md5sum",
]
+ if (defined(invoker.datadeps)) {
+ datadeps += invoker.datadeps
+ }
}
}
diff --git a/chrome/test/BUILD.gn b/chrome/test/BUILD.gn
index 8bda285..d56b1a7 100644
--- a/chrome/test/BUILD.gn
+++ b/chrome/test/BUILD.gn
@@ -5,11 +5,6 @@
import("//build/config/features.gni")
import("//build/config/ui.gni")
-gypi_values = exec_script("//build/gypi_to_gn.py",
- [ rebase_path("../chrome_tests.gypi") ],
- "scope",
- [ "../chrome_tests.gypi" ])
-
# This target exists to reference other test executables to bring these files
# into the build.
group("test") {
@@ -218,185 +213,192 @@ source_set("test_support_unit") {
]
}
-source_set("sync_integration_test_support") {
- testonly = true
-
- sources = rebase_path(gypi_values.test_support_sync_integration_sources,
- ".",
- "//chrome")
- deps = [
- ":test_support",
- "//base",
- "//chrome",
- "//chrome/browser",
- "//components/invalidation",
- "//components/invalidation:test_support",
- "//net",
- "//skia",
- "//sync",
- "//sync:test_support_sync_testserver",
- "//sync:test_support_sync_fake_server",
- "//ui/app_list:test_support",
- ]
-
- if (is_mac) {
- sources -= [
- "../browser/sync/test/integration/dictionary_helper.cc",
- "../browser/sync/test/integration/dictionary_helper.h",
- "../browser/sync/test/integration/dictionary_load_observer.cc",
- "../browser/sync/test/integration/dictionary_load_observer.h",
- ]
- }
- if (!enable_app_list) {
- sources -= [
- "../browser/sync/test/integration/sync_app_list_helper.cc",
- "../browser/sync/test/integration/sync_app_list_helper.h",
+if (!is_android) {
+ gypi_values = exec_script(
+ "//build/gypi_to_gn.py",
+ [ rebase_path("../chrome_tests.gypi") ],
+ "scope",
+ [ "../chrome_tests.gypi" ])
+
+ source_set("sync_integration_test_support") {
+ testonly = true
+ sources = rebase_path(gypi_values.test_support_sync_integration_sources,
+ ".",
+ "//chrome")
+ deps = [
+ ":test_support",
+ "//base",
+ "//chrome",
+ "//chrome/browser",
+ "//components/invalidation",
+ "//components/invalidation:test_support",
+ "//net",
+ "//skia",
+ "//sync",
+ "//sync:test_support_sync_testserver",
+ "//sync:test_support_sync_fake_server",
+ "//ui/app_list:test_support",
]
+
+ if (is_mac) {
+ sources -= [
+ "../browser/sync/test/integration/dictionary_helper.cc",
+ "../browser/sync/test/integration/dictionary_helper.h",
+ "../browser/sync/test/integration/dictionary_load_observer.cc",
+ "../browser/sync/test/integration/dictionary_load_observer.h",
+ ]
+ }
+ if (!enable_app_list) {
+ sources -= [
+ "../browser/sync/test/integration/sync_app_list_helper.cc",
+ "../browser/sync/test/integration/sync_app_list_helper.h",
+ ]
+ }
}
-}
-test("sync_integration_tests") {
- sources =
- rebase_path(gypi_values.sync_integration_tests_sources, ".", "//chrome")
+ test("sync_integration_tests") {
+ sources =
+ rebase_path(gypi_values.sync_integration_tests_sources, ".", "//chrome")
+
+ # TODO(phajdan.jr): Only temporary, to make transition easier.
+ defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
+
+ deps = [
+ ":sync_integration_test_support",
+ ":test_support",
+ "//base/allocator",
+ "//chrome:packed_extra_resources",
+ "//chrome:packed_resources",
+ "//chrome:resources",
+ "//chrome:strings",
+ "//chrome/common",
+ "//chrome/renderer",
+ "//crypto:platform",
+ "//sync",
+ "//testing/gmock",
+ "//testing/gtest",
+ "//third_party/icu",
+ "//third_party/leveldatabase",
+ "//third_party/npapi",
+ "//third_party/WebKit/public:blink",
+ ]
- # TODO(phajdan.jr): Only temporary, to make transition easier.
- defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
+ if (cld_version == 0 || cld_version == 2) {
+ # Language detection is irrelevant to sync, so it can depend on any
+ # implementation for CLD2. Dynamic is smaller, so go with dynamic.
+ deps += [ "//third_party/cld_2:cld2_dynamic" ]
+ }
+ if (is_mac) {
+ # Dictionary sync is disabled on Mac.
+ sources -= [
+ "../browser/sync/test/integration/multiple_client_dictionary_sync_test.cc",
+ "../browser/sync/test/integration/single_client_dictionary_sync_test.cc",
+ "../browser/sync/test/integration/two_client_dictionary_sync_test.cc",
+ ]
- deps = [
- ":sync_integration_test_support",
- ":test_support",
- "//base/allocator",
- "//chrome:packed_extra_resources",
- "//chrome:packed_resources",
- "//chrome:resources",
- "//chrome:strings",
- "//chrome/common",
- "//chrome/renderer",
- "//crypto:platform",
- "//sync",
- "//testing/gmock",
- "//testing/gtest",
- "//third_party/icu",
- "//third_party/leveldatabase",
- "//third_party/npapi",
- "//third_party/WebKit/public:blink",
- ]
+ # The sync_integration_tests do not run on mac without this flag.
+ # Search for comments about "xcode_settings" elsewhere in this file.
+ ldflags = [ "-Wl,-ObjC" ]
+ }
+ if (is_win) {
+ # TODO(GYP) figure out what these should map to.
+ #sources += [
+ # '<(SHARED_INTERMEDIATE_DIR)/chrome_version/other_version.rc',
+ # '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_unscaled_resources.rc',
+ #]
+ deps += [
+ "//third_party/wtl",
+ #'chrome_version_resources', TODO(GYP)
+ ]
+ } else {
+ sources -= [ "../app/chrome_version.rc.version" ]
+ }
- if (cld_version == 0 || cld_version == 2) {
- # Language detection is irrelevant to sync, so it can depend on any
- # implementation for CLD2. Dynamic is smaller, so go with dynamic.
- deps += [ "//third_party/cld_2:cld2_dynamic" ]
+ if (toolkit_views) {
+ deps += [ "//ui/views" ]
+ }
+ if (enable_basic_printing || enable_print_preview) {
+ deps += [ "//printing" ]
+ }
+ if (!enable_app_list) {
+ sources -= [
+ "../browser/sync/test/integration/single_client_app_list_sync_test.cc",
+ "../browser/sync/test/integration/two_client_app_list_sync_test.cc",
+ ]
+ }
+ if (!enable_supervised_users) {
+ sources -= [ "../browser/sync/test/integration/single_client_supervised_user_settings_sync_test.cc" ]
+ }
}
- if (is_mac) {
- # Dictionary sync is disabled on Mac.
- sources -= [
- "../browser/sync/test/integration/multiple_client_dictionary_sync_test.cc",
- "../browser/sync/test/integration/single_client_dictionary_sync_test.cc",
- "../browser/sync/test/integration/two_client_dictionary_sync_test.cc",
- ]
- # The sync_integration_tests do not run on mac without this flag.
- # Search for comments about "xcode_settings" elsewhere in this file.
- ldflags = [ "-Wl,-ObjC" ]
- }
- if (is_win) {
- # TODO(GYP) figure out what these should map to.
- #sources += [
- # '<(SHARED_INTERMEDIATE_DIR)/chrome_version/other_version.rc',
- # '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_unscaled_resources.rc',
- #]
- deps += [
- "//third_party/wtl",
- #'chrome_version_resources', TODO(GYP)
- ]
- } else {
- sources -= [ "../app/chrome_version.rc.version" ]
- }
+ test("sync_performance_tests") {
+ sources =
+ rebase_path(gypi_values.sync_performance_tests_sources, ".", "//chrome")
- if (toolkit_views) {
- deps += [ "//ui/views" ]
- }
- if (enable_basic_printing || enable_print_preview) {
- deps += [ "//printing" ]
- }
- if (!enable_app_list) {
- sources -= [
- "../browser/sync/test/integration/single_client_app_list_sync_test.cc",
- "../browser/sync/test/integration/two_client_app_list_sync_test.cc",
+ defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
+
+ deps = [
+ ":sync_integration_test_support",
+ "//base/allocator",
+ "//crypto:platform",
+ "//sync",
+ "//testing/gmock",
+ "//testing/gtest",
]
- }
- if (!enable_supervised_users) {
- sources -= [ "../browser/sync/test/integration/single_client_supervised_user_settings_sync_test.cc" ]
- }
-}
-test("sync_performance_tests") {
- sources =
- rebase_path(gypi_values.sync_performance_tests_sources, ".", "//chrome")
+ if (cld_version == 0 || cld_version == 2) {
+ # Language detection is irrelevant to sync, so it can depend on any
+ # implementation for CLD2. Dynamic is smaller, so go with dynamic.
+ deps += [ "//third_party/cld_2:cld2_dynamic" ]
+ }
- defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
+ if (is_mac) {
+ # Dictionary sync is disabled on Mac.
+ sources -= [ "../browser/sync/test/integration/performance/dictionary_sync_perf_test.cc" ]
- deps = [
- ":sync_integration_test_support",
- "//base/allocator",
- "//crypto:platform",
- "//sync",
- "//testing/gmock",
- "//testing/gtest",
- ]
+ # The sync_performance_tests do not run on mac without this flag.
+ # Search for comments about "xcode_settings" elsewhere in this file.
+ ldflags = [ "-Wl,-ObjC" ]
+ }
+ if (is_win) {
+ # TODO(GYP) figure out what these should map to.
+ #sources += [
+ # '<(SHARED_INTERMEDIATE_DIR)/chrome_version/other_version.rc',
+ # '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_unscaled_resources.rc',
+ #]
+ deps += [
+ "//third_party/wtl",
+ #'chrome_version_resources', TODO(GYP)
+ ]
+ } else {
+ sources -= [ "../app/chrome_version.rc.version" ]
+ }
- if (cld_version == 0 || cld_version == 2) {
- # Language detection is irrelevant to sync, so it can depend on any
- # implementation for CLD2. Dynamic is smaller, so go with dynamic.
- deps += [ "//third_party/cld_2:cld2_dynamic" ]
+ if (toolkit_views) {
+ deps += [ "//ui/views" ]
+ }
}
- if (is_mac) {
- # Dictionary sync is disabled on Mac.
- sources -= [ "../browser/sync/test/integration/performance/dictionary_sync_perf_test.cc" ]
+# Executable to measure time to load libraries.
+ test("load_library_perf_tests") {
+ sources = [
+ "../browser/load_library_perf_test.cc",
+ ]
- # The sync_performance_tests do not run on mac without this flag.
- # Search for comments about "xcode_settings" elsewhere in this file.
- ldflags = [ "-Wl,-ObjC" ]
- }
- if (is_win) {
- # TODO(GYP) figure out what these should map to.
- #sources += [
- # '<(SHARED_INTERMEDIATE_DIR)/chrome_version/other_version.rc',
- # '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_unscaled_resources.rc',
- #]
- deps += [
- "//third_party/wtl",
- #'chrome_version_resources', TODO(GYP)
+ deps = [
+ "//base/test:test_support_perf",
+ "//testing/gtest",
+ "//testing/perf",
+ "//third_party/widevine/cdm:version_h",
]
- } else {
- sources -= [ "../app/chrome_version.rc.version" ]
- }
- if (toolkit_views) {
- deps += [ "//ui/views" ]
+ # TODO(GYP) CDM adapter stuff.
+ #if (enable_pepper_cdms) {
+ # deps += [
+ # "//media/cdm/ppapi:clearkeycdmadapter",
+ # "//ppapi:ppapi_cpp",
+ # "//third_party/widevine/cdm:adapter",
+ # ]
+ #}
}
}
-
-# Executable to measure time to load libraries.
-test("load_library_perf_tests") {
- sources = [
- "../browser/load_library_perf_test.cc",
- ]
-
- deps = [
- "//base/test:test_support_perf",
- "//testing/gtest",
- "//testing/perf",
- "//third_party/widevine/cdm:version_h",
- ]
-
- # TODO(GYP) CDM adapter stuff.
- #if (enable_pepper_cdms) {
- # deps += [
- # "//media/cdm/ppapi:clearkeycdmadapter",
- # "//ppapi:ppapi_cpp",
- # "//third_party/widevine/cdm:adapter",
- # ]
- #}
-}