blob: 90189f77d57323cb8ede372d65d901e5d98b3c03 [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.
import("//third_party/protobuf/proto_library.gni")
#TODO(rudominer) Move this module out of //third_party. fxb/38558.
proto_library("clearcut_proto") {
sources = [
"clearcut.proto",
]
import_dirs = [ "//third_party/protobuf/src" ]
generate_python = false
cc_generator_options = "lite"
}
source_set("clearcut") {
sources = [
"http_client.h",
"uploader.cc",
"uploader.h",
]
configs += [ "$cobalt_root:cobalt_config" ]
public_deps = [
":clearcut_proto",
"$cobalt_root/src:logging",
"$cobalt_root/src/lib/util:clock",
"$cobalt_root/src/lib/util:sleeper",
"$cobalt_root/src/lib/util:status",
"$cobalt_root/third_party/statusor:statusor",
"//third_party/abseil-cpp",
]
}
source_set("uploader_test") {
testonly = true
sources = [
"uploader_test.cc",
]
configs += [ "$cobalt_root:cobalt_config" ]
deps = [
":clearcut",
"//third_party/gflags",
"//third_party/googletest:gtest",
]
}
group("tests") {
testonly = true
deps = [
":uploader_test",
]
}