blob: eb31e56bf0a2935b9860fe4d1ef624072bda22d3 [file] [log] [blame]
# Copyright 2017 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("//mojo/public/tools/bindings/mojom.gni")
static_library("network_service") {
sources = [
"cookie_manager.cc",
"cookie_manager.h",
"proxy_config_service_mojo.cc",
"proxy_config_service_mojo.h",
"udp_socket.cc",
"udp_socket.h",
"udp_socket_factory.cc",
"udp_socket_factory.h",
]
deps = [
"//base",
"//mojo/public/cpp/bindings",
"//net",
"//services/network/public/interfaces",
"//url",
]
}
source_set("tests") {
testonly = true
sources = [
"cookie_manager_unittest.cc",
"proxy_config_service_mojo_unittest.cc",
"udp_socket_factory_unittest.cc",
"udp_socket_unittest.cc",
]
deps = [
":test_support",
"//base",
"//mojo/public/cpp/bindings",
"//net",
"//net:test_support",
"//services/network:network_service",
"//services/network/public/interfaces",
"//testing/gtest",
]
}
source_set("test_support") {
testonly = true
sources = [
"test/test_data_pipe_getter.cc",
"udp_socket_test_util.cc",
"udp_socket_test_util.h",
]
deps = [
"//base",
"//mojo/public/cpp/bindings",
"//net",
"//services/network:network_service",
"//services/network/public/interfaces",
"//testing/gtest",
]
}