# Copyright 2018 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//third_party/blink/renderer/modules/modules.gni")
# The Serial API will not be supported on Android. Assert here to ensure it
# doesn't sneak back into the build.
assert(!is_android)
blink_modules_sources("serial") {
sources = [
"serial.cc",
"serial.h",
"serial_port.cc",
"serial_port.h",
"serial_port_underlying_sink.cc",
"serial_port_underlying_sink.h",
"serial_port_underlying_source.cc",
"serial_port_underlying_source.h",
]
deps = [ "//third_party/blink/renderer/modules/bluetooth" ]
}
source_set("unit_tests") {
testonly = true
sources = [ "serial_unittest.cc" ]
configs += [
"//third_party/blink/renderer:config",
"//third_party/blink/renderer:inside_blink",
"//third_party/blink/renderer/core:blink_core_pch",
]
deps = [
"//base/test:test_support",
"//testing/gtest",
"//third_party/blink/renderer/controller:blink_bindings_test_sources",
"//third_party/blink/renderer/modules",
"//third_party/blink/renderer/platform",
"//third_party/blink/renderer/platform:test_support",
"//third_party/blink/renderer/platform/wtf",
]
}