# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

if(NOT BUILD_TESTS)
    return()
endif()

proxygen_add_test(TARGET WebTransportAPITest
  SOURCES
    WebTransportAPITest.cpp
  DEPENDS
    proxygen
    testmain
)

proxygen_add_test(TARGET QuicWebTransportTest
  SOURCES
    QuicWebTransportTest.cpp
  DEPENDS
    proxygen_http_webtransport_quicwebtransport
    mock_quic_socket_driver
    mvfst::mvfst_common_events_folly_eventbase
    testmain
)

proxygen_add_test(TARGET WtStreamManagerTest
  SOURCES
    WtStreamManagerTest.cpp
  DEPENDS
    codectestutils
    proxygen_http_webtransport_wt_stream_manager
    testmain
)

proxygen_add_test(TARGET WtUtilsTest
  SOURCES
    WtUtilsTest.cpp
  DEPENDS
    proxygen_http_codec_webtransport_webtransport_framer
    proxygen_http_webtransport_wt_util
    testmain
)
