Commit 49bce2f7 authored by Hans Wennborg's avatar Hans Wennborg Committed by Commit Bot

Remove zlib unittests from unit_tests; they have their own test binary

These tests are in zlib_unittests, and that's already built and run by
the bots (after crrev.com/804566).

This removes the redundancy of building and running them twice, and
takes some load of the already very large unit_tests target.

While here, also move the zip and compression_utils to zlib_unittests
and try to clean up chrome/test/BUILD.gn from unnecessary zlib
references.

Bug: 352073
Change-Id: I3cfe020df9bc2699bbb160ae95b511840589e054
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2534930
Commit-Queue: Hans Wennborg <hans@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
Reviewed-by: default avatarNico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#826858}
parent 97e77290
...@@ -270,7 +270,6 @@ static_library("test_support") { ...@@ -270,7 +270,6 @@ static_library("test_support") {
"//testing/gmock", "//testing/gmock",
"//testing/gtest", "//testing/gtest",
"//third_party/leveldatabase", "//third_party/leveldatabase",
"//third_party/zlib",
"//ui/base", "//ui/base",
"//ui/events:events_base", "//ui/events:events_base",
"//ui/gfx:test_support", "//ui/gfx:test_support",
...@@ -3791,14 +3790,6 @@ test("unit_tests") { ...@@ -3791,14 +3790,6 @@ test("unit_tests") {
# Duplicate these tests here because PathService has more items in # Duplicate these tests here because PathService has more items in
# unit_tests than in base_unittests. # unit_tests than in base_unittests.
"../../base/path_service_unittest.cc", "../../base/path_service_unittest.cc",
# Chromium's zlib unit tests.
"../../third_party/zlib/contrib/tests/infcover.cc",
"../../third_party/zlib/contrib/tests/infcover.h",
"../../third_party/zlib/contrib/tests/utils_unittest.cc",
"../../third_party/zlib/google/compression_utils_unittest.cc",
"../../third_party/zlib/google/zip_reader_unittest.cc",
"../../third_party/zlib/google/zip_unittest.cc",
] ]
if (is_android) { if (is_android) {
...@@ -3940,13 +3931,6 @@ test("unit_tests") { ...@@ -3940,13 +3931,6 @@ test("unit_tests") {
[ "../browser/policy/browser_dm_token_storage_linux_unittest.cc" ] [ "../browser/policy/browser_dm_token_storage_linux_unittest.cc" ]
} }
# Required by Chromium's zlib unit tests.
include_dirs = [
"//third_party/googletest/src/googletest/include/gtest",
"//third_party/zlib",
"//third_party/zlib/google",
]
if (enable_downgrade_processing) { if (enable_downgrade_processing) {
sources += [ sources += [
"../browser/downgrade/snapshot_file_collector_unittest.cc", "../browser/downgrade/snapshot_file_collector_unittest.cc",
...@@ -4076,7 +4060,6 @@ test("unit_tests") { ...@@ -4076,7 +4060,6 @@ test("unit_tests") {
"//net/tools/testserver/", "//net/tools/testserver/",
"//third_party/pywebsocket3/src/mod_pywebsocket/", "//third_party/pywebsocket3/src/mod_pywebsocket/",
"//third_party/tlslite/", "//third_party/tlslite/",
"//third_party/zlib/google/test/data/",
"//tools/metrics/histograms/enums.xml", "//tools/metrics/histograms/enums.xml",
] ]
...@@ -4217,7 +4200,6 @@ test("unit_tests") { ...@@ -4217,7 +4200,6 @@ test("unit_tests") {
"//third_party/metrics_proto", "//third_party/metrics_proto",
"//third_party/re2", "//third_party/re2",
"//third_party/webrtc_overrides:webrtc_component", "//third_party/webrtc_overrides:webrtc_component",
"//third_party/zlib/google:compression_utils",
"//third_party/zxcvbn-cpp", "//third_party/zxcvbn-cpp",
"//ui/base:test_support", "//ui/base:test_support",
"//ui/display:test_support", "//ui/display:test_support",
...@@ -6337,7 +6319,6 @@ if (!is_android) { ...@@ -6337,7 +6319,6 @@ if (!is_android) {
"//third_party/hunspell", "//third_party/hunspell",
"//third_party/icu", "//third_party/icu",
"//third_party/libpng", "//third_party/libpng",
"//third_party/zlib",
"//ui/base:test_support", "//ui/base:test_support",
"//ui/resources:ui_test_pak", "//ui/resources:ui_test_pak",
"//ui/web_dialogs:test_support", "//ui/web_dialogs:test_support",
...@@ -6487,7 +6468,6 @@ if (!is_android) { ...@@ -6487,7 +6468,6 @@ if (!is_android) {
"//third_party/polymer/v1_0/components-chromium/iron-test-helpers/mock-interactions.js", "//third_party/polymer/v1_0/components-chromium/iron-test-helpers/mock-interactions.js",
"//third_party/pywebsocket3/src/mod_pywebsocket/", "//third_party/pywebsocket3/src/mod_pywebsocket/",
"//third_party/tlslite/", "//third_party/tlslite/",
"//third_party/zlib/google/test/data/",
"//tools/metrics/histograms/enums.xml", "//tools/metrics/histograms/enums.xml",
"//ui/webui/resources/js/", "//ui/webui/resources/js/",
"$root_out_dir/test_case.html", "$root_out_dir/test_case.html",
...@@ -6541,7 +6521,6 @@ if (!is_android) { ...@@ -6541,7 +6521,6 @@ if (!is_android) {
"//third_party/hunspell", "//third_party/hunspell",
"//third_party/icu", "//third_party/icu",
"//third_party/libpng", "//third_party/libpng",
"//third_party/zlib",
"//ui/base:base_interactive_ui_tests", "//ui/base:base_interactive_ui_tests",
"//ui/base:test_support", "//ui/base:test_support",
"//ui/base/clipboard:clipboard_test_support", "//ui/base/clipboard:clipboard_test_support",
...@@ -7360,7 +7339,6 @@ if (!is_fuchsia && !is_android) { ...@@ -7360,7 +7339,6 @@ if (!is_fuchsia && !is_android) {
"//third_party/hunspell", "//third_party/hunspell",
"//third_party/icu", "//third_party/icu",
"//third_party/libpng", "//third_party/libpng",
"//third_party/zlib",
"//ui/base:test_support", "//ui/base:test_support",
"//ui/resources:ui_test_pak", "//ui/resources:ui_test_pak",
"//ui/web_dialogs:test_support", "//ui/web_dialogs:test_support",
......
...@@ -428,12 +428,17 @@ if (build_with_chromium) { ...@@ -428,12 +428,17 @@ if (build_with_chromium) {
"contrib/tests/infcover.h", "contrib/tests/infcover.h",
"contrib/tests/run_all_unittests.cc", "contrib/tests/run_all_unittests.cc",
"contrib/tests/utils_unittest.cc", "contrib/tests/utils_unittest.cc",
"google/compression_utils_portable.cc", "google/compression_utils_unittest.cc",
"google/compression_utils_portable.h", "google/zip_reader_unittest.cc",
"google/zip_unittest.cc",
] ]
data = [ "google/test/data/" ]
deps = [ deps = [
":zlib", ":zlib",
"google:compression_utils",
"google:zip",
"//base/test:test_support", "//base/test:test_support",
"//testing/gtest", "//testing/gtest",
] ]
......
...@@ -28,10 +28,10 @@ if (build_with_chromium) { ...@@ -28,10 +28,10 @@ if (build_with_chromium) {
"compression_utils.h", "compression_utils.h",
] ]
deps = [ deps = [
":compression_utils_portable",
"//base", "//base",
"//third_party/zlib", "//third_party/zlib",
] ]
public_deps = [ ":compression_utils_portable" ]
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment