blob: 521bd008805ecb8270d3c5cc81181b92cd5a594e [file] [log] [blame]
Jay Civelli1c14aad2017-10-03 17:08:261# Copyright 2017 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
5import("//services/service_manager/public/cpp/service.gni")
6import("//services/service_manager/public/service_manifest.gni")
7
8source_set("lib_browser") {
9 sources = [
10 "proxy_resolver_factory_mojo.cc",
11 "proxy_resolver_factory_mojo.h",
12 ]
13
14 deps = [
15 "//base",
16 "//mojo/public/cpp/bindings",
17 "//net",
18 "//net:net_browser_services",
19 ]
20
21 public_deps = [
22 "//services/proxy_resolver/public/interfaces",
23 "//services/service_manager/public/cpp",
24 ]
25}
26
27source_set("lib_utility") {
28 sources = [
29 "mojo_proxy_resolver_impl.cc",
30 "mojo_proxy_resolver_impl.h",
31 ]
32
33 deps = [
34 "//base",
35 "//mojo/public/cpp/bindings",
36 "//net",
37 "//net:net_utility_services",
38 "//net:net_with_v8",
39 ]
40
41 public_deps = [
42 "//services/proxy_resolver/public/interfaces",
43 "//services/service_manager/public/cpp",
44 ]
45}
46
47source_set("tests") {
48 testonly = true
49
50 sources = [
51 "mojo_proxy_resolver_factory_impl_unittest.cc",
52 "mojo_proxy_resolver_impl_unittest.cc",
53 "proxy_resolver_factory_mojo_unittest.cc",
54 "proxy_service_mojo_unittest.cc",
55 ]
56
57 deps = [
58 ":lib_browser",
59 ":lib_utility",
60 "//base",
61 "//base/test:test_support",
62 "//net:net_browser_services",
63 "//net:test_support",
64 "//services/proxy_resolver/public/cpp:cpp_browser",
65 "//services/proxy_resolver/public/cpp:cpp_utility",
66 "//testing/gmock",
67 "//testing/gtest",
68 ]
69
70 configs += [ "//v8:external_startup_data" ]
71}