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

Unified Diff: components/update_client/BUILD.gn

Issue 2318343003: Fix compilation of components_unittests with disable_file_support=true. (Closed)
Patch Set: Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/update_client/BUILD.gn
diff --git a/components/update_client/BUILD.gn b/components/update_client/BUILD.gn
index 2833b159d8c530eedd1978cab72ededb72f8c0f3..69a82d87156aad3eb5e06d0ac5640368183cec84 100644
--- a/components/update_client/BUILD.gn
+++ b/components/update_client/BUILD.gn
@@ -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("//net/features.gni")
+
static_library("update_client") {
sources = [
"action.cc",
@@ -115,7 +117,6 @@ source_set("unit_tests") {
testonly = true
sources = [
"component_patcher_unittest.cc",
- "crx_downloader_unittest.cc",
"persisted_data_unittest.cc",
"ping_manager_unittest.cc",
"request_sender_unittest.cc",
@@ -126,6 +127,10 @@ source_set("unit_tests") {
"utils_unittest.cc",
]
+ if (!disable_file_support) {
+ sources += [ "crx_downloader_unittest.cc" ]
+ }
+
deps = [
":test_support",
":unit_tests_bundle_data",
« no previous file with comments | « no previous file | net/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698