blob: ad75ddfe4984e19f8210cca1e052d3e68ee50acf [file] [log] [blame]
# Copyright 2018 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
group("utils") {
testonly = true
deps = [
":clock",
":cobalt_utils_unittests",
":fuchsia_http_client",
]
}
group("tests") {
testonly = true
deps = [ ":cobalt_utils_unittests" ]
}
source_set("fuchsia_http_client") {
sources = [
"fuchsia_http_client.cc",
"fuchsia_http_client.h",
]
deps = [ "//src/lib/fsl" ]
public_deps = [
"//sdk/fidl/fuchsia.net.http:fuchsia.net.http_hlcpp",
"//src/lib/callback",
"//third_party/cobalt/src/public/lib:http_client",
"//third_party/cobalt/src/public/lib/statusor",
]
}
source_set("clock") {
sources = [
"clock.cc",
"clock.h",
]
public_deps = [
"//sdk/lib/sys/cpp",
"//sdk/lib/syslog/cpp",
"//third_party/cobalt/src/public/lib:clock_interfaces",
"//zircon/system/ulib/inspect",
]
deps = [ "//sdk/fidl/fuchsia.time:fuchsia.time_hlcpp" ]
}
source_set("base64") {
sources = [ "base64.h" ]
public_deps = [ "//third_party/modp_b64" ]
}
source_set("error_utils") {
sources = [ "error_utils.h" ]
public_deps = [ "//sdk/fidl/fuchsia.metrics:fuchsia.metrics_hlcpp" ]
}
source_set("status_utils") {
sources = [ "status_utils.h" ]
public_deps = [ "//sdk/fidl/fuchsia.cobalt:fuchsia.cobalt_hlcpp" ]
}
executable("cobalt_utils_unittests") {
testonly = true
sources = [
"base64_test.cc",
"clock_test.cc",
"cobalt_utils_unittests_main.cc",
"fuchsia_http_client_test.cc",
]
deps = [
":base64",
":clock",
":fuchsia_http_client",
"//sdk/fidl/fuchsia.time:fuchsia.time_hlcpp",
"//sdk/lib/inspect/testing/cpp",
"//sdk/lib/sys/cpp/testing:unit",
"//src/cobalt/bin/testing:fake_http_loader",
"//src/lib/fsl",
"//src/lib/testing/loop_fixture",
"//third_party/googletest:gmock",
"//third_party/googletest:gtest",
"//zircon/system/ulib/async-testing",
]
}