blob: 1a057f3f2b0336b1c5ae5e984c912600c6846f6c [file] [log] [blame]
# Copyright 2015 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("//testing/test.gni")
# Works only on desktop platforms.
assert(is_win || is_linux || is_mac)
executable("battor_agent") {
sources = [
"battor_agent_bin.cc",
]
deps = [
":battor_agent_lib",
"//base",
"//device/serial",
"//mojo/public/c/system:for_shared_library",
]
}
source_set("battor_agent_lib") {
sources = [
"battor_agent.cc",
"battor_agent.h",
"battor_connection.cc",
"battor_connection.h",
"battor_connection_impl.cc",
"battor_connection_impl.h",
"battor_error.h",
"battor_finder.cc",
"battor_finder.h",
"battor_sample_converter.cc",
"battor_sample_converter.h",
]
deps = [
"//base",
"//device/serial",
"//net",
]
}
test("battor_agent_unittests") {
sources = [
"battor_agent_unittest.cc",
"battor_connection_impl_unittest.cc",
"battor_protocol_types_unittest.cc",
"battor_sample_converter_unittest.cc",
]
deps = [
":battor_agent_lib",
"//base",
"//base/test:run_all_unittests",
"//base/test:test_support",
"//device/serial",
"//device/serial:test_support",
"//mojo/public/c/system:for_shared_library",
"//testing/gmock",
"//testing/gtest",
]
}