[iOS] Disallow include of deprecated server
More info: https://docs.google.com/document/d/1tTnjQIvN3gaF4iM3NI9NxHM7hBSHiVIBesssJxyq63I/edit?ts=5970bfd9# BUG: 891834 Cq-Include-Trybots: luci.chromium.try:ios-simulator-cronet;luci.chromium.try:ios-simulator-full-configs Change-Id: Ibc84b996a5e76f5b387e98669364fbd7221e539f Reviewed-on: https://chromium-review.googlesource.com/c/1258164 Reviewed-by: Eugene But <eugenebut@chromium.org> Reviewed-by: Dirk Pranke <dpranke@chromium.org> Commit-Queue: Javier Ernesto Flores Robles <javierrobles@chromium.org> Cr-Commit-Position: refs/heads/master@{#597507}
This commit is contained in:

committed by
Commit Bot

parent
70e53e900e
commit
749e6c2cd7
PRESUBMIT.py
build/fuchsia/layout_test_proxy
ios/chrome
@ -582,6 +582,14 @@ _BANNED_CPP_FUNCTIONS = (
|
||||
True,
|
||||
(),
|
||||
),
|
||||
(
|
||||
'ios/web/public/test/http_server',
|
||||
(
|
||||
'web::HTTPserver is deprecated use net::EmbeddedTestServer instead.',
|
||||
),
|
||||
False,
|
||||
(),
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
include_rules = [
|
||||
"+net",
|
||||
]
|
||||
]
|
||||
|
@ -27,4 +27,8 @@ include_rules = [
|
||||
# web::TestBrowserState in ios/chrome.
|
||||
"+ios/web/public",
|
||||
"-ios/web/public/test/fakes/test_browser_state.h",
|
||||
|
||||
# web::HttpServer is deprecated in favor of net::EmbeddedTestServer.
|
||||
# See crbug.com/891834.
|
||||
"-ios/web/public/test/http_server",
|
||||
]
|
||||
|
5
ios/chrome/browser/autofill/DEPS
Normal file
5
ios/chrome/browser/autofill/DEPS
Normal file
@ -0,0 +1,5 @@
|
||||
include_rules = [
|
||||
# web::HttpServer is deprecated in favor of net::EmbeddedTestServer.
|
||||
# TODO:(crbug.com/891834) Remove this exception.
|
||||
"+ios/web/public/test/http_server",
|
||||
]
|
5
ios/chrome/browser/autofill/automation/DEPS
Normal file
5
ios/chrome/browser/autofill/automation/DEPS
Normal file
@ -0,0 +1,5 @@
|
||||
include_rules = [
|
||||
# web::HttpServer is deprecated in favor of net::EmbeddedTestServer.
|
||||
# TODO:(crbug.com/891834) Remove this exception.
|
||||
"+ios/web/public/test/http_server",
|
||||
]
|
5
ios/chrome/browser/device_sharing/DEPS
Normal file
5
ios/chrome/browser/device_sharing/DEPS
Normal file
@ -0,0 +1,5 @@
|
||||
include_rules = [
|
||||
# web::HttpServer is deprecated in favor of net::EmbeddedTestServer.
|
||||
# TODO:(crbug.com/891834) Remove this exception.
|
||||
"+ios/web/public/test/http_server",
|
||||
]
|
5
ios/chrome/browser/metrics/DEPS
Normal file
5
ios/chrome/browser/metrics/DEPS
Normal file
@ -0,0 +1,5 @@
|
||||
include_rules = [
|
||||
# web::HttpServer is deprecated in favor of net::EmbeddedTestServer.
|
||||
# TODO:(crbug.com/891834) Remove this exception.
|
||||
"+ios/web/public/test/http_server",
|
||||
]
|
5
ios/chrome/browser/net/DEPS
Normal file
5
ios/chrome/browser/net/DEPS
Normal file
@ -0,0 +1,5 @@
|
||||
include_rules = [
|
||||
# web::HttpServer is deprecated in favor of net::EmbeddedTestServer.
|
||||
# TODO:(crbug.com/891834) Remove this exception.
|
||||
"+ios/web/public/test/http_server",
|
||||
]
|
5
ios/chrome/browser/ntp_tiles/DEPS
Normal file
5
ios/chrome/browser/ntp_tiles/DEPS
Normal file
@ -0,0 +1,5 @@
|
||||
include_rules = [
|
||||
# web::HttpServer is deprecated in favor of net::EmbeddedTestServer.
|
||||
# TODO:(crbug.com/891834) Remove this exception.
|
||||
"+ios/web/public/test/http_server",
|
||||
]
|
5
ios/chrome/browser/passwords/DEPS
Normal file
5
ios/chrome/browser/passwords/DEPS
Normal file
@ -0,0 +1,5 @@
|
||||
include_rules = [
|
||||
# web::HttpServer is deprecated in favor of net::EmbeddedTestServer.
|
||||
# TODO:(crbug.com/891834) Remove this exception.
|
||||
"+ios/web/public/test/http_server",
|
||||
]
|
5
ios/chrome/browser/translate/DEPS
Normal file
5
ios/chrome/browser/translate/DEPS
Normal file
@ -0,0 +1,5 @@
|
||||
include_rules = [
|
||||
# web::HttpServer is deprecated in favor of net::EmbeddedTestServer.
|
||||
# TODO:(crbug.com/891834) Remove this exception.
|
||||
"+ios/web/public/test/http_server",
|
||||
]
|
@ -22,3 +22,9 @@ specific_include_rules = {
|
||||
"+ios/web/web_state/ui/crw_web_controller.h",
|
||||
],
|
||||
}
|
||||
|
||||
include_rules = [
|
||||
# web::HttpServer is deprecated in favor of net::EmbeddedTestServer.
|
||||
# TODO:(crbug.com/891834) Remove this exception.
|
||||
"+ios/web/public/test/http_server",
|
||||
]
|
||||
|
5
ios/chrome/browser/ui/activity_services/DEPS
Normal file
5
ios/chrome/browser/ui/activity_services/DEPS
Normal file
@ -0,0 +1,5 @@
|
||||
include_rules = [
|
||||
# web::HttpServer is deprecated in favor of net::EmbeddedTestServer.
|
||||
# TODO:(crbug.com/891834) Remove this exception.
|
||||
"+ios/web/public/test/http_server",
|
||||
]
|
5
ios/chrome/browser/ui/autofill/DEPS
Normal file
5
ios/chrome/browser/ui/autofill/DEPS
Normal file
@ -0,0 +1,5 @@
|
||||
include_rules = [
|
||||
# web::HttpServer is deprecated in favor of net::EmbeddedTestServer.
|
||||
# TODO:(crbug.com/891834) Remove this exception.
|
||||
"+ios/web/public/test/http_server",
|
||||
]
|
5
ios/chrome/browser/ui/autofill/manual_fill/DEPS
Normal file
5
ios/chrome/browser/ui/autofill/manual_fill/DEPS
Normal file
@ -0,0 +1,5 @@
|
||||
include_rules = [
|
||||
# web::HttpServer is deprecated in favor of net::EmbeddedTestServer.
|
||||
# TODO:(crbug.com/891834) Remove this exception.
|
||||
"+ios/web/public/test/http_server",
|
||||
]
|
5
ios/chrome/browser/ui/bookmarks/DEPS
Normal file
5
ios/chrome/browser/ui/bookmarks/DEPS
Normal file
@ -0,0 +1,5 @@
|
||||
include_rules = [
|
||||
# web::HttpServer is deprecated in favor of net::EmbeddedTestServer.
|
||||
# TODO:(crbug.com/891834) Remove this exception.
|
||||
"+ios/web/public/test/http_server",
|
||||
]
|
5
ios/chrome/browser/ui/find_bar/DEPS
Normal file
5
ios/chrome/browser/ui/find_bar/DEPS
Normal file
@ -0,0 +1,5 @@
|
||||
include_rules = [
|
||||
# web::HttpServer is deprecated in favor of net::EmbeddedTestServer.
|
||||
# TODO:(crbug.com/891834) Remove this exception.
|
||||
"+ios/web/public/test/http_server",
|
||||
]
|
5
ios/chrome/browser/ui/fullscreen/DEPS
Normal file
5
ios/chrome/browser/ui/fullscreen/DEPS
Normal file
@ -0,0 +1,5 @@
|
||||
include_rules = [
|
||||
# web::HttpServer is deprecated in favor of net::EmbeddedTestServer.
|
||||
# TODO:(crbug.com/891834) Remove this exception.
|
||||
"+ios/web/public/test/http_server",
|
||||
]
|
5
ios/chrome/browser/ui/history/DEPS
Normal file
5
ios/chrome/browser/ui/history/DEPS
Normal file
@ -0,0 +1,5 @@
|
||||
include_rules = [
|
||||
# web::HttpServer is deprecated in favor of net::EmbeddedTestServer.
|
||||
# TODO:(crbug.com/891834) Remove this exception.
|
||||
"+ios/web/public/test/http_server",
|
||||
]
|
5
ios/chrome/browser/ui/infobars/DEPS
Normal file
5
ios/chrome/browser/ui/infobars/DEPS
Normal file
@ -0,0 +1,5 @@
|
||||
include_rules = [
|
||||
# web::HttpServer is deprecated in favor of net::EmbeddedTestServer.
|
||||
# TODO:(crbug.com/891834) Remove this exception.
|
||||
"+ios/web/public/test/http_server",
|
||||
]
|
5
ios/chrome/browser/ui/payments/DEPS
Normal file
5
ios/chrome/browser/ui/payments/DEPS
Normal file
@ -0,0 +1,5 @@
|
||||
include_rules = [
|
||||
# web::HttpServer is deprecated in favor of net::EmbeddedTestServer.
|
||||
# TODO:(crbug.com/891834) Remove this exception.
|
||||
"+ios/web/public/test/http_server",
|
||||
]
|
5
ios/chrome/browser/ui/popup_menu/DEPS
Normal file
5
ios/chrome/browser/ui/popup_menu/DEPS
Normal file
@ -0,0 +1,5 @@
|
||||
include_rules = [
|
||||
# web::HttpServer is deprecated in favor of net::EmbeddedTestServer.
|
||||
# TODO:(crbug.com/891834) Remove this exception.
|
||||
"+ios/web/public/test/http_server",
|
||||
]
|
5
ios/chrome/browser/ui/print/DEPS
Normal file
5
ios/chrome/browser/ui/print/DEPS
Normal file
@ -0,0 +1,5 @@
|
||||
include_rules = [
|
||||
# web::HttpServer is deprecated in favor of net::EmbeddedTestServer.
|
||||
# TODO:(crbug.com/891834) Remove this exception.
|
||||
"+ios/web/public/test/http_server",
|
||||
]
|
5
ios/chrome/browser/ui/qr_scanner/DEPS
Normal file
5
ios/chrome/browser/ui/qr_scanner/DEPS
Normal file
@ -0,0 +1,5 @@
|
||||
include_rules = [
|
||||
# web::HttpServer is deprecated in favor of net::EmbeddedTestServer.
|
||||
# TODO:(crbug.com/891834) Remove this exception.
|
||||
"+ios/web/public/test/http_server",
|
||||
]
|
5
ios/chrome/browser/ui/reading_list/DEPS
Normal file
5
ios/chrome/browser/ui/reading_list/DEPS
Normal file
@ -0,0 +1,5 @@
|
||||
include_rules = [
|
||||
# web::HttpServer is deprecated in favor of net::EmbeddedTestServer.
|
||||
# TODO:(crbug.com/891834) Remove this exception.
|
||||
"+ios/web/public/test/http_server",
|
||||
]
|
5
ios/chrome/browser/ui/recent_tabs/DEPS
Normal file
5
ios/chrome/browser/ui/recent_tabs/DEPS
Normal file
@ -0,0 +1,5 @@
|
||||
include_rules = [
|
||||
# web::HttpServer is deprecated in favor of net::EmbeddedTestServer.
|
||||
# TODO:(crbug.com/891834) Remove this exception.
|
||||
"+ios/web/public/test/http_server",
|
||||
]
|
5
ios/chrome/browser/ui/sad_tab/DEPS
Normal file
5
ios/chrome/browser/ui/sad_tab/DEPS
Normal file
@ -0,0 +1,5 @@
|
||||
include_rules = [
|
||||
# web::HttpServer is deprecated in favor of net::EmbeddedTestServer.
|
||||
# TODO:(crbug.com/891834) Remove this exception.
|
||||
"+ios/web/public/test/http_server",
|
||||
]
|
5
ios/chrome/browser/ui/settings/DEPS
Normal file
5
ios/chrome/browser/ui/settings/DEPS
Normal file
@ -0,0 +1,5 @@
|
||||
include_rules = [
|
||||
# web::HttpServer is deprecated in favor of net::EmbeddedTestServer.
|
||||
# TODO:(crbug.com/891834) Remove this exception.
|
||||
"+ios/web/public/test/http_server",
|
||||
]
|
5
ios/chrome/browser/ui/settings/sync_utils/DEPS
Normal file
5
ios/chrome/browser/ui/settings/sync_utils/DEPS
Normal file
@ -0,0 +1,5 @@
|
||||
include_rules = [
|
||||
# web::HttpServer is deprecated in favor of net::EmbeddedTestServer.
|
||||
# TODO:(crbug.com/891834) Remove this exception.
|
||||
"+ios/web/public/test/http_server",
|
||||
]
|
5
ios/chrome/browser/ui/tab_grid/DEPS
Normal file
5
ios/chrome/browser/ui/tab_grid/DEPS
Normal file
@ -0,0 +1,5 @@
|
||||
include_rules = [
|
||||
# web::HttpServer is deprecated in favor of net::EmbeddedTestServer.
|
||||
# TODO:(crbug.com/891834) Remove this exception.
|
||||
"+ios/web/public/test/http_server",
|
||||
]
|
@ -3,3 +3,9 @@ specific_include_rules = {
|
||||
"+ios/web/web_state/ui/crw_web_controller.h",
|
||||
],
|
||||
}
|
||||
|
||||
include_rules = [
|
||||
# web::HttpServer is deprecated in favor of net::EmbeddedTestServer.
|
||||
# TODO:(crbug.com/891834) Remove this exception.
|
||||
"+ios/web/public/test/http_server",
|
||||
]
|
||||
|
5
ios/chrome/browser/web/DEPS
Normal file
5
ios/chrome/browser/web/DEPS
Normal file
@ -0,0 +1,5 @@
|
||||
include_rules = [
|
||||
# web::HttpServer is deprecated in favor of net::EmbeddedTestServer.
|
||||
# TODO:(crbug.com/891834) Remove this exception.
|
||||
"+ios/web/public/test/http_server",
|
||||
]
|
5
ios/chrome/test/earl_grey/DEPS
Normal file
5
ios/chrome/test/earl_grey/DEPS
Normal file
@ -0,0 +1,5 @@
|
||||
include_rules = [
|
||||
# web::HttpServer is deprecated in favor of net::EmbeddedTestServer.
|
||||
# TODO:(crbug.com/891834) Remove this exception.
|
||||
"+ios/web/public/test/http_server",
|
||||
]
|
Reference in New Issue
Block a user