sdefresne | 998e858 | 2015-10-07 13:36:45 | [diff] [blame] | 1 | # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
sdefresne | 61384ea | 2016-06-23 09:26:17 | [diff] [blame] | 5 | import("//ios/build/config.gni") |
sdefresne | 998e858 | 2015-10-07 13:36:45 | [diff] [blame] | 6 | import("//testing/test.gni") |
mef | 6c1a3dd6 | 2016-08-30 16:17:58 | [diff] [blame^] | 7 | import("//url/features.gni") |
sdefresne | 998e858 | 2015-10-07 13:36:45 | [diff] [blame] | 8 | |
| 9 | source_set("net") { |
| 10 | deps = [ |
| 11 | "//base", |
| 12 | "//net", |
sdefresne | 5f39d8e6 | 2016-05-18 19:27:37 | [diff] [blame] | 13 | "//url:url_features", |
sdefresne | 998e858 | 2015-10-07 13:36:45 | [diff] [blame] | 14 | ] |
| 15 | |
| 16 | sources = [ |
| 17 | "clients/crn_forwarding_network_client.h", |
| 18 | "clients/crn_forwarding_network_client.mm", |
| 19 | "clients/crn_forwarding_network_client_factory.h", |
| 20 | "clients/crn_forwarding_network_client_factory.mm", |
| 21 | "clients/crn_network_client_protocol.h", |
| 22 | "clients/crn_simple_network_client_factory.h", |
| 23 | "clients/crn_simple_network_client_factory.mm", |
| 24 | "cookies/cookie_cache.cc", |
| 25 | "cookies/cookie_cache.h", |
| 26 | "cookies/cookie_creation_time_manager.h", |
| 27 | "cookies/cookie_creation_time_manager.mm", |
| 28 | "cookies/cookie_store_ios.h", |
| 29 | "cookies/cookie_store_ios.mm", |
| 30 | "cookies/cookie_store_ios_client.h", |
| 31 | "cookies/cookie_store_ios_client.mm", |
| 32 | "cookies/system_cookie_util.h", |
| 33 | "cookies/system_cookie_util.mm", |
| 34 | "crn_http_protocol_handler.h", |
| 35 | "crn_http_protocol_handler.mm", |
| 36 | "crn_http_protocol_handler_proxy.h", |
| 37 | "crn_http_protocol_handler_proxy_with_client_thread.h", |
| 38 | "crn_http_protocol_handler_proxy_with_client_thread.mm", |
| 39 | "crn_http_url_response.h", |
| 40 | "crn_http_url_response.mm", |
| 41 | "empty_nsurlcache.h", |
| 42 | "empty_nsurlcache.mm", |
sdefresne | 3bdd563 | 2016-03-26 00:06:26 | [diff] [blame] | 43 | "http_cache_helper.cc", |
| 44 | "http_cache_helper.h", |
sdefresne | 998e858 | 2015-10-07 13:36:45 | [diff] [blame] | 45 | "http_protocol_logging.h", |
| 46 | "http_protocol_logging.mm", |
| 47 | "http_response_headers_util.h", |
| 48 | "http_response_headers_util.mm", |
| 49 | "nsurlrequest_util.h", |
| 50 | "nsurlrequest_util.mm", |
| 51 | "protocol_handler_util.h", |
| 52 | "protocol_handler_util.mm", |
| 53 | "request_tracker.h", |
| 54 | "request_tracker.mm", |
| 55 | "url_scheme_util.h", |
| 56 | "url_scheme_util.mm", |
| 57 | ] |
mef | 6c1a3dd6 | 2016-08-30 16:17:58 | [diff] [blame^] | 58 | |
| 59 | if (!use_platform_icu_alternatives) { |
| 60 | deps += [ "//base:i18n" ] |
| 61 | } |
sdefresne | 998e858 | 2015-10-07 13:36:45 | [diff] [blame] | 62 | } |
| 63 | |
| 64 | test("ios_net_unittests") { |
| 65 | deps = [ |
agrieve | d7a71c88 | 2015-11-20 19:53:28 | [diff] [blame] | 66 | ":net", |
sdefresne | 998e858 | 2015-10-07 13:36:45 | [diff] [blame] | 67 | "//base", |
| 68 | "//base/test:run_all_unittests", |
| 69 | "//net:test_support", |
| 70 | "//testing/gtest", |
| 71 | "//url", |
sdefresne | 998e858 | 2015-10-07 13:36:45 | [diff] [blame] | 72 | ] |
| 73 | |
| 74 | sources = [ |
| 75 | "clients/crn_forwarding_network_client_factory_unittest.mm", |
| 76 | "cookies/cookie_cache_unittest.cc", |
| 77 | "cookies/cookie_creation_time_manager_unittest.mm", |
| 78 | "cookies/cookie_store_ios_unittest.mm", |
| 79 | "cookies/system_cookie_util_unittest.mm", |
| 80 | "http_response_headers_util_unittest.mm", |
| 81 | "nsurlrequest_util_unittest.mm", |
| 82 | "protocol_handler_util_unittest.mm", |
| 83 | "url_scheme_util_unittest.mm", |
| 84 | ] |
sdefresne | 61384ea | 2016-06-23 09:26:17 | [diff] [blame] | 85 | |
| 86 | assert_no_deps = ios_assert_no_deps |
sdefresne | 998e858 | 2015-10-07 13:36:45 | [diff] [blame] | 87 | } |