forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix compilation of components_unittests with disable_file_support=true.
The test components/update_client/crx_downloader_unittest.cc depends on net::LocalHostTestURLRequestInterceptor class that is not compiled when disable_file_support is set to true. Add a new file src/net/features.gni to allow conditional compilation based on that flag from outside of //net. BUG=640686 Review-Url: https://codereview.chromium.org/2318343003 Cr-Commit-Position: refs/heads/master@{#417287}
- Loading branch information
Showing
3 changed files
with
30 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Copyright 2016 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("//build/config/features.gni") | ||
|
||
declare_args() { | ||
# Disables support for file URLs. File URL support requires use of icu. | ||
disable_file_support = false | ||
|
||
# WebSockets and socket stream code are not used on iOS and are optional in | ||
# cronet. | ||
enable_websockets = !is_ios | ||
disable_ftp_support = is_ios || is_chromecast | ||
|
||
# Enable Kerberos authentication. It is disabled by default on ChromeOS, iOS, | ||
# Chromecast, at least for now. This feature needs configuration (krb5.conf | ||
# and so on). | ||
use_kerberos = !is_chromeos && !is_ios && !is_chromecast | ||
|
||
# Do not disable brotli filter by default. | ||
disable_brotli_filter = false | ||
} |