<commit_before># Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

if(NOT BUILD_TESTS)
  return()
endif()

quic_add_test(TARGET StateMachineTest
  SOURCES
  StateDataTest.cpp
  DEPENDS
  Folly::folly
  mvfst_state_machine
  mvfst_test_utils
)

quic_add_test(TARGET QuicStreamFunctionsTest
  SOURCES
  QuicStreamFunctionsTest.cpp
  DEPENDS
  mvfst_client
  mvfst_server
  mvfst_state_stream_functions
  mvfst_test_utils
)

quic_add_test(TARGET AckHandlersTest
  SOURCES
  AckHandlersTest.cpp
  DEPENDS
  mvfst_server
  mvfst_state_machine
  mvfst_state_ack_handler
  mvfst_test_utils
)

quic_add_test(TARGET QuicStateFunctionsTest
  SOURCES
  QuicStateFunctionsTest.cpp
  DEPENDS
  mvfst_server
  mvfst_test_utils<commit_msg>Add QuicStreamManagerTest to the cmake build (#171)<commit_after># Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

if(NOT BUILD_TESTS)
  return()
endif()

quic_add_test(TARGET StateMachineTest
  SOURCES
  StateDataTest.cpp
  DEPENDS
  Folly::folly
  mvfst_state_machine
  mvfst_test_utils
)

quic_add_test(TARGET QuicStreamFunctionsTest
  SOURCES
  QuicStreamFunctionsTest.cpp
  DEPENDS
  mvfst_client
  mvfst_server
  mvfst_state_stream_functions
  mvfst_test_utils
)

quic_add_test(TARGET QuicStreamManagerTest
  QuicStreamManagerTest.cpp
  DEPENDS
  mvfst_client
  mvfst_server
  mvfst_state_stream_functions
  mvfst_test_utils
)

quic_add_test(TARGET AckHandlersTest
  SOURCES
  AckHandlersTest.cpp
  DEPENDS
  mvfst_server
  mvfst_state_machine
  mvfst_state_ack_handler
  mvfst_test_utils
)

quic_add_test(TARGET QuicStateFunctionsTest
  SOURCES
  QuicStateFunctionsTest.cpp
  DEPENDS
  mvfst_server
  mvfst_test_utils
{'fraction_non_alphanumeric': 0.03680336487907466, 'fraction_numerical': 0.0015772870662460567, 'mean_word_length': 5.301324503311259, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3720726', 'n_tokens_mistral': 724, 'n_tokens_neox': 703, 'n_words': 147}