chromium/third_party/blink/renderer/modules/webtransport/BUILD.gn

# Copyright 2019 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")

blink_modules_sources("webtransport") {
  sources = [
    "bidirectional_stream.cc",
    "bidirectional_stream.h",
    "datagram_duplex_stream.cc",
    "datagram_duplex_stream.h",
    "incoming_stream.cc",
    "incoming_stream.h",
    "outgoing_stream.cc",
    "outgoing_stream.h",
    "receive_stream.cc",
    "receive_stream.h",
    "send_stream.cc",
    "send_stream.h",
    "web_transport.cc",
    "web_transport.h",
    "web_transport_error.cc",
    "web_transport_error.h",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "bidirectional_stream_test.cc",
    "datagram_duplex_stream_test.cc",
    "incoming_stream_test.cc",
    "outgoing_stream_test.cc",
    "test_utils.cc",
    "test_utils.h",
    "web_transport_error_test.cc",
    "web_transport_test.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/gmock",
    "//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",
  ]
}