diff --git a/quic/BUCK b/quic/BUCK deleted file mode 100644 index 48b29761b..000000000 --- a/quic/BUCK +++ /dev/null @@ -1,43 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "constants", - srcs = [ - "QuicConstants.cpp", - ], - headers = [ - "QuicConstants.h", - ], - deps = [ - "//folly/lang:assume", - ], - exported_deps = [ - "//folly/chrono:clock", - "//folly/io:iobuf", - "//quic/common/third-party:better_enums", - ], -) - -mvfst_cpp_library( - name = "exception", - srcs = [ - "QuicException.cpp", - ], - headers = [ - "QuicException.h", - ], - deps = [ - "//fizz/record:record", - ], - exported_deps = [ - ":constants", - "//folly:range", - "//quic/common:optional", - "//quic/common:variant", - ], - external_deps = [ - "glog", - ], -) diff --git a/quic/api/BUCK b/quic/api/BUCK deleted file mode 100644 index 55eca3099..000000000 --- a/quic/api/BUCK +++ /dev/null @@ -1,204 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "quic_batch_writer", - srcs = [ - "QuicBatchWriter.cpp", - "QuicBatchWriterFactory.cpp", - "QuicGsoBatchWriters.cpp", - ], - headers = [ - "QuicBatchWriter.h", - "QuicBatchWriterFactory.h", - "QuicGsoBatchWriters.h", - ], - deps = [ - "//quic/common:buf_accessor", - ], - exported_deps = [ - "//folly:network_address", - "//folly:portability", - "//folly/io:iobuf", - "//quic:constants", - "//quic/common/events:eventbase", - "//quic/common/udpsocket:quic_async_udp_socket", - "//quic/state:quic_state_machine", - ], -) - -mvfst_cpp_library( - name = "quic_callbacks", - srcs = [ - ], - headers = [ - "QuicCallbacks.h", - ], - deps = [ - ], - exported_deps = [ - "//quic/codec:types", - ], -) - -mvfst_cpp_library( - name = "transport", - srcs = [ - "QuicTransportBase.cpp", - ], - headers = [ - "QuicSocket.h", - "QuicTransportBaseLite.h", - ], - deps = [ - ":loop_detector_callback", - ":quic_batch_writer", - "//folly:chrono", - "//folly:scope_guard", - "//quic/common:time_util", - "//quic/congestion_control:pacer", - "//quic/logging:qlogger_constants", - "//quic/loss:loss", - "//quic/state:pacing_functions", - "//quic/state:simple_frame_functions", - "//quic/state:state_functions", - "//quic/state:stream_functions", - ], - exported_deps = [ - ":transport_helpers", - ":transport_lite", - "//folly:exception_wrapper", - "//folly:maybe_managed_ptr", - "//folly:portability", - "//folly/io:iobuf", - "//quic:constants", - "//quic:exception", - "//quic/codec:types", - "//quic/common:looper", - "//quic/common:network_data", - "//quic/common:optional", - "//quic/common:small_collections", - "//quic/common/events:eventbase", - "//quic/common/events:quic_timer", - "//quic/common/udpsocket:quic_async_udp_socket", - "//quic/congestion_control:bandwidth", - "//quic/congestion_control:congestion_controller_factory", - "//quic/congestion_control:copa", - "//quic/congestion_control:cubic", - "//quic/congestion_control:newreno", - "//quic/observer:socket_observer_container", - "//quic/observer:socket_observer_types", - "//quic/state:quic_connection_stats", - "//quic/state:quic_priority_queue", - "//quic/state:quic_state_machine", - "//quic/state:quic_stream_utilities", - "//quic/state:retransmission_policy", - ], -) - -mvfst_cpp_library( - name = "transport_lite", - srcs = [ - "QuicTransportBaseLite.cpp", - ], - headers = [ - "QuicSocketLite.h", - "QuicTransportBaseLite.h", - ], - deps = [ - ":loop_detector_callback", - "//quic/congestion_control:congestion_controller_factory", - "//quic/congestion_control:ecn_l4s_tracker", - "//quic/congestion_control:pacer", - "//quic/flowcontrol:flow_control", - "//quic/loss:loss", - "//quic/state:pacing_functions", - "//quic/state:stream_functions", - "//quic/state/stream:stream", - ], - exported_deps = [ - ":quic_callbacks", - ":transport_helpers", - "//folly:maybe_managed_ptr", - "//folly/io/async:async_transport_certificate", - "//quic:exception", - "//quic/codec:types", - "//quic/common:looper", - "//quic/common/udpsocket:quic_async_udp_socket", - "//quic/handshake:transport_parameters", - "//quic/state:quic_state_machine", - ], -) - -mvfst_cpp_library( - name = "transport_helpers", - srcs = [ - "IoBufQuicBatch.cpp", - "QuicPacketScheduler.cpp", - "QuicTransportFunctions.cpp", - ], - headers = [ - "IoBufQuicBatch.h", - "QuicPacketScheduler.h", - "QuicTransportFunctions.h", - ], - deps = [ - "//folly/tracing:static_tracepoint", - "//quic/common:buf_accessor", - "//quic/common:socket_util", - "//quic/happyeyeballs:happyeyeballs", - "//quic/state:ack_frequency_functions", - "//quic/state:ack_handler", - "//quic/state:simple_frame_functions", - ], - exported_deps = [ - ":quic_batch_writer", - "//folly:expected", - "//folly/lang:assume", - "//quic:constants", - "//quic:exception", - "//quic/client:state_and_handshake", - "//quic/codec:codec", - "//quic/codec:pktbuilder", - "//quic/codec:pktrebuilder", - "//quic/codec:types", - "//quic/common/udpsocket:quic_async_udp_socket", - "//quic/flowcontrol:flow_control", - "//quic/handshake:transport_parameters", - "//quic/state:quic_state_machine", - "//quic/state:state_functions", - "//quic/state:stats_callback", - "//quic/state:stream_functions", - ], - exported_external_deps = [ - "boost", - ], -) - -mvfst_cpp_library( - name = "loop_detector_callback", - headers = ["LoopDetectorCallback.h"], - exported_deps = [ - "//quic:constants", - ], -) - -mvfst_cpp_library( - name = "stream_async_transport", - srcs = [ - "QuicStreamAsyncTransport.cpp", - ], - headers = [ - "QuicStreamAsyncTransport.h", - ], - deps = [ - "//folly/io:iobuf", - "//quic/common/events:folly_eventbase", - ], - exported_deps = [ - ":transport", - "//folly/io/async:async_transport", - "//quic/common/events:eventbase", - ], -) diff --git a/quic/api/test/BUCK b/quic/api/test/BUCK deleted file mode 100644 index 11f7556f2..000000000 --- a/quic/api/test/BUCK +++ /dev/null @@ -1,240 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "mocks", - headers = [ - "MockQuicSocket.h", - "Mocks.h", - ], - exported_deps = [ - "//folly/portability:gmock", - "//quic:exception", - "//quic/api:loop_detector_callback", - "//quic/api:transport", - "//quic/codec:types", - "//quic/common:network_data", - "//quic/common/events:folly_eventbase", - "//quic/common/events:quic_timer", - "//quic/dsr:types", - "//quic/server:server", - "//quic/state:quic_state_machine", - ], -) - -cpp_unittest( - name = "QuicSocketTest", - srcs = [ - "QuicSocketTest.cpp", - ], - deps = [ - ":mocks", - "//quic/api:transport", - ], -) - -cpp_unittest( - name = "QuicTransportTest", - srcs = [ - "QuicTransportTest.cpp", - ], - deps = [ - "fbsource//third-party/googletest:gmock", - ":mocks", - ":test_quic_transport", - "//folly:random", - "//folly/io:iobuf", - "//quic:constants", - "//quic/api:transport", - "//quic/common:buf_util", - "//quic/common/events:highres_quic_timer", - "//quic/common/test:test_utils", - "//quic/common/testutil:mock_async_udp_socket", - "//quic/congestion_control:ecn_l4s_tracker", - "//quic/congestion_control:static_cwnd_congestion_controller", - "//quic/dsr:types", - "//quic/dsr/test:mocks", - "//quic/handshake/test:mocks", - "//quic/logging/test:mocks", - "//quic/server/state:server", - "//quic/state:stream_functions", - "//quic/state/stream:stream", - "//quic/state/test:mocks", - ], -) - -cpp_unittest( - name = "QuicTransportBaseTest", - srcs = [ - "QuicTransportBaseTest.cpp", - ], - supports_static_listing = False, - deps = [ - ":mocks", - "//folly/portability:gmock", - "//folly/portability:gtest", - "//quic/api:transport", - "//quic/codec:types", - "//quic/common/events:folly_eventbase", - "//quic/common/test:test_utils", - "//quic/common/testutil:mock_async_udp_socket", - "//quic/fizz/server/handshake:fizz_server_handshake", - "//quic/server/state:server", - "//quic/state:datagram_handler", - "//quic/state:quic_stream_utilities", - "//quic/state:stream_functions", - "//quic/state/stream:stream", - "//quic/state/test:mocks", - ], -) - -cpp_unittest( - name = "QuicTransportFunctionsTest", - srcs = [ - "QuicTransportFunctionsTest.cpp", - ], - deps = [ - ":mocks", - "//folly:range", - "//quic/api:transport", - "//quic/common/events:folly_eventbase", - "//quic/common/test:test_utils", - "//quic/common/testutil:mock_async_udp_socket", - "//quic/fizz/server/handshake:fizz_server_handshake", - "//quic/logging:file_qlogger", - "//quic/logging:qlogger_constants", - "//quic/server/state:server", - "//quic/state/test:mocks", - ], -) - -cpp_unittest( - name = "QuicPacketSchedulerTest", - srcs = [ - "QuicPacketSchedulerTest.cpp", - ], - supports_static_listing = False, - deps = [ - ":mocks", - "//folly/portability:gtest", - "//quic/api:transport", - "//quic/client:state_and_handshake", - "//quic/codec:pktbuilder", - "//quic/codec/test:mocks", - "//quic/common/test:test_utils", - "//quic/dsr:types", - "//quic/dsr/test:mocks", - "//quic/fizz/client/handshake:fizz_client_handshake", - "//quic/fizz/server/handshake:fizz_server_handshake", - "//quic/server/state:server", - "//quic/state:stream_functions", - "//quic/state/test:mocks", - ], -) - -cpp_unittest( - name = "IoBufQuicBatchTest", - srcs = [ - "IoBufQuicBatchTest.cpp", - ], - deps = [ - "//quic/api:transport", - "//quic/client:state_and_handshake", - "//quic/common/events:folly_eventbase", - "//quic/common/test:test_utils", - "//quic/common/udpsocket:folly_async_udp_socket", - "//quic/fizz/client/handshake:fizz_client_handshake", - "//quic/state:quic_state_machine", - ], -) - -cpp_unittest( - name = "QuicBatchWriterTest", - srcs = [ - "QuicBatchWriterTest.cpp", - ], - supports_static_listing = False, - deps = [ - "//quic/api:quic_batch_writer", - "//quic/common/events:folly_eventbase", - "//quic/common/test:test_utils", - "//quic/common/testutil:mock_async_udp_socket", - "//quic/common/udpsocket:folly_async_udp_socket", - "//quic/fizz/server/handshake:fizz_server_handshake", - "//quic/server/state:server", - ], -) - -cpp_unittest( - name = "QuicStreamAsyncTransportTest", - srcs = [ - "QuicStreamAsyncTransportTest.cpp", - ], - deps = [ - ":mocks", - "//folly:move_wrapper", - "//folly/container:f14_hash", - "//folly/futures:core", - "//folly/io/async/test:mocks", - "//folly/portability:gmock", - "//folly/portability:gtest", - "//quic/api:stream_async_transport", - "//quic/client:client", - "//quic/common/events:folly_eventbase", - "//quic/common/test:test_client_utils", - "//quic/common/test:test_utils", - "//quic/common/udpsocket:folly_async_udp_socket", - "//quic/fizz/client/handshake:fizz_client_handshake", - "//quic/server:server", - "//quic/server/test:mocks", - ], -) - -cpp_unittest( - name = "QuicTypedTransportTest", - srcs = [ - "QuicTypedTransportTest.cpp", - ], - supports_static_listing = False, - deps = [ - "fbsource//third-party/googletest:gmock", - ":mocks", - ":quic_typed_transport_test_util", - "//quic/codec:types", - "//quic/congestion_control:static_cwnd_congestion_controller", - "//quic/fizz/client/test:quic_client_transport_test_util", - "//quic/server/test:quic_server_transport_test_util", - "//quic/state:ack_event", - "//quic/state:outstanding_packet", - "//quic/state/test:mocks", - ], -) - -mvfst_cpp_library( - name = "quic_typed_transport_test_util", - headers = [ - "QuicTypedTransportTestUtil.h", - ], - exported_deps = [ - "//quic/api:transport", - "//quic/common/test:test_packet_builders", - "//quic/common/test:test_utils", - "//quic/state:quic_state_machine", - "//quic/state:state_functions", - ], -) - -mvfst_cpp_library( - name = "test_quic_transport", - headers = [ - "TestQuicTransport.h", - ], - exported_deps = [ - "//quic/api:transport", - "//quic/common/test:test_utils", - "//quic/dsr/frontend:write_functions", - "//quic/fizz/server/handshake:fizz_server_handshake", - ], -) diff --git a/quic/client/BUCK b/quic/client/BUCK deleted file mode 100644 index 379484843..000000000 --- a/quic/client/BUCK +++ /dev/null @@ -1,119 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "client", - srcs = [ - "QuicClientTransport.cpp", - ], - headers = [ - "QuicClientTransport.h", - ], - deps = [ - ":client_extension", - "//folly/portability:sockets", - "//quic:constants", - "//quic/api:loop_detector_callback", - "//quic/flowcontrol:flow_control", - "//quic/handshake:handshake", - "//quic/happyeyeballs:happyeyeballs", - "//quic/logging:qlogger_constants", - "//quic/loss:loss", - "//quic/state:ack_handler", - "//quic/state:datagram_handler", - "//quic/state:pacing_functions", - "//quic/state:simple_frame_functions", - "//quic/state/stream:stream", - ], - exported_deps = [ - ":state_and_handshake", - "//folly:network_address", - "//folly:random", - "//folly/io:socket_option_map", - "//folly/net:net_ops", - "//quic/api:transport", - "//quic/common:buf_accessor", - "//quic/common:buf_util", - "//quic/common/udpsocket:quic_async_udp_socket", - "//quic/state:quic_connection_stats", - ], -) - -mvfst_cpp_library( - name = "state_and_handshake", - srcs = [ - "handshake/ClientHandshake.cpp", - "state/ClientStateMachine.cpp", - ], - headers = [ - "handshake/ClientHandshake.h", - "handshake/ClientHandshakeFactory.h", - "state/ClientStateMachine.h", - ], - deps = [ - ":cached_server_tp", - ":client_extension", - "//quic/codec:decode", - "//quic/codec:types", - "//quic/common:time_util", - "//quic/congestion_control:congestion_controller_factory", - "//quic/loss:loss", - "//quic/state:quic_stream_utilities", - "//quic/state:stream_functions", - ], - exported_deps = [ - "//folly:exception_wrapper", - "//folly/io:iobuf", - "//folly/io/async:delayed_destruction", - "//quic:constants", - "//quic:exception", - "//quic/common:network_data", - "//quic/common/udpsocket:quic_async_udp_socket", - "//quic/congestion_control:cubic", - "//quic/flowcontrol:flow_control", - "//quic/handshake:aead", - "//quic/handshake:handshake", - "//quic/handshake:transport_parameters", - "//quic/state:quic_state_machine", - "//quic/state:state_functions", - ], -) - -mvfst_cpp_library( - name = "client_extension", - headers = [ - "handshake/ClientTransportParametersExtension.h", - ], - exported_deps = [ - "//quic/handshake:transport_parameters", - ], -) - -mvfst_cpp_library( - name = "cached_server_tp", - headers = [ - "handshake/CachedServerTransportParameters.h", - ], - exported_deps = [ - "//quic:constants", - ], -) - -mvfst_cpp_library( - name = "client_async_transport", - srcs = [ - "QuicClientAsyncTransport.cpp", - ], - headers = [ - "QuicClientAsyncTransport.h", - ], - deps = [ - "//folly:conv", - "//folly/experimental/symbolizer:symbolizer", - ], - exported_deps = [ - "//quic/api:stream_async_transport", - "//quic/client:client", - ], -) diff --git a/quic/client/connector/BUCK b/quic/client/connector/BUCK deleted file mode 100644 index 3158360f8..000000000 --- a/quic/client/connector/BUCK +++ /dev/null @@ -1,31 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "connector", - srcs = [ - "QuicConnector.cpp", - ], - headers = [ - "QuicConnector.h", - ], - deps = [ - "//folly/io/async:async_ssl_socket", - "//folly/io/async:async_udp_socket", - "//quic/common/udpsocket:folly_async_udp_socket", - "//quic/congestion_control:congestion_controller_factory", - "//quic/fizz/client/handshake:fizz_client_handshake", - ], - exported_deps = [ - "//fizz/client:async_fizz_client", - "//folly/io:socket_option_map", - "//quic/api:loop_detector_callback", - "//quic/api:transport", - "//quic/client:client", - "//quic/common:time_util", - "//quic/common/events:folly_eventbase", - "//quic/fizz/client/handshake:psk_cache", - "//quic/logging:qlogger", - ], -) diff --git a/quic/client/test/BUCK b/quic/client/test/BUCK deleted file mode 100644 index 445470821..000000000 --- a/quic/client/test/BUCK +++ /dev/null @@ -1,82 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "mocks", - headers = [ - "Mocks.h", - ], - exported_deps = [ - "//folly/portability:gmock", - "//quic/client:cached_server_tp", - "//quic/client:client", - "//quic/client:state_and_handshake", - "//quic/client/connector:connector", - "//quic/common/events:folly_eventbase", - "//quic/common/udpsocket:folly_async_udp_socket", - "//quic/handshake:handshake", - "//quic/handshake:transport_parameters", - ], -) - -cpp_unittest( - name = "ClientStateMachineTest", - srcs = [ - "ClientStateMachineTest.cpp", - ], - supports_static_listing = False, - deps = [ - ":mocks", - "//quic/api:transport", - "//quic/api/test:mocks", - "//quic/client:cached_server_tp", - "//quic/client:state_and_handshake", - "//quic/common/events:folly_eventbase", - "//quic/common/udpsocket:folly_async_udp_socket", - "//quic/fizz/client/handshake:fizz_client_handshake", - "//quic/handshake:handshake", - "//quic/handshake:transport_parameters", - ], -) - -cpp_unittest( - name = "QuicConnectorTest", - srcs = [ - "QuicConnectorTest.cpp", - ], - deps = [ - ":mocks", - "//quic/client/connector:connector", - "//quic/common/events:folly_eventbase", - "//quic/common/test:test_client_utils", - "//quic/common/udpsocket:folly_async_udp_socket", - "//quic/fizz/client/handshake:fizz_client_handshake", - ], -) - -mvfst_cpp_library( - name = "QuicClientTransportMock", - headers = [ - "QuicClientTransportMock.h", - ], - exported_deps = [ - "//folly/portability:gmock", - "//quic/client:client", - ], -) - -cpp_unittest( - name = "QuicClientTransportTest", - srcs = [ - "QuicClientTransportTest.cpp", - ], - deps = [ - "//quic/client:client", - "//quic/client/test:mocks", - "//quic/common/events/test:QuicEventBaseMock", - "//quic/common/test:test_utils", - "//quic/common/udpsocket/test:QuicAsyncUDPSocketMock", - ], -) diff --git a/quic/codec/BUCK b/quic/codec/BUCK deleted file mode 100644 index 54650e5d0..000000000 --- a/quic/codec/BUCK +++ /dev/null @@ -1,201 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "types", - srcs = [ - "DefaultConnectionIdAlgo.cpp", - "QuicConnectionId.cpp", - "QuicInteger.cpp", - "Types.cpp", - ], - headers = [ - "ConnectionIdAlgo.h", - "DefaultConnectionIdAlgo.h", - "QuicConnectionId.h", - "QuicInteger.h", - "Types.h", - ], - deps = [ - "//folly:random", - ], - exported_deps = [ - ":packet_number", - "//folly:conv", - "//folly:expected", - "//folly:network_address", - "//folly:string", - "//folly/hash:hash", - "//folly/io:iobuf", - "//folly/lang:bits", - "//quic:constants", - "//quic:exception", - "//quic/common:buf_util", - "//quic/common:circular_deque", - "//quic/common:interval_set", - "//quic/common:network_data", - "//quic/common:optional", - "//quic/common:small_collections", - "//quic/common:variant", - ], - external_deps = [ - "glog", - ], -) - -mvfst_cpp_library( - name = "packet_number", - srcs = [ - "PacketNumber.cpp", - ], - headers = [ - "PacketNumber.h", - ], - deps = [ - "//folly:conv", - "//folly/lang:bits", - "//quic:constants", - "//quic:exception", - ], - external_deps = [ - "glog", - ], -) - -mvfst_cpp_library( - name = "packet_number_cipher", - srcs = [ - "PacketNumberCipher.cpp", - ], - deps = [ - ":decode", - ":types", - ], - exported_deps = [ - "//folly/io:iobuf", - "//quic/common:buf_util", - "//quic/common:optional", - ], -) - -mvfst_cpp_library( - name = "decode", - srcs = [ - "Decode.cpp", - ], - headers = [ - "Decode.h", - ], - compiler_flags = [ - "-fstrict-aliasing", - ], - deps = [ - "//folly:string", - "//quic:exception", - ], - exported_deps = [ - ":packet_number", - ":types", - "//folly/io:iobuf", - "//quic:constants", - "//quic/state:transport_settings", - ], -) - -mvfst_cpp_library( - name = "pktbuilder", - srcs = [ - "QuicPacketBuilder.cpp", - ], - headers = [ - "QuicPacketBuilder.h", - ], - compiler_flags = [ - "-fstrict-aliasing", - ], - deps = [ - "//folly:random", - "//folly/io:iobuf", - ], - exported_deps = [ - ":packet_number", - ":types", - "//folly:portability", - "//quic/common:buf_accessor", - "//quic/common:buf_util", - "//quic/handshake:handshake", - ], -) - -mvfst_cpp_library( - name = "pktrebuilder", - srcs = [ - "QuicPacketRebuilder.cpp", - ], - headers = [ - "QuicPacketRebuilder.h", - ], - deps = [ - ":codec", - "//quic/flowcontrol:flow_control", - "//quic/state:simple_frame_functions", - "//quic/state:state_functions", - "//quic/state:stream_functions", - ], - exported_deps = [ - ":pktbuilder", - "//quic/state:quic_state_machine", - ], -) - -mvfst_cpp_library( - name = "header_codec", - srcs = [ - "QuicHeaderCodec.cpp", - ], - headers = [ - "QuicHeaderCodec.h", - ], - deps = [ - ":decode", - "//quic:exception", - ], - exported_deps = [ - ":packet_number", - ":types", - "//quic/common:optional", - ], -) - -mvfst_cpp_library( - name = "codec", - srcs = [ - "QuicReadCodec.cpp", - "QuicWriteCodec.cpp", - ], - headers = [ - "QuicReadCodec.h", - "QuicWriteCodec.h", - ], - deps = [ - "//folly/io:iobuf", - "//quic:exception", - ], - exported_deps = [ - ":decode", - ":packet_number", - ":packet_number_cipher", - ":pktbuilder", - ":types", - "//quic:constants", - "//quic/common:buf_util", - "//quic/common:circular_deque", - "//quic/common:interval_set", - "//quic/common:optional", - "//quic/handshake:aead", - "//quic/state:ack_states", - "//quic/state:stats_callback", - "//quic/state:transport_settings", - ], -) diff --git a/quic/codec/test/BUCK b/quic/codec/test/BUCK deleted file mode 100644 index 96eece3c3..000000000 --- a/quic/codec/test/BUCK +++ /dev/null @@ -1,212 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "mocks", - headers = [ - "Mocks.h", - ], - exported_deps = [ - "//folly/portability:gmock", - "//folly/portability:gtest", - "//quic/codec:pktbuilder", - "//quic/common/test:test_utils", - ], -) - -cpp_unittest( - name = "QuicHeaderCodec", - srcs = [ - "QuicHeaderCodecTest.cpp", - ], - deps = [ - "//folly/portability:gtest", - "//quic:exception", - "//quic/codec:header_codec", - "//quic/common:optional", - "//quic/common/test:test_utils", - ], -) - -cpp_unittest( - name = "QuicReadCodecTests", - srcs = [ - "QuicReadCodecTest.cpp", - ], - deps = [ - "//folly/io:iobuf", - "//folly/portability:gtest", - "//quic:exception", - "//quic/codec:codec", - "//quic/common/test:test_utils", - "//quic/fizz/handshake:fizz_handshake", - ], -) - -cpp_unittest( - name = "QuicWriteCodecTests", - srcs = [ - "QuicWriteCodecTest.cpp", - ], - compiler_flags = [ - "-ftemplate-backtrace-limit=0", - ], - supports_static_listing = False, - deps = [ - ":mocks", - "//folly:random", - "//folly/io:iobuf", - "//folly/portability:gmock", - "//folly/portability:gtest", - "//quic:constants", - "//quic:exception", - "//quic/codec:codec", - "//quic/codec:decode", - "//quic/codec:types", - "//quic/common:buf_util", - "//quic/common:circular_deque", - "//quic/common/test:test_utils", - "//quic/state:transport_settings", - ], -) - -cpp_unittest( - name = "TypesTests", - srcs = [ - "TypesTest.cpp", - ], - deps = [ - "//folly:string", - "//folly/container:array", - "//folly/io:iobuf", - "//folly/portability:gtest", - "//quic:exception", - "//quic/codec:decode", - "//quic/codec:types", - "//quic/common/test:test_utils", - ], -) - -cpp_unittest( - name = "PacketNumberTest", - srcs = [ - "PacketNumberTest.cpp", - ], - supports_static_listing = False, - deps = [ - "//folly/portability:gtest", - "//quic/codec:packet_number", - "//quic/codec:types", - ], -) - -cpp_unittest( - name = "DecodeTests", - srcs = [ - "DecodeTest.cpp", - ], - deps = [ - "//folly:random", - "//folly/container:array", - "//folly/io:iobuf", - "//folly/portability:gtest", - "//quic/codec:codec", - "//quic/codec:decode", - "//quic/codec:types", - "//quic/common/test:test_utils", - ], -) - -cpp_unittest( - name = "DefaultConnectionIdAlgoTest", - srcs = [ - "DefaultConnectionIdAlgoTest.cpp", - ], - deps = [ - "//folly:random", - "//folly/portability:gtest", - "//quic/codec:types", - ], -) - -cpp_unittest( - name = "QuicConnectionIdTest", - srcs = [ - "QuicConnectionIdTest.cpp", - ], - deps = [ - "//folly/portability:gtest", - "//quic/codec:types", - ], -) - -cpp_unittest( - name = "QuicPacketBuilderTest", - srcs = [ - "QuicPacketBuilderTest.cpp", - ], - supports_static_listing = False, - deps = [ - ":mocks", - "//folly:random", - "//folly/io:iobuf", - "//folly/portability:gtest", - "//quic/codec:codec", - "//quic/codec:pktbuilder", - "//quic/codec:types", - "//quic/common/test:test_utils", - "//quic/fizz/handshake:fizz_handshake", - "//quic/handshake:handshake", - ], -) - -cpp_unittest( - name = "QuicPacketRebuilderTest", - srcs = [ - "QuicPacketRebuilderTest.cpp", - ], - deps = [ - ":mocks", - "//folly/portability:gtest", - "//quic/codec:codec", - "//quic/codec:pktbuilder", - "//quic/codec:pktrebuilder", - "//quic/common/test:test_utils", - "//quic/fizz/server/handshake:fizz_server_handshake", - "//quic/server/state:server", - "//quic/state:quic_state_machine", - "//quic/state:state_functions", - "//quic/state:stream_functions", - "//quic/state/stream:stream", - ], -) - -cpp_unittest( - name = "QuicIntegerTest", - srcs = [ - "QuicIntegerTest.cpp", - ], - supports_static_listing = False, - deps = [ - "//folly:expected", - "//folly:string", - "//folly/io:iobuf", - "//folly/portability:gtest", - "//quic:exception", - "//quic/codec:types", - "//quic/common:optional", - ], -) - -cpp_unittest( - name = "server_connection_id_params_test", - srcs = [ - "ServerConnectionIdParamsTest.cpp", - ], - deps = [ - "//folly/portability:gtest", - "//quic/codec:types", - ], -) diff --git a/quic/common/BUCK b/quic/common/BUCK deleted file mode 100644 index c15705996..000000000 --- a/quic/common/BUCK +++ /dev/null @@ -1,198 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "interval_set", - headers = [ - "IntervalSet.h", - "IntervalSet-inl.h", - ], - exported_deps = [ - ":optional", - "//folly:likely", - ], -) - -mvfst_cpp_library( - name = "looper", - srcs = [ - "FunctionLooper.cpp", - ], - headers = [ - "FunctionLooper.h", - ], - deps = [ - "//folly:scope_guard", - ], - exported_deps = [ - ":optional", - "//folly:function", - "//folly/io/async:delayed_destruction", - "//quic:constants", - "//quic/common/events:eventbase", - "//quic/common/events:quic_timer", - ], - external_deps = [ - "glog", - ], -) - -mvfst_cpp_library( - name = "variant", - headers = [ - "Variant.h", - ], - exported_deps = [ - ], -) - -mvfst_cpp_library( - name = "buf_accessor", - srcs = [ - "BufAccessor.cpp", - ], - headers = [ - "BufAccessor.h", - ], - exported_deps = [ - "//folly/io:iobuf", - "//quic:constants", - ], -) - -mvfst_cpp_library( - name = "buf_util", - srcs = [ - "BufUtil.cpp", - "ChainedByteRange.cpp", - ], - headers = [ - "BufUtil.h", - "ChainedByteRange.h", - ], - exported_deps = [ - "//folly:range", - "//folly/io:iobuf", - "//quic:constants", - ], -) - -mvfst_cpp_library( - name = "enum_array", - headers = [ - "EnumArray.h", - ], - exported_deps = [ - "//folly:portability", - ], - exported_external_deps = [ - "glog", - ], -) - -mvfst_cpp_library( - name = "socket_util", - headers = [ - "SocketUtil.h", - ], - exported_deps = [ - "//folly/io:socket_option_map", - "//folly/net:net_ops", - ], -) - -mvfst_cpp_library( - name = "small_collections", - headers = [ - "SmallCollections.h", - ], - exported_deps = [ - "//folly:small_vector", - "//folly/container:heap_vector_types", - ], -) - -mvfst_cpp_library( - name = "circular_deque", - headers = [ - "CircularDeque.h", - "CircularDeque-inl.h", - ], - exported_deps = [ - "//folly:likely", - "//folly:portability", - "//folly:scope_guard", - "//folly/memory:malloc", - ], - exported_external_deps = [ - "boost", - "glog", - ], -) - -mvfst_cpp_library( - name = "network_data", - headers = [ - "NetworkData.h", - ], - exported_deps = [ - ":buf_util", - ":optional", - ":time_points", - "//quic:constants", - ], -) - -mvfst_cpp_library( - name = "time_points", - headers = [ - "TimePoints.h", - ], - exported_deps = [ - ":optional", - "//quic:constants", - ], -) - -mvfst_cpp_library( - name = "time_util", - headers = [ - "TimeUtil.h", - ], - exported_deps = [ - "//folly:traits", - "//quic:constants", - ], -) - -mvfst_cpp_library( - name = "transport_knobs", - srcs = [ - "TransportKnobs.cpp", - ], - headers = [ - "TransportKnobs.h", - ], - deps = [ - "//folly/json:dynamic", - "//quic:constants", - ], - exported_deps = [ - ":optional", - ], - external_deps = [ - "glog", - ], -) - -mvfst_cpp_library( - name = "optional", - headers = [ - "Optional.h", - ], - exported_deps = [ - "//folly:optional", - "//quic/common/third-party:tiny_optional", - ], -) diff --git a/quic/common/events/BUCK b/quic/common/events/BUCK deleted file mode 100644 index 8c69bc9d5..000000000 --- a/quic/common/events/BUCK +++ /dev/null @@ -1,76 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "eventbase", - headers = [ - "QuicEventBase.h", - ], - exported_deps = [ - "//folly:function", - "//folly:glog", - ], -) - -mvfst_cpp_library( - name = "quic_timer", - srcs = [ - ], - headers = [ - "QuicTimer.h", - ], - exported_deps = [ - ":eventbase", - "//folly/io/async:delayed_destruction", - ], -) - -mvfst_cpp_library( - name = "folly_eventbase", - srcs = [ - "FollyQuicEventBase.cpp", - ], - headers = [ - "FollyQuicEventBase.h", - ], - exported_deps = [ - ":eventbase", - "//folly/io/async:async_base", - "//folly/io/async:async_base_fwd", - ], -) - -mvfst_cpp_library( - name = "highres_quic_timer", - srcs = [ - "HighResQuicTimer.cpp", - ], - headers = [ - "HighResQuicTimer.h", - ], - exported_deps = [ - ":quic_timer", - "//folly/io/async:async_base", - "//folly/io/async:timerfd", - ], -) - -mvfst_cpp_library( - name = "libev_eventbase", - srcs = [ - "LibevQuicEventBase.cpp", - ], - headers = [ - "LibevQuicEventBase.h", - ], - exported_deps = [ - ":eventbase", - ":quic_timer", - "//folly:glog", - "//folly:intrusive_list", - ], - exported_external_deps = [ - "libev", - ], -) diff --git a/quic/common/events/test/BUCK b/quic/common/events/test/BUCK deleted file mode 100644 index a209755b0..000000000 --- a/quic/common/events/test/BUCK +++ /dev/null @@ -1,55 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "QuicEventBaseTestBase", - headers = [ - "QuicEventBaseTestBase.h", - ], - exported_deps = [ - "//folly/portability:gtest", - "//quic/common/events:eventbase", - ], -) - -cpp_unittest( - name = "FollyQuicEventBaseTest", - srcs = [ - "FollyQuicEventBaseTest.cpp", - ], - supports_static_listing = False, - deps = [ - ":QuicEventBaseTestBase", - "//folly/portability:gtest", - "//quic/common/events:folly_eventbase", - ], -) - -cpp_unittest( - name = "LibevQuicEventBaseTest", - srcs = [ - "LibevQuicEventBaseTest.cpp", - ], - supports_static_listing = False, - deps = [ - ":QuicEventBaseTestBase", - "//folly/portability:gtest", - "//quic/common/events:libev_eventbase", - ], - external_deps = [ - "libev", - ], -) - -mvfst_cpp_library( - name = "QuicEventBaseMock", - headers = [ - "QuicEventBaseMock.h", - ], - exported_deps = [ - "//folly/portability:gmock", - "//quic/common/events:eventbase", - ], -) diff --git a/quic/common/test/BUCK b/quic/common/test/BUCK deleted file mode 100644 index 88788e5af..000000000 --- a/quic/common/test/BUCK +++ /dev/null @@ -1,205 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") -load("@fbcode_macros//build_defs:cpp_benchmark.bzl", "cpp_benchmark") -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("traffic_protocols") - -cpp_unittest( - name = "IntervalSetTest", - srcs = [ - "IntervalSetTest.cpp", - ], - deps = [ - "//quic/common:interval_set", - ], -) - -cpp_unittest( - name = "FunctionLooperTest", - srcs = [ - "FunctionLooperTest.cpp", - ], - deps = [ - "//quic/common:looper", - "//quic/common/events:folly_eventbase", - "//quic/common/events:highres_quic_timer", - ], -) - -cpp_unittest( - name = "VariantTest", - srcs = [ - "VariantTest.cpp", - ], - deps = [ - "//quic/common:variant", - ], -) - -cpp_unittest( - name = "BufAccessorTest", - srcs = [ - "BufAccessorTest.cpp", - ], - deps = [ - "//folly/portability:gtest", - "//quic/common:buf_accessor", - ], -) - -cpp_unittest( - name = "BufUtilTest", - srcs = [ - "BufUtilTest.cpp", - ], - deps = [ - "//folly:string", - "//folly/io:iobuf", - "//quic/common:buf_util", - ], -) - -cpp_unittest( - name = "ChainedByteRangeTest", - srcs = [ - "ChainedByteRangeTest.cpp", - ], - deps = [ - "//folly:string", - "//folly/io:iobuf", - "//quic/common:buf_util", - ], -) - -mvfst_cpp_library( - name = "test_client_utils", - headers = [ - "TestClientUtils.h", - ], - exported_deps = [ - "//fizz/protocol:certificate_verifier", - ], -) - -mvfst_cpp_library( - name = "test_packet_builders", - srcs = [ - "TestPacketBuilders.cpp", - ], - headers = [ - "TestPacketBuilders.h", - ], - deps = [ - "//quic/state:state_functions", - ], - exported_deps = [ - "//quic/api:quic_batch_writer", - "//quic/codec:pktbuilder", - "//quic/codec:types", - "//quic/state:ack_states", - "//quic/state:quic_state_machine", - ], -) - -mvfst_cpp_library( - name = "test_utils", - srcs = [ - "TestUtils.cpp", - ], - headers = [ - "TestUtils.h", - ], - deps = [ - "//fizz/backend:openssl", - "//fizz/crypto/test:TestUtil", - "//fizz/protocol/clock/test:mock_clock", - "//fizz/protocol/test:mocks", - "//quic/api:transport", - "//quic/fizz/server/handshake:handshake_app_token", - "//quic/server/handshake:stateless_reset_generator", - "//quic/state:ack_event", - "//quic/state:loss_state", - "//quic/state:outstanding_packet", - "//quic/state/stream:stream", - ], - exported_deps = [ - ":test_packet_builders", - "//fizz/client:fizz_client_context", - "//fizz/server:fizz_server_context", - "//quic/api:quic_batch_writer", - "//quic/codec:pktbuilder", - "//quic/codec:types", - "//quic/common:buf_util", - "//quic/common/testutil:mock_async_udp_socket", - "//quic/fizz/client/handshake:psk_cache", - "//quic/fizz/handshake:fizz_handshake", - "//quic/fizz/server/handshake:fizz_server_handshake", - "//quic/handshake/test:mocks", - "//quic/logging:file_qlogger", - "//quic/server/state:server", - "//quic/state:ack_states", - "//quic/state:quic_state_machine", - ], -) - -cpp_unittest( - name = "TimeUtilTest", - srcs = [ - "TimeUtilTest.cpp", - ], - deps = [ - "//quic/common:time_util", - ], -) - -cpp_unittest( - name = "TransportKnobsTest", - srcs = [ - "TransportKnobsTest.cpp", - ], - deps = [ - "//folly:format", - "//folly/portability:gtest", - "//quic:constants", - "//quic/common:transport_knobs", - ], -) - -cpp_unittest( - name = "CircularDequeTest", - srcs = [ - "CircularDequeTest.cpp", - ], - deps = [ - ":test_utils", - "//folly:random", - "//quic/common:circular_deque", - ], -) - -cpp_benchmark( - name = "CircularDequeBench", - srcs = [ - "CircularDequeBench.cpp", - ], - headers = [], - deps = [ - "//folly:benchmark", - "//quic/common:circular_deque", - "//quic/common/test:test_utils", - ], -) - -cpp_unittest( - name = "SocketUtilTest", - srcs = [ - "SocketUtilTest.cpp", - ], - deps = [ - "fbsource//third-party/googletest:gmock", - "//folly/portability:gtest", - "//quic/common:socket_util", - "//quic/common/events:folly_eventbase", - "//quic/common/udpsocket:folly_async_udp_socket", - ], -) diff --git a/quic/common/testutil/BUCK b/quic/common/testutil/BUCK deleted file mode 100644 index c29ed3042..000000000 --- a/quic/common/testutil/BUCK +++ /dev/null @@ -1,15 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "mock_async_udp_socket", - headers = [ - "MockAsyncUDPSocket.h", - ], - exported_deps = [ - "//folly/portability:gmock", - "//quic/common/events:folly_eventbase", - "//quic/common/udpsocket:folly_async_udp_socket", - ], -) diff --git a/quic/common/third-party/BUCK b/quic/common/third-party/BUCK deleted file mode 100644 index 093d33568..000000000 --- a/quic/common/third-party/BUCK +++ /dev/null @@ -1,18 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "better_enums", - headers = [ - "enum.h", - ], -) - -mvfst_cpp_library( - name = "tiny_optional", - headers = [ - "optional.h", - "optional_flag_manipulator_fwd.h", - ], -) diff --git a/quic/common/udpsocket/BUCK b/quic/common/udpsocket/BUCK deleted file mode 100644 index 74e7aed23..000000000 --- a/quic/common/udpsocket/BUCK +++ /dev/null @@ -1,72 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "quic_async_udp_socket", - srcs = [ - "QuicAsyncUDPSocket.cpp", - ], - headers = [ - "QuicAsyncUDPSocket.h", - ], - exported_deps = [ - "//folly:network_address", - "//folly:range", - "//folly/io:iobuf", - "//folly/io:socket_option_map", - "//folly/io/async:async_socket_exception", - "//folly/portability:sockets", - "//quic/common:network_data", - "//quic/common:optional", - "//quic/common/events:eventbase", - ], -) - -mvfst_cpp_library( - name = "quic_async_udp_socket_impl", - srcs = [ - "QuicAsyncUDPSocketImpl.cpp", - ], - headers = [ - "QuicAsyncUDPSocketImpl.h", - ], - exported_deps = [ - ":quic_async_udp_socket", - ], -) - -mvfst_cpp_library( - name = "folly_async_udp_socket", - srcs = [ - "FollyQuicAsyncUDPSocket.cpp", - ], - headers = [ - "FollyQuicAsyncUDPSocket.h", - ], - exported_deps = [ - ":quic_async_udp_socket_impl", - "//folly/io/async:async_udp_socket", - "//folly/net:network_socket", - "//quic/common:network_data", - "//quic/common/events:folly_eventbase", - ], -) - -mvfst_cpp_library( - name = "libev_async_udp_socket", - srcs = [ - "LibevQuicAsyncUDPSocket.cpp", - ], - headers = [ - "LibevQuicAsyncUDPSocket.h", - ], - deps = [ - "//quic/common:optional", - ], - exported_deps = [ - ":quic_async_udp_socket_impl", - "//quic/common:network_data", - "//quic/common/events:libev_eventbase", - ], -) diff --git a/quic/common/udpsocket/test/BUCK b/quic/common/udpsocket/test/BUCK deleted file mode 100644 index d66524750..000000000 --- a/quic/common/udpsocket/test/BUCK +++ /dev/null @@ -1,55 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "QuicAsyncUDPSocketMock", - headers = [ - "QuicAsyncUDPSocketMock.h", - ], - exported_deps = [ - "//folly/portability:gmock", - "//quic/common/udpsocket:quic_async_udp_socket", - ], -) - -mvfst_cpp_library( - name = "QuicAsyncUDPSocketTestBase", - headers = [ - "QuicAsyncUDPSocketTestBase.h", - ], - exported_deps = [ - ":QuicAsyncUDPSocketMock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "FollyQuicAsyncUDPSocketTest", - srcs = [ - "FollyQuicAsyncUDPSocketTest.cpp", - ], - supports_static_listing = False, - deps = [ - ":QuicAsyncUDPSocketTestBase", - "//folly/portability:gtest", - "//quic/common/udpsocket:folly_async_udp_socket", - ], -) - -cpp_unittest( - name = "LibevQuicAsyncUDPSocketTest", - srcs = [ - "LibevQuicAsyncUDPSocketTest.cpp", - ], - supports_static_listing = False, - deps = [ - ":QuicAsyncUDPSocketTestBase", - "//folly/portability:gtest", - "//quic/common/udpsocket:libev_async_udp_socket", - ], - external_deps = [ - "libev", - ], -) diff --git a/quic/congestion_control/BUCK b/quic/congestion_control/BUCK deleted file mode 100644 index 187a67e7c..000000000 --- a/quic/congestion_control/BUCK +++ /dev/null @@ -1,366 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "bandwidth", - srcs = [ - "Bandwidth.cpp", - ], - headers = [ - "Bandwidth.h", - ], - deps = [ - "//folly:conv", - ], -) - -mvfst_cpp_library( - name = "congestion_controller", - headers = [ - "CongestionController.h", - ], - exported_deps = [ - ":bandwidth", - "//quic:constants", - "//quic/state:cloned_packet_identifier", - "//quic/state:outstanding_packet", - ], -) - -mvfst_cpp_library( - name = "congestion_control_functions", - srcs = [ - "CongestionControlFunctions.cpp", - ], - headers = [ - "CongestionControlFunctions.h", - ], - deps = [ - "//quic:constants", - "//quic/common:time_util", - ], - exported_deps = [ - "//quic/state:quic_state_machine", - ], -) - -mvfst_cpp_library( - name = "congestion_controller_factory", - srcs = [ - "CongestionControllerFactory.cpp", - ], - headers = [ - "CongestionControllerFactory.h", - ], - deps = [ - ":bbr", - ":bbr2", - ":bbr_bandwidth_sampler", - ":bbr_rtt_sampler", - ":copa", - ":copa2", - ":cubic", - ":newreno", - ":static_cwnd_congestion_controller", - ], - exported_deps = [ - "//quic:constants", - ], -) - -mvfst_cpp_library( - name = "static_cwnd_congestion_controller", - srcs = [ - "StaticCwndCongestionController.cpp", - ], - headers = [ - "StaticCwndCongestionController.h", - ], - deps = [ - ":congestion_control_functions", - ], - exported_deps = [ - ":congestion_controller", - "//quic/state:ack_event", - "//quic/state:transport_settings", - ], -) - -mvfst_cpp_library( - name = "server_congestion_controller_factory", - srcs = [ - "ServerCongestionControllerFactory.cpp", - ], - headers = [ - "ServerCongestionControllerFactory.h", - ], - deps = [ - ":bbr", - ":bbr2", - ":bbr_bandwidth_sampler", - ":bbr_rtt_sampler", - ":bbr_testing", - ":copa", - ":copa2", - ":cubic", - ":newreno", - ":static_cwnd_congestion_controller", - ], - exported_deps = [ - ":congestion_controller_factory", - ], -) - -mvfst_cpp_library( - name = "cubic", - srcs = [ - "QuicCubic.cpp", - ], - headers = [ - "QuicCubic.h", - ], - deps = [ - ":ecn_l4s_tracker", - "//folly:chrono", - "//quic/logging:qlogger_constants", - "//quic/state:state_functions", - ], - exported_deps = [ - ":congestion_control_functions", - ":congestion_controller", - "//quic:exception", - "//quic/state:ack_event", - "//quic/state:quic_state_machine", - ], -) - -mvfst_cpp_library( - name = "newreno", - srcs = [ - "NewReno.cpp", - ], - headers = [ - "NewReno.h", - ], - deps = [ - ":congestion_control_functions", - "//quic/logging:qlogger_constants", - ], - exported_deps = [ - ":congestion_controller", - "//quic:exception", - "//quic/state:ack_event", - "//quic/state:quic_state_machine", - ], -) - -mvfst_cpp_library( - name = "copa", - srcs = [ - "Copa.cpp", - ], - headers = [ - "Copa.h", - ], - deps = [ - ":congestion_control_functions", - "//quic/common:time_util", - "//quic/logging:qlogger_constants", - ], - exported_deps = [ - ":congestion_controller", - "//quic:exception", - "//quic/common:optional", - "//quic/congestion_control/third_party:chromium_windowed_filter", - "//quic/state:ack_event", - "//quic/state:quic_state_machine", - ], -) - -mvfst_cpp_library( - name = "copa2", - srcs = [ - "Copa2.cpp", - ], - headers = [ - "Copa2.h", - ], - deps = [ - ":congestion_control_functions", - "//quic/logging:qlogger_constants", - ], - exported_deps = [ - ":congestion_controller", - "//quic/congestion_control/third_party:chromium_windowed_filter", - "//quic/state:ack_event", - "//quic/state:quic_state_machine", - ], -) - -mvfst_cpp_library( - name = "bbr", - srcs = [ - "Bbr.cpp", - ], - headers = [ - "Bbr.h", - ], - deps = [ - ":congestion_control_functions", - "//folly:random", - "//quic:constants", - "//quic/common:time_util", - "//quic/logging:qlogger_constants", - "//quic/state:ack_frequency_functions", - ], - exported_deps = [ - ":bandwidth", - ":congestion_controller", - "//quic/congestion_control/third_party:chromium_windowed_filter", - "//quic/state:quic_state_machine", - "//quic/state:transport_settings", - ], -) - -mvfst_cpp_library( - name = "bbr2", - srcs = [ - "Bbr2.cpp", - ], - headers = [ - "Bbr2.h", - ], - deps = [ - ":congestion_control_functions", - ], - exported_deps = [ - ":bandwidth", - ":congestion_controller", - "//quic/congestion_control/third_party:chromium_windowed_filter", - "//quic/state:quic_state_machine", - "//quic/state:transport_settings", - ], -) - -mvfst_cpp_library( - name = "bbr_rtt_sampler", - srcs = [ - "BbrRttSampler.cpp", - ], - headers = [ - "BbrRttSampler.h", - ], - exported_deps = [ - ":bbr", - "//quic:constants", - ], -) - -mvfst_cpp_library( - name = "bbr_bandwidth_sampler", - srcs = [ - "BbrBandwidthSampler.cpp", - ], - headers = [ - "BbrBandwidthSampler.h", - ], - deps = [ - "//quic/logging:qlogger_constants", - ], - exported_deps = [ - ":bbr", - "//quic/congestion_control/third_party:chromium_windowed_filter", - "//quic/state:quic_state_machine", - ], -) - -mvfst_cpp_library( - name = "bbr_testing", - srcs = [ - "BbrTesting.cpp", - ], - headers = [ - "BbrTesting.h", - ], - exported_deps = [ - ":bbr", - ], -) - -mvfst_cpp_library( - name = "pacer", - srcs = [ - "TokenlessPacer.cpp", - ], - headers = [ - "Pacer.h", - "TokenlessPacer.h", - ], - deps = [ - ":congestion_control_functions", - ], - exported_deps = [ - "//quic/state:quic_state_machine", - ], -) - -mvfst_cpp_library( - name = "packet_processor", - headers = [ - "PacketProcessor.h", - ], - exported_deps = [ - ":congestion_controller", - "//folly/io:socket_option_map", - "//quic/state:cloned_packet_identifier", - "//quic/state:outstanding_packet", - ], -) - -mvfst_cpp_library( - name = "simulated_tbf", - srcs = [ - "SimulatedTBF.cpp", - ], - headers = [ - "SimulatedTBF.h", - ], - deps = [ - "//quic:exception", - ], - exported_deps = [ - "//folly:token_bucket", - "//quic:constants", - ], - exported_external_deps = [ - "glog", - ], -) - -mvfst_cpp_library( - name = "throttling_signal_provider", - headers = [ - "ThrottlingSignalProvider.h", - ], - exported_deps = [ - "//quic/common:optional", - ], -) - -mvfst_cpp_library( - name = "ecn_l4s_tracker", - srcs = [ - "EcnL4sTracker.cpp", - ], - headers = [ - "EcnL4sTracker.h", - ], - deps = [ - "//quic:exception", - ], - exported_deps = [ - ":packet_processor", - "//quic/state:quic_state_machine", - ], -) diff --git a/quic/congestion_control/test/BUCK b/quic/congestion_control/test/BUCK deleted file mode 100644 index a87deb506..000000000 --- a/quic/congestion_control/test/BUCK +++ /dev/null @@ -1,229 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "mocks", - headers = [ - "Mocks.h", - ], - exported_deps = [ - "//folly/portability:gmock", - "//quic/congestion_control:bbr", - ], -) - -mvfst_cpp_library( - name = "TestingCubic", - headers = [ - "TestingCubic.h", - ], - exported_deps = [ - "//quic/congestion_control:cubic", - ], -) - -cpp_unittest( - name = "CongestionControlFunctionsTest", - srcs = [ - "CongestionControlFunctionsTest.cpp", - ], - deps = [ - "//folly/portability:gtest", - "//quic:constants", - "//quic/congestion_control:congestion_control_functions", - "//quic/state:quic_state_machine", - ], -) - -cpp_unittest( - name = "CubicStateTest", - srcs = [ - "CubicStateTest.cpp", - ], - deps = [ - ":TestingCubic", - "//folly/portability:gtest", - "//quic/common/test:test_utils", - ], -) - -cpp_unittest( - name = "CubicTest", - srcs = [ - "CubicHystartTest.cpp", - "CubicRecoveryTest.cpp", - "CubicSteadyTest.cpp", - "CubicTest.cpp", - ], - deps = [ - ":TestingCubic", - "//folly/portability:gtest", - "//quic/common/test:test_utils", - "//quic/congestion_control:cubic", - "//quic/state/test:mocks", - ], -) - -cpp_unittest( - name = "NewRenoTest", - srcs = [ - "NewRenoTest.cpp", - ], - deps = [ - "//folly/portability:gtest", - "//quic/common/test:test_utils", - "//quic/congestion_control:newreno", - "//quic/fizz/server/handshake:fizz_server_handshake", - ], -) - -cpp_unittest( - name = "CopaTest", - srcs = [ - "CopaTest.cpp", - ], - deps = [ - "//folly/portability:gtest", - "//quic/common/test:test_utils", - "//quic/congestion_control:copa", - "//quic/fizz/server/handshake:fizz_server_handshake", - "//quic/state/test:mocks", - ], -) - -cpp_unittest( - name = "BbrTest", - srcs = [ - "BbrTest.cpp", - ], - deps = [ - ":mocks", - "//folly/portability:gmock", - "//folly/portability:gtest", - "//quic/common/test:test_utils", - "//quic/congestion_control:bbr", - "//quic/congestion_control:bbr_bandwidth_sampler", - "//quic/state/test:mocks", - ], -) - -cpp_unittest( - name = "BbrRttSamplerTest", - srcs = [ - "BbrRttSamplerTest.cpp", - ], - deps = [ - "//folly/portability:gmock", - "//folly/portability:gtest", - "//quic/congestion_control:bbr_rtt_sampler", - ], -) - -cpp_unittest( - name = "BbrBandwidthSamplerTest", - srcs = [ - "BbrBandwidthSamplerTest.cpp", - ], - deps = [ - "//folly/portability:gmock", - "//folly/portability:gtest", - "//quic/common/test:test_utils", - "//quic/congestion_control:bbr_bandwidth_sampler", - ], -) - -cpp_unittest( - name = "BandwidthTest", - srcs = [ - "BandwidthTest.cpp", - ], - deps = [ - "//folly/portability:gtest", - "//quic/congestion_control:bandwidth", - ], -) - -cpp_unittest( - name = "PacerTest", - srcs = [ - "PacerTest.cpp", - ], - deps = [ - "//folly/portability:gtest", - "//quic/congestion_control:pacer", - "//quic/state/test:mocks", - ], -) - -cpp_unittest( - name = "StaticCwndCongestionControllerTest", - srcs = [ - "StaticCwndCongestionControllerTest.cpp", - ], - deps = [ - ":mocks", - "//folly/portability:gmock", - "//folly/portability:gtest", - "//quic/common/test:test_utils", - "//quic/congestion_control:bbr", - "//quic/congestion_control:static_cwnd_congestion_controller", - "//quic/state/test:mocks", - ], -) - -cpp_unittest( - name = "SimulatedTBFTest", - srcs = [ - "SimulatedTBFTest.cpp", - ], - deps = [ - "//folly/portability:gtest", - "//quic:exception", - "//quic/congestion_control:simulated_tbf", - ], -) - -cpp_unittest( - name = "ThrottlingSignalProviderTest", - srcs = [ - "ThrottlingSignalProviderTest.cpp", - ], - deps = [ - "//quic/api:transport", - "//quic/common/test:test_utils", - "//quic/congestion_control:bbr", - "//quic/congestion_control:bbr_bandwidth_sampler", - "//quic/congestion_control:simulated_tbf", - "//quic/congestion_control:throttling_signal_provider", - "//quic/state/test:mocks", - ], -) - -cpp_unittest( - name = "Bbr2Test", - srcs = [ - "Bbr2Test.cpp", - ], - deps = [ - ":mocks", - "//folly/portability:gmock", - "//folly/portability:gtest", - "//quic/common/test:test_utils", - "//quic/congestion_control:bbr2", - "//quic/state/test:mocks", - ], -) - -cpp_unittest( - name = "EcnL4sTrackerTest", - srcs = [ - "EcnL4sTrackerTest.cpp", - ], - deps = [ - "//folly/portability:gtest", - "//quic/api/test:mocks", - "//quic/congestion_control:ecn_l4s_tracker", - ], -) diff --git a/quic/congestion_control/third_party/BUCK b/quic/congestion_control/third_party/BUCK deleted file mode 100644 index e4d701e3d..000000000 --- a/quic/congestion_control/third_party/BUCK +++ /dev/null @@ -1,10 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "chromium_windowed_filter", - headers = [ - "windowed_filter.h", - ], -) diff --git a/quic/dsr/BUCK b/quic/dsr/BUCK deleted file mode 100644 index e497d3a92..000000000 --- a/quic/dsr/BUCK +++ /dev/null @@ -1,25 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "types", - srcs = [ - "Types.cpp", - ], - headers = [ - "Types.h", - ], - exported_deps = [ - "//folly:network_address", - "//quic/codec:types", - "//quic/common:optional", - "//quic/server/state:server", - "//quic/state:quic_state_machine", - ], -) - -mvfst_cpp_library( - name = "dsr_packetization_request_sender", - headers = ["DSRPacketizationRequestSender.h"], -) diff --git a/quic/dsr/backend/BUCK b/quic/dsr/backend/BUCK deleted file mode 100644 index dcd47834b..000000000 --- a/quic/dsr/backend/BUCK +++ /dev/null @@ -1,30 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "dsr_packetizer", - srcs = ["DSRPacketizer.cpp"], - headers = ["DSRPacketizer.h"], - deps = [ - "//quic/api:quic_batch_writer", - ], - exported_deps = [ - "//fizz/crypto/aead:aead", - "//fizz/protocol:default_factory", - "//fizz/protocol:protocol", - "//fizz/record:record", - "//folly:hash", - "//folly:network_address", - "//folly/container:evicting_cache_map", - "//folly/io/async:async_udp_socket", - "//quic/api:transport", - "//quic/codec:packet_number_cipher", - "//quic/codec:pktbuilder", - "//quic/codec:types", - "//quic/dsr:types", - "//quic/fizz/handshake:fizz_handshake", - "//quic/handshake:aead", - "//quic/xsk:xsk_sender", - ], -) diff --git a/quic/dsr/backend/test/BUCK b/quic/dsr/backend/test/BUCK deleted file mode 100644 index 6c1f80ed6..000000000 --- a/quic/dsr/backend/test/BUCK +++ /dev/null @@ -1,33 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "test_utils", - headers = [ - "TestUtils.h", - ], - exported_deps = [ - "//quic/dsr:types", - "//quic/dsr/backend:dsr_packetizer", - ], -) - -cpp_unittest( - name = "dsr_packetizer_test", - srcs = [ - "DSRPacketizerTest.cpp", - ], - deps = [ - ":test_utils", - "//folly/portability:gtest", - "//quic/common/events:folly_eventbase", - "//quic/common/test:test_utils", - "//quic/common/testutil:mock_async_udp_socket", - "//quic/common/udpsocket:quic_async_udp_socket", - "//quic/dsr/backend:dsr_packetizer", - "//quic/dsr/frontend:write_functions", - "//quic/dsr/test:test_common", - ], -) diff --git a/quic/dsr/frontend/BUCK b/quic/dsr/frontend/BUCK deleted file mode 100644 index b7da07602..000000000 --- a/quic/dsr/frontend/BUCK +++ /dev/null @@ -1,74 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "write_codec", - srcs = [ - "WriteCodec.cpp", - ], - headers = [ - "WriteCodec.h", - ], - deps = [ - "//quic/common:optional", - ], - exported_deps = [ - ":packet_builder", - "//quic/dsr:types", - ], -) - -mvfst_cpp_library( - name = "packet_builder", - headers = [ - "PacketBuilder.h", - ], - exported_deps = [ - "//quic/codec:packet_number", - "//quic/codec:types", - "//quic/dsr:types", - ], -) - -mvfst_cpp_library( - name = "scheduler", - srcs = [ - "Scheduler.cpp", - ], - headers = [ - "Scheduler.h", - ], - deps = [ - ":write_codec", - "//quic/flowcontrol:flow_control", - "//quic/state:state_functions", - "//quic/state:stream_functions", - ], - exported_deps = [ - ":packet_builder", - "//quic/server/state:server", - "//quic/state:quic_state_machine", - ], -) - -mvfst_cpp_library( - name = "write_functions", - srcs = [ - "WriteFunctions.cpp", - ], - headers = [ - "WriteFunctions.h", - ], - deps = [ - "//folly:scope_guard", - ], - exported_deps = [ - ":scheduler", - "//quic/api:transport", - "//quic/codec:types", - "//quic/dsr:dsr_packetization_request_sender", - "//quic/handshake:aead", - "//quic/server/state:server", - ], -) diff --git a/quic/dsr/frontend/test/BUCK b/quic/dsr/frontend/test/BUCK deleted file mode 100644 index d5718e17f..000000000 --- a/quic/dsr/frontend/test/BUCK +++ /dev/null @@ -1,79 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "mocks", - headers = [ - "Mocks.h", - ], - exported_deps = [ - "//folly/portability:gmock", - "//quic/dsr/frontend:packet_builder", - ], -) - -cpp_unittest( - name = "write_codec_test", - srcs = [ - "WriteCodecTest.cpp", - ], - deps = [ - ":mocks", - "//folly/portability:gtest", - "//quic:constants", - "//quic/common/test:test_utils", - "//quic/dsr/frontend:write_codec", - "//quic/dsr/test:test_common", - "//quic/fizz/server/handshake:fizz_server_handshake", - "//quic/handshake/test:mocks", - "//quic/server/state:server", - ], -) - -cpp_unittest( - name = "packet_builder_test", - srcs = [ - "PacketBuilderTest.cpp", - ], - deps = [ - "//folly/portability:gtest", - "//quic/common/test:test_utils", - "//quic/dsr:types", - "//quic/dsr/frontend:packet_builder", - "//quic/dsr/test:test_common", - "//quic/fizz/server/handshake:fizz_server_handshake", - "//quic/handshake/test:mocks", - "//quic/server/state:server", - ], -) - -cpp_unittest( - name = "scheduler_test", - srcs = [ - "SchedulerTest.cpp", - ], - deps = [ - ":mocks", - "//folly/portability:gtest", - "//quic/dsr/frontend:scheduler", - "//quic/dsr/test:mocks", - "//quic/dsr/test:test_common", - "//quic/fizz/server/handshake:fizz_server_handshake", - "//quic/server/state:server", - ], -) - -cpp_unittest( - name = "write_functions_test", - srcs = [ - "WriteFunctionsTest.cpp", - ], - deps = [ - "//folly/portability:gtest", - "//quic/dsr/frontend:write_functions", - "//quic/dsr/test:test_common", - "//quic/state/test:mocks", - ], -) diff --git a/quic/dsr/test/BUCK b/quic/dsr/test/BUCK deleted file mode 100644 index 1bffccf93..000000000 --- a/quic/dsr/test/BUCK +++ /dev/null @@ -1,27 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "mocks", - headers = [ - "Mocks.h", - ], - exported_deps = [ - "//folly/portability:gmock", - "//quic/dsr:dsr_packetization_request_sender", - ], -) - -mvfst_cpp_library( - name = "test_common", - headers = ["TestCommon.h"], - exported_deps = [ - ":mocks", - "//folly/portability:gtest", - "//quic/common/test:test_utils", - "//quic/dsr/frontend:scheduler", - "//quic/fizz/server/handshake:fizz_server_handshake", - "//quic/server/state:server", - ], -) diff --git a/quic/fizz/client/handshake/BUCK b/quic/fizz/client/handshake/BUCK deleted file mode 100644 index 4c205d050..000000000 --- a/quic/fizz/client/handshake/BUCK +++ /dev/null @@ -1,58 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "fizz_client_handshake", - srcs = [ - "FizzClientHandshake.cpp", - "FizzClientQuicHandshakeContext.cpp", - ], - headers = [ - "FizzClientExtensions.h", - "FizzClientHandshake.h", - "FizzClientQuicHandshakeContext.h", - ], - deps = [ - "//fizz/client:early_data_rejection", - "//fizz/client:ech_policy", - "//fizz/protocol:exporter", - "//fizz/protocol:protocol", - "//quic/codec:pktbuilder", - ], - exported_deps = [ - ":psk_cache", - "//fizz/client:actions", - "//fizz/client:async_fizz_client", - "//fizz/client:client_extensions", - "//fizz/client:fizz_client_context", - "//fizz/client:protocol", - "//fizz/protocol:default_certificate_verifier", - "//quic/client:client_extension", - "//quic/client:state_and_handshake", - "//quic/fizz/handshake:fizz_handshake", - ], -) - -mvfst_cpp_library( - name = "psk_cache", - headers = [ - "QuicPskCache.h", - ], - exported_deps = [ - "//fizz/client:psk_cache", - "//quic/client:cached_server_tp", - "//quic/common:optional", - ], -) - -mvfst_cpp_library( - name = "token_cache", - headers = [ - "QuicTokenCache.h", - ], - exported_deps = [ - "//folly:string", - "//quic/common:optional", - ], -) diff --git a/quic/fizz/client/handshake/test/BUCK b/quic/fizz/client/handshake/test/BUCK deleted file mode 100644 index 86409785e..000000000 --- a/quic/fizz/client/handshake/test/BUCK +++ /dev/null @@ -1,58 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("traffic_protocols") - -cpp_unittest( - name = "fizz_client_handshake_test", - srcs = [ - "FizzClientHandshakeTest.cpp", - ], - deps = [ - "fbsource//third-party/googletest:gmock", - ":mock_psk_cache", - "//fizz/backend:openssl", - "//fizz/client/test:mocks", - "//fizz/crypto/test:TestUtil", - "//fizz/protocol/clock/test:mock_clock", - "//fizz/protocol/ech:decrypter", - "//fizz/protocol/test:mocks", - "//fizz/server:protocol", - "//fizz/server/test:mocks", - "//folly:fbstring", - "//folly/io/async:scoped_event_base_thread", - "//folly/io/async:ssl_context", - "//folly/io/async/test:mocks", - "//quic/client:client_extension", - "//quic/client:state_and_handshake", - "//quic/common/test:test_utils", - "//quic/fizz/client/handshake:fizz_client_handshake", - "//quic/fizz/handshake:fizz_handshake", - "//quic/state:quic_state_machine", - "//quic/state:stream_functions", - ], -) - -cpp_unittest( - name = "FizzClientExtensionsTest", - srcs = [ - "FizzClientExtensionsTest.cpp", - ], - deps = [ - "//fizz/protocol/test:test_util", - "//quic/common/test:test_utils", - "//quic/fizz/client/handshake:fizz_client_handshake", - ], -) - -mvfst_cpp_library( - name = "mock_psk_cache", - headers = [ - "MockQuicPskCache.h", - ], - exported_deps = [ - "//folly/portability:gmock", - "//quic/common:optional", - "//quic/fizz/client/handshake:psk_cache", - ], -) diff --git a/quic/fizz/client/test/BUCK b/quic/fizz/client/test/BUCK deleted file mode 100644 index 4e393615c..000000000 --- a/quic/fizz/client/test/BUCK +++ /dev/null @@ -1,58 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "quic_client_transport_test_util", - headers = [ - "QuicClientTransportTestUtil.h", - ], - exported_deps = [ - "//folly/portability:gmock", - "//folly/portability:gtest", - "//quic/api:transport", - "//quic/api/test:mocks", - "//quic/client:client", - "//quic/codec:types", - "//quic/common/events:folly_eventbase", - "//quic/common/test:test_client_utils", - "//quic/common/test:test_utils", - "//quic/common/testutil:mock_async_udp_socket", - "//quic/fizz/client/handshake:fizz_client_handshake", - "//quic/state/test:mocks", - ], -) - -cpp_unittest( - name = "QuicClientTransportTest", - srcs = [ - "QuicClientTransportTest.cpp", - ], - supports_static_listing = False, - deps = [ - ":quic_client_transport_test_util", - "//fizz/crypto/aead/test:mocks", - "//fizz/protocol/clock/test:mock_clock", - "//folly/futures:core", - "//folly/io:iobuf", - "//folly/io:socket_option_map", - "//folly/io/async:scoped_event_base_thread", - "//folly/portability:gmock", - "//folly/portability:gtest", - "//quic:constants", - "//quic/common/events:folly_eventbase", - "//quic/common/events:highres_quic_timer", - "//quic/common/udpsocket:folly_async_udp_socket", - "//quic/congestion_control:congestion_controller_factory", - "//quic/fizz/client/handshake/test:mock_psk_cache", - "//quic/fizz/handshake:fizz_handshake", - "//quic/handshake:transport_parameters", - "//quic/handshake/test:mocks", - "//quic/happyeyeballs:happyeyeballs", - "//quic/logging:file_qlogger", - "//quic/logging/test:mocks", - "//quic/samples/echo:echo_handler", - "//quic/server:server", - ], -) diff --git a/quic/fizz/handshake/BUCK b/quic/fizz/handshake/BUCK deleted file mode 100644 index bc5780e5a..000000000 --- a/quic/fizz/handshake/BUCK +++ /dev/null @@ -1,43 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "fizz_handshake", - srcs = [ - "FizzBridge.cpp", - "FizzCryptoFactory.cpp", - "FizzPacketNumberCipher.cpp", - "FizzRetryIntegrityTagGenerator.cpp", - "QuicFizzFactory.cpp", - ], - headers = [ - "FizzBridge.h", - "FizzCryptoFactory.h", - "FizzPacketNumberCipher.h", - "FizzRetryIntegrityTagGenerator.h", - "FizzTransportParameters.h", - "QuicFizzFactory.h", - ], - deps = [ - "//fizz/backend:openssl", - "//fizz/crypto:crypto", - "//fizz/crypto:utils", - "//quic/common:optional", - ], - exported_deps = [ - "//fizz/crypto/aead:aead", - "//fizz/protocol:default_factory", - "//fizz/protocol:types", - "//fizz/record:record", - "//folly/ssl:openssl_ptr_types", - "//quic:constants", - "//quic/codec:packet_number_cipher", - "//quic/codec:types", - "//quic/common:buf_util", - "//quic/handshake:aead", - "//quic/handshake:handshake", - "//quic/handshake:retry_integrity_tag_generator", - "//quic/handshake:transport_parameters", - ], -) diff --git a/quic/fizz/handshake/test/BUCK b/quic/fizz/handshake/test/BUCK deleted file mode 100644 index c5ebaab0d..000000000 --- a/quic/fizz/handshake/test/BUCK +++ /dev/null @@ -1,46 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("traffic_protocols") - -cpp_unittest( - name = "FizzTransportParametersTest", - srcs = [ - "FizzTransportParametersTest.cpp", - ], - deps = [ - "//fizz/record/test:extension_tests_base", - "//folly/portability:gmock", - "//folly/portability:gtest", - "//quic/common/test:test_utils", - "//quic/fizz/handshake:fizz_handshake", - ], -) - -cpp_unittest( - name = "FizzCryptoFactoryTest", - srcs = [ - "FizzCryptoFactoryTest.cpp", - ], - deps = [ - "//fizz/crypto/aead/test:mocks", - "//folly/portability:gmock", - "//folly/portability:gtest", - "//quic/common/test:test_utils", - "//quic/fizz/handshake:fizz_handshake", - "//quic/handshake/test:mocks", - ], -) - -cpp_unittest( - name = "FizzPacketNumberCipherTest", - srcs = [ - "FizzPacketNumberCipherTest.cpp", - ], - supports_static_listing = False, - deps = [ - "//fizz/record:record", - "//folly:string", - "//folly/portability:gtest", - "//quic/fizz/handshake:fizz_handshake", - ], -) diff --git a/quic/fizz/server/handshake/BUCK b/quic/fizz/server/handshake/BUCK deleted file mode 100644 index e9027fb25..000000000 --- a/quic/fizz/server/handshake/BUCK +++ /dev/null @@ -1,46 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "fizz_server_handshake", - srcs = [ - "FizzServerHandshake.cpp", - "FizzServerQuicHandshakeContext.cpp", - ], - headers = [ - "FizzServerHandshake.h", - "FizzServerQuicHandshakeContext.h", - ], - deps = [ - ":handshake_app_token", - "//fizz/protocol:protocol", - "//quic/server/state:server", - ], - exported_deps = [ - "//fizz/server:fizz_server_context", - "//fizz/server:protocol", - "//quic/common:circular_deque", - "//quic/fizz/handshake:fizz_handshake", - "//quic/server/handshake:server_handshake", - ], -) - -mvfst_cpp_library( - name = "handshake_app_token", - srcs = [ - "AppToken.cpp", - ], - headers = [ - "AppToken.h", - ], - deps = [ - "//fizz/server:protocol", - "//quic/fizz/handshake:fizz_handshake", - ], - exported_deps = [ - "//fizz/record:record", - "//quic/common:optional", - "//quic/server/handshake:app_token", - ], -) diff --git a/quic/flowcontrol/BUCK b/quic/flowcontrol/BUCK deleted file mode 100644 index 1bbd4af1d..000000000 --- a/quic/flowcontrol/BUCK +++ /dev/null @@ -1,20 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "flow_control", - srcs = [ - "QuicFlowController.cpp", - ], - headers = ["QuicFlowController.h"], - deps = [ - "//quic:constants", - "//quic:exception", - "//quic/logging:qlogger", - ], - exported_deps = [ - "//quic/codec:types", - "//quic/state:quic_state_machine", - ], -) diff --git a/quic/flowcontrol/test/BUCK b/quic/flowcontrol/test/BUCK deleted file mode 100644 index 5b69437cb..000000000 --- a/quic/flowcontrol/test/BUCK +++ /dev/null @@ -1,17 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("traffic_protocols") - -cpp_unittest( - name = "QuicFlowControlTest", - srcs = [ - "QuicFlowControlTest.cpp", - ], - deps = [ - "fbsource//third-party/googletest:gmock", - "//quic/client:state_and_handshake", - "//quic/common/test:test_utils", - "//quic/flowcontrol:flow_control", - "//quic/state/test:mocks", - ], -) diff --git a/quic/handshake/BUCK b/quic/handshake/BUCK deleted file mode 100644 index e93b025f5..000000000 --- a/quic/handshake/BUCK +++ /dev/null @@ -1,62 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "aead", - headers = [ - "Aead.h", - ], - exported_deps = [ - "//folly/io:iobuf", - "//quic/common:optional", - ], -) - -mvfst_cpp_library( - name = "handshake", - srcs = [ - "CryptoFactory.cpp", - "HandshakeLayer.cpp", - ], - headers = [ - "CryptoFactory.h", - "HandshakeLayer.h", - ], - exported_deps = [ - ":aead", - "//quic:constants", - "//quic/codec:packet_number_cipher", - "//quic/codec:types", - ], -) - -mvfst_cpp_library( - name = "transport_parameters", - srcs = [ - "TransportParameters.cpp", - ], - headers = [ - "TransportParameters.h", - ], - deps = [ - "//quic/common:buf_util", - "//quic/state:quic_state_machine", - ], - exported_deps = [ - "//quic:constants", - "//quic:exception", - "//quic/codec:types", - ], -) - -mvfst_cpp_library( - name = "retry_integrity_tag_generator", - headers = [ - "RetryIntegrityTagGenerator.h", - ], - exported_deps = [ - "//folly/io:iobuf", - "//quic:constants", - ], -) diff --git a/quic/handshake/test/BUCK b/quic/handshake/test/BUCK deleted file mode 100644 index 3df9bd814..000000000 --- a/quic/handshake/test/BUCK +++ /dev/null @@ -1,17 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "mocks", - headers = [ - "Mocks.h", - ], - exported_deps = [ - "//folly/portability:gmock", - "//quic/codec:packet_number_cipher", - "//quic/fizz/handshake:fizz_handshake", - "//quic/handshake:aead", - "//quic/handshake:handshake", - ], -) diff --git a/quic/happyeyeballs/BUCK b/quic/happyeyeballs/BUCK deleted file mode 100644 index f24eb62e1..000000000 --- a/quic/happyeyeballs/BUCK +++ /dev/null @@ -1,27 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "happyeyeballs", - srcs = [ - "QuicHappyEyeballsFunctions.cpp", - ], - headers = [ - "QuicHappyEyeballsFunctions.h", - ], - deps = [ - "//common/network:mvfst_hooks", # @manual - "//folly:network_address", - "//folly/portability:sockets", - "//quic/common:socket_util", - "//quic/state:quic_state_machine", - ], - exported_deps = [ - "//folly/io:socket_option_map", - "//folly/net:net_ops", - "//quic/client:state_and_handshake", - "//quic/common/events:eventbase", - "//quic/common/udpsocket:quic_async_udp_socket", - ], -) diff --git a/quic/logging/BUCK b/quic/logging/BUCK deleted file mode 100644 index f601492b5..000000000 --- a/quic/logging/BUCK +++ /dev/null @@ -1,71 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "qlogger_constants", - srcs = [ - "QLoggerConstants.cpp", - ], - headers = [ - "QLoggerConstants.h", - ], - exported_deps = [ - "//folly:string", - "//quic:constants", - "//quic/codec:types", - ], -) - -mvfst_cpp_library( - name = "qlogger", - srcs = [ - "QLogger.cpp", - ], - headers = [ - "QLogger.h", - ], - exported_deps = [ - ":qlogger_constants", - "//quic/codec:types", - ], -) - -mvfst_cpp_library( - name = "base_qlogger", - srcs = [ - "BaseQLogger.cpp", - "QLoggerTypes.cpp", - ], - headers = [ - "BaseQLogger.h", - "QLoggerTypes.h", - ], - deps = [ - "//quic:exception", - ], - exported_deps = [ - ":qlogger", - ":qlogger_constants", - "//folly/json:dynamic", - "//quic/codec:types", - ], -) - -mvfst_cpp_library( - name = "file_qlogger", - srcs = [ - "FileQLogger.cpp", - ], - headers = [ - "FileQLogger.h", - ], - exported_deps = [ - ":base_qlogger", - ":qlogger_constants", - "//folly/compression:compression", - "//folly/json:dynamic", - "//folly/logging:logging", - "//quic/codec:types", - ], -) diff --git a/quic/logging/test/BUCK b/quic/logging/test/BUCK deleted file mode 100644 index ea1c2af1e..000000000 --- a/quic/logging/test/BUCK +++ /dev/null @@ -1,32 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "mocks", - headers = [ - "Mocks.h", - ], - exported_deps = [ - "//folly/portability:gmock", - "//quic/logging:qlogger", - ], -) - -cpp_unittest( - name = "QLoggerTest", - srcs = [ - "QLoggerTest.cpp", - ], - deps = [ - "//folly:file_util", - "//folly:random", - "//folly/json:dynamic", - "//folly/portability:filesystem", - "//quic/common/test:test_utils", - "//quic/congestion_control:bbr", - "//quic/logging:file_qlogger", - "//quic/logging:qlogger", - ], -) diff --git a/quic/loss/BUCK b/quic/loss/BUCK deleted file mode 100644 index 108f08732..000000000 --- a/quic/loss/BUCK +++ /dev/null @@ -1,31 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "loss", - srcs = [ - "QuicLossFunctions.cpp", - ], - headers = [ - "QuicLossFunctions.h", - ], - deps = [ - "//folly:small_vector", - "//quic/state:stream_functions", - ], - exported_deps = [ - "//folly:chrono", - "//quic:constants", - "//quic/codec:types", - "//quic/common:optional", - "//quic/common:time_util", - "//quic/congestion_control:congestion_controller", - "//quic/flowcontrol:flow_control", - "//quic/logging:qlogger_constants", - "//quic/observer:socket_observer_types", - "//quic/state:quic_state_machine", - "//quic/state:simple_frame_functions", - "//quic/state:state_functions", - ], -) diff --git a/quic/loss/test/BUCK b/quic/loss/test/BUCK deleted file mode 100644 index e6bbfd92d..000000000 --- a/quic/loss/test/BUCK +++ /dev/null @@ -1,33 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("traffic_protocols") - -cpp_unittest( - name = "QuicLossFunctionsTest", - srcs = [ - "QuicLossFunctionsTest.cpp", - ], - supports_static_listing = False, - deps = [ - "//folly/io/async/test:mocks", - "//folly/portability:gmock", - "//folly/portability:gtest", - "//quic/api:transport", - "//quic/api/test:mocks", - "//quic/client:state_and_handshake", - "//quic/codec:types", - "//quic/common/events:folly_eventbase", - "//quic/common/test:test_utils", - "//quic/common/testutil:mock_async_udp_socket", - "//quic/dsr:types", - "//quic/dsr/test:mocks", - "//quic/fizz/client/handshake:fizz_client_handshake", - "//quic/fizz/server/handshake:fizz_server_handshake", - "//quic/logging/test:mocks", - "//quic/loss:loss", - "//quic/server/state:server", - "//quic/state:ack_event", - "//quic/state/stream:stream", - "//quic/state/test:mocks", - ], -) diff --git a/quic/observer/BUCK b/quic/observer/BUCK deleted file mode 100644 index d76a70fd8..000000000 --- a/quic/observer/BUCK +++ /dev/null @@ -1,35 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "socket_observer_container", - headers = ["SocketObserverContainer.h"], - exported_deps = [ - ":socket_observer_interface", - "//folly:observer_container", - ], -) - -mvfst_cpp_library( - name = "socket_observer_interface", - srcs = [ - "SocketObserverInterface.cpp", - ], - headers = ["SocketObserverInterface.h"], - exported_deps = [ - "//quic:exception", - "//quic/common:small_collections", - "//quic/state:ack_event", - "//quic/state:outstanding_packet", - "//quic/state:quic_stream_utilities", - ], -) - -mvfst_cpp_library( - name = "socket_observer_types", - headers = ["SocketObserverTypes.h"], - exported_deps = [ - ":socket_observer_container", - ], -) diff --git a/quic/observer/test/BUCK b/quic/observer/test/BUCK deleted file mode 100644 index 786a4ae4e..000000000 --- a/quic/observer/test/BUCK +++ /dev/null @@ -1,16 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("traffic_protocols") - -cpp_unittest( - name = "SocketObserverInterfaceTest", - srcs = [ - "SocketObserverInterfaceTest.cpp", - ], - deps = [ - "fbsource//third-party/googletest:gmock", - "//quic/common/test:test_packet_builders", - "//quic/common/test:test_utils", - "//quic/observer:socket_observer_interface", - ], -) diff --git a/quic/samples/echo/BUCK b/quic/samples/echo/BUCK deleted file mode 100644 index f8d7829e1..000000000 --- a/quic/samples/echo/BUCK +++ /dev/null @@ -1,56 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") -load("@fbcode_macros//build_defs:cpp_binary.bzl", "cpp_binary") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "echo_handler", - headers = [ - "EchoClient.h", - "EchoHandler.h", - "EchoServer.h", - "EchoTransportServer.h", - "LogQuicStats.h", - ], - exported_deps = [ - "fbcode//fizz/backend:openssl", - "fbcode//fizz/compression:zlib_certificate_decompressor", - "fbcode//fizz/compression:zstd_certificate_decompressor", - "fbcode//folly:file_util", - "fbcode//folly:synchronized", - "fbcode//folly/fibers:core", - "fbcode//folly/io/async:scoped_event_base_thread", - "fbcode//quic:constants", - "fbcode//quic:exception", - "fbcode//quic/api:transport", - "fbcode//quic/client:client", - "fbcode//quic/codec:types", - "fbcode//quic/common:buf_util", - "fbcode//quic/common/events:folly_eventbase", - "fbcode//quic/common/test:test_client_utils", - "fbcode//quic/common/test:test_utils", - "fbcode//quic/common/udpsocket:folly_async_udp_socket", - "fbcode//quic/fizz/client/handshake:fizz_client_handshake", - "fbcode//quic/server:server", - "fbcode//quic/state:stats_callback", - ], - exported_external_deps = [ - "glog", - ], -) - -cpp_binary( - name = "echo", - srcs = [ - "main.cpp", - ], - deps = [ - ":echo_handler", - "//fizz/crypto:utils", - "//folly/init:init", - "//folly/portability:gflags", - ], - external_deps = [ - "glog", - ], -) diff --git a/quic/server/BUCK b/quic/server/BUCK deleted file mode 100644 index db0a4efc7..000000000 --- a/quic/server/BUCK +++ /dev/null @@ -1,113 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "accept_observer", - headers = [ - "AcceptObserver.h", - ], -) - -mvfst_cpp_library( - name = "server", - srcs = [ - "QuicServer.cpp", - "QuicServerBackendIoUring.cpp", - "QuicServerPacketRouter.cpp", - "QuicServerTransport.cpp", - "QuicServerWorker.cpp", - ], - headers = [ - "QuicReusePortUDPSocketFactory.h", - "QuicServer.h", - "QuicServerPacketRouter.h", - "QuicServerTransport.h", - "QuicServerTransportFactory.h", - "QuicServerWorker.h", - "QuicSharedUDPSocketFactory.h", - "QuicUDPSocketFactory.h", - ], - deps = [ - "fbsource//third-party/fmt:fmt", - ":accept_observer", - "//common/network:mvfst_hooks", # @manual - "//folly:conv", - "//folly/chrono:conv", - "//folly/experimental/io:io_uring_backend", - "//folly/io:iobuf", - "//folly/io/async:event_base_manager", - "//folly/portability:gflags", - "//folly/system:thread_id", - "//quic/codec:header_codec", - "//quic/common:optional", - "//quic/common:socket_util", - "//quic/congestion_control:bbr", - "//quic/congestion_control:copa", - "//quic/dsr/frontend:write_functions", - "//quic/fizz/handshake:fizz_handshake", - "//quic/fizz/server/handshake:fizz_server_handshake", - "//quic/server/handshake:app_token", - "//quic/server/handshake:default_app_token_validator", - "//quic/server/handshake:stateless_reset_generator", - "//quic/server/handshake:token_generator", - "//quic/server/third-party:siphash", - "//quic/state:quic_stream_utilities", - "//quic/state:transport_settings_functions", - ], - exported_deps = [ - ":rate_limiter", - "//fizz/record:record", - "//fizz/server:fizz_server_context", - "//folly:random", - "//folly:small_vector", - "//folly:thread_local", - "//folly/container:evicting_cache_map", - "//folly/container:f14_hash", - "//folly/io:socket_option_map", - "//folly/io/async:async_base", - "//folly/io/async:async_transport_certificate", - "//folly/io/async:async_udp_socket", - "//folly/io/async:scoped_event_base_thread", - "//quic:constants", - "//quic/api:transport", - "//quic/codec:types", - "//quic/common:buf_accessor", - "//quic/common:transport_knobs", - "//quic/common/events:folly_eventbase", - "//quic/common/events:highres_quic_timer", - "//quic/common/udpsocket:folly_async_udp_socket", - "//quic/congestion_control:congestion_controller_factory", - "//quic/congestion_control:server_congestion_controller_factory", - "//quic/server/handshake:server_extension", - "//quic/server/state:server", - "//quic/server/state:server_connection_id_rejector", - "//quic/state:quic_connection_stats", - "//quic/state:stats_callback", - ], -) - -mvfst_cpp_library( - name = "rate_limiter", - srcs = ["SlidingWindowRateLimiter.cpp"], - headers = [ - "RateLimiter.h", - "SlidingWindowRateLimiter.h", - ], - exported_deps = [ - "//quic:constants", - "//quic/common:optional", - ], -) - -mvfst_cpp_library( - name = "quic_handshake_socket_holder", - srcs = [], - headers = [ - "QuicHandshakeSocketHolder.h", - ], - exported_deps = [ - ":server", - "//quic/api:transport", - ], -) diff --git a/quic/server/async_tran/BUCK b/quic/server/async_tran/BUCK deleted file mode 100644 index 2c8db9360..000000000 --- a/quic/server/async_tran/BUCK +++ /dev/null @@ -1,26 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "server_async_transport", - srcs = [ - "QuicAsyncTransportAcceptor.cpp", - "QuicAsyncTransportServer.cpp", - "QuicServerAsyncTransport.cpp", - ], - headers = [ - "QuicAsyncTransportAcceptor.h", - "QuicAsyncTransportServer.h", - "QuicServerAsyncTransport.h", - ], - deps = [ - "//folly:conv", - ], - exported_deps = [ - "//folly/io/async:async_transport", - "//folly/io/async:scoped_event_base_thread", - "//quic/api:stream_async_transport", - "//quic/server:server", - ], -) diff --git a/quic/server/async_tran/test/BUCK b/quic/server/async_tran/test/BUCK deleted file mode 100644 index 5f5d58706..000000000 --- a/quic/server/async_tran/test/BUCK +++ /dev/null @@ -1,26 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("traffic_protocols") - -cpp_unittest( - name = "QuicAsyncTransportServerTest", - srcs = [ - "QuicAsyncTransportServerTest.cpp", - ], - deps = [ - "//folly/futures:core", - "//folly/io/async:async_transport", - "//folly/io/async/test:mocks", - "//folly/portability:gmock", - "//folly/portability:gtest", - "//quic/api/test:mocks", - "//quic/client:client", - "//quic/client:client_async_transport", - "//quic/common/test:test_client_utils", - "//quic/common/test:test_utils", - "//quic/fizz/client/handshake:fizz_client_handshake", - "//quic/server:server", - "//quic/server/async_tran:server_async_transport", - "//quic/server/test:mocks", - ], -) diff --git a/quic/server/handshake/BUCK b/quic/server/handshake/BUCK deleted file mode 100644 index e1d8d8133..000000000 --- a/quic/server/handshake/BUCK +++ /dev/null @@ -1,123 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "server_handshake", - srcs = [ - "ServerHandshake.cpp", - ], - headers = [ - "ServerHandshake.h", - "ServerHandshakeFactory.h", - ], - deps = [ - "//quic/fizz/handshake:fizz_handshake", - "//quic/state:stream_functions", - ], - exported_deps = [ - ":app_token", - ":server_extension", - "//fizz/protocol:default_certificate_verifier", - "//fizz/server:fizz_server", - "//fizz/server:fizz_server_context", - "//folly/io:iobuf", - "//folly/io/async:delayed_destruction", - "//quic:constants", - "//quic:exception", - "//quic/handshake:handshake", - "//quic/state:quic_state_machine", - ], -) - -mvfst_cpp_library( - name = "server_extension", - headers = [ - "ServerTransportParametersExtension.h", - ], - exported_deps = [ - ":stateless_reset_generator", - "//fizz/server:server_extensions", - "//quic/fizz/handshake:fizz_handshake", - ], -) - -mvfst_cpp_library( - name = "app_token", - srcs = [ - "AppToken.cpp", - ], - headers = [ - "AppToken.h", - ], - exported_deps = [ - "//quic:constants", - "//quic/handshake:transport_parameters", - ], -) - -mvfst_cpp_library( - name = "default_app_token_validator", - srcs = [ - "DefaultAppTokenValidator.cpp", - ], - headers = [ - "DefaultAppTokenValidator.h", - ], - deps = [ - "//fizz/server:resumption_state", - "//folly:network_address", - "//quic:constants", - "//quic/api:transport", - "//quic/fizz/server/handshake:handshake_app_token", - "//quic/handshake:transport_parameters", - "//quic/server/state:server", - ], - exported_deps = [ - "//fizz/server:protocol", - "//folly:function", - "//folly/io:iobuf", - "//quic/common:optional", - ], - external_deps = [ - "glog", - ], -) - -mvfst_cpp_library( - name = "stateless_reset_generator", - srcs = [ - "StatelessResetGenerator.cpp", - ], - headers = [ - "StatelessResetGenerator.h", - ], - deps = [ - "//fizz/backend:openssl", - "//folly:range", - ], - exported_deps = [ - "//fizz/crypto:crypto", - "//fizz/crypto:hkdf", - "//quic/codec:types", - ], -) - -mvfst_cpp_library( - name = "token_generator", - srcs = [ - "TokenGenerator.cpp", - ], - headers = [ - "TokenGenerator.h", - ], - deps = [ - "//folly:range", - "//quic/codec:decode", - ], - exported_deps = [ - "//fizz/server:aead_token_cipher", - "//folly/io:iobuf", - "//quic/codec:types", - ], -) diff --git a/quic/server/handshake/test/BUCK b/quic/server/handshake/test/BUCK deleted file mode 100644 index 0e579012c..000000000 --- a/quic/server/handshake/test/BUCK +++ /dev/null @@ -1,103 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("traffic_protocols") - -cpp_unittest( - name = "ServerHandshakeTest", - srcs = [ - "ServerHandshakeTest.cpp", - ], - deps = [ - "fbsource//third-party/googletest:gmock", - "//fizz/client/test:mocks", - "//fizz/crypto/test:TestUtil", - "//fizz/protocol/clock/test:mock_clock", - "//fizz/protocol/test:mocks", - "//fizz/server/test:mocks", - "//folly/io/async:scoped_event_base_thread", - "//folly/io/async:ssl_context", - "//folly/io/async/test:mocks", - "//quic:constants", - "//quic/common/test:test_utils", - "//quic/fizz/client/handshake:fizz_client_handshake", - "//quic/fizz/handshake:fizz_handshake", - "//quic/fizz/server/handshake:fizz_server_handshake", - "//quic/fizz/server/handshake:handshake_app_token", - "//quic/handshake:handshake", - "//quic/server/handshake:app_token", - "//quic/server/handshake:server_handshake", - "//quic/state:quic_state_machine", - ], -) - -cpp_unittest( - name = "ServerTransportParametersTest", - srcs = [ - "ServerTransportParametersTest.cpp", - ], - deps = [ - "fbsource//third-party/googletest:gmock", - "//fizz/protocol/test:test_util", - "//quic:constants", - "//quic/common/test:test_utils", - "//quic/server/handshake:server_extension", - ], -) - -cpp_unittest( - name = "AppTokenTest", - srcs = [ - "AppTokenTest.cpp", - ], - deps = [ - "//fizz/server:resumption_state", - "//quic:constants", - "//quic/common:optional", - "//quic/fizz/server/handshake:handshake_app_token", - "//quic/server/state:server", - ], -) - -cpp_unittest( - name = "DefaultAppTokenValidatorTest", - srcs = [ - "DefaultAppTokenValidatorTest.cpp", - ], - deps = [ - "fbsource//third-party/googletest:gmock", - "//fizz/server:resumption_state", - "//quic:constants", - "//quic/api/test:mocks", - "//quic/common:optional", - "//quic/fizz/server/handshake:fizz_server_handshake", - "//quic/fizz/server/handshake:handshake_app_token", - "//quic/server/handshake:default_app_token_validator", - "//quic/server/state:server", - "//quic/state/test:mocks", - ], -) - -cpp_unittest( - name = "StatelessResetGeneratorTest", - srcs = [ - "StatelessResetGeneratorTest.cpp", - ], - deps = [ - "//folly:network_address", - "//folly:random", - "//folly/portability:gtest", - "//quic/server/handshake:stateless_reset_generator", - ], -) - -cpp_unittest( - name = "RetryTokenGeneratorTest", - srcs = [ - "RetryTokenGeneratorTest.cpp", - ], - deps = [ - "//folly:random", - "//folly/portability:gtest", - "//quic/server/handshake:token_generator", - ], -) diff --git a/quic/server/state/BUCK b/quic/server/state/BUCK deleted file mode 100644 index 820680df4..000000000 --- a/quic/server/state/BUCK +++ /dev/null @@ -1,61 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "server_connection_id_rejector", - headers = [ - "ServerConnectionIdRejector.h", - ], - exported_deps = [ - "//quic/codec:types", - ], -) - -mvfst_cpp_library( - name = "server", - srcs = [ - "ServerStateMachine.cpp", - ], - headers = [ - "ServerStateMachine.h", - ], - deps = [ - "//quic/api:transport", - "//quic/common:buf_util", - "//quic/congestion_control:pacer", - "//quic/fizz/handshake:fizz_handshake", - "//quic/fizz/server/handshake:handshake_app_token", - "//quic/handshake:transport_parameters", - "//quic/logging:qlogger_constants", - "//quic/server/handshake:token_generator", - "//quic/state:datagram_handler", - "//quic/state:pacing_functions", - "//quic/state:stats_callback", - "//quic/state/stream:stream", - ], - exported_deps = [ - ":server_connection_id_rejector", - "//folly:exception_wrapper", - "//folly:network_address", - "//folly:overload", - "//folly:random", - "//folly/io/async:async_socket_exception", - "//quic:exception", - "//quic/codec:types", - "//quic/common:network_data", - "//quic/congestion_control:congestion_controller_factory", - "//quic/congestion_control:cubic", - "//quic/flowcontrol:flow_control", - "//quic/loss:loss", - "//quic/server/handshake:server_handshake", - "//quic/state:ack_handler", - "//quic/state:quic_state_machine", - "//quic/state:simple_frame_functions", - "//quic/state:state_functions", - "//quic/state:stream_functions", - ], - exported_external_deps = [ - "glog", - ], -) diff --git a/quic/server/test/BUCK b/quic/server/test/BUCK deleted file mode 100644 index 235116d66..000000000 --- a/quic/server/test/BUCK +++ /dev/null @@ -1,146 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "mocks", - headers = [ - "Mocks.h", - ], - exported_deps = [ - "//folly/portability:gmock", - "//quic/common/udpsocket:folly_async_udp_socket", - "//quic/server:server", - "//quic/server/state:server_connection_id_rejector", - ], -) - -cpp_unittest( - name = "QuicServerTest", - srcs = [ - "QuicServerTest.cpp", - "QuicSocketTest.cpp", - ], - deps = [ - ":mocks", - "//folly/futures:core", - "//folly/io:iobuf", - "//folly/io/async:async_base", - "//folly/io/async/test:mocks", - "//folly/portability:gmock", - "//folly/portability:gtest", - "//quic/api:transport", - "//quic/api/test:mocks", - "//quic/client:client", - "//quic/codec:header_codec", - "//quic/codec:types", - "//quic/codec/test:mocks", - "//quic/common/events:folly_eventbase", - "//quic/common/test:test_client_utils", - "//quic/common/test:test_utils", - "//quic/common/udpsocket:folly_async_udp_socket", - "//quic/congestion_control:server_congestion_controller_factory", - "//quic/fizz/client/handshake:fizz_client_handshake", - "//quic/fizz/handshake:fizz_handshake", - "//quic/samples/echo:echo_handler", - "//quic/server:accept_observer", - "//quic/server:rate_limiter", - "//quic/server:server", - "//quic/server/handshake:stateless_reset_generator", - "//quic/server/handshake:token_generator", - "//quic/state/test:mocks", - ], -) - -mvfst_cpp_library( - name = "quic_server_transport_test_util", - headers = [ - "QuicServerTransportTestUtil.h", - ], - exported_deps = [ - "fbsource//third-party/googletest:gmock", - "fbsource//third-party/googletest:gtest", - ":mocks", - "//quic/api:transport", - "//quic/api/test:mocks", - "//quic/codec:types", - "//quic/common:transport_knobs", - "//quic/common/events:folly_eventbase", - "//quic/common/test:test_utils", - "//quic/common/testutil:mock_async_udp_socket", - "//quic/common/udpsocket:folly_async_udp_socket", - "//quic/congestion_control:server_congestion_controller_factory", - "//quic/fizz/server/handshake:fizz_server_handshake", - "//quic/server:server", - "//quic/state/test:mocks", - ], -) - -cpp_unittest( - name = "QuicServerTransportTest", - srcs = [ - "QuicServerTransportTest.cpp", - ], - supports_static_listing = False, - deps = [ - ":quic_server_transport_test_util", - "//quic/codec:pktbuilder", - "//quic/common:transport_knobs", - "//quic/dsr:types", - "//quic/dsr/test:mocks", - "//quic/fizz/handshake:fizz_handshake", - "//quic/fizz/server/handshake:fizz_server_handshake", - "//quic/logging:file_qlogger", - "//quic/server/handshake:server_handshake", - "//quic/state:stream_functions", - "//quic/state/test:mocks", - ], -) - -cpp_unittest( - name = "ServerStateMachineTest", - srcs = [ - "ServerStateMachineTest.cpp", - ], - supports_static_listing = False, - deps = [ - ":mocks", - "//folly/portability:gmock", - "//folly/portability:gtest", - "//quic/codec:types", - "//quic/codec/test:mocks", - "//quic/common/test:test_utils", - "//quic/fizz/server/handshake:fizz_server_handshake", - "//quic/server/state:server", - "//quic/state/test:mocks", - ], -) - -cpp_unittest( - name = "SlidingWindowRateLimiterTest", - srcs = [ - "SlidingWindowRateLimiterTest.cpp", - ], - deps = [ - "//quic/server:rate_limiter", - ], -) - -cpp_unittest( - name = "QuicClientServerIntegrationTest", - srcs = [ - "QuicClientServerIntegrationTest.cpp", - ], - deps = [ - "//folly/portability:gmock", - "//folly/portability:gtest", - "//quic/api/test:mocks", - "//quic/client:client", - "//quic/common/events:folly_eventbase", - "//quic/common/test:test_client_utils", - "//quic/common/test:test_utils", - "//quic/fizz/client/handshake:fizz_client_handshake", - "//quic/server:server", - ], -) diff --git a/quic/server/third-party/BUCK b/quic/server/third-party/BUCK deleted file mode 100644 index fbede25ae..000000000 --- a/quic/server/third-party/BUCK +++ /dev/null @@ -1,8 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "siphash", - headers = ["siphash.h"], -) diff --git a/quic/state/BUCK b/quic/state/BUCK deleted file mode 100644 index 332e27081..000000000 --- a/quic/state/BUCK +++ /dev/null @@ -1,346 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "outstanding_packet", - headers = [ - "OutstandingPacket.h", - ], - exported_deps = [ - ":cloned_packet_identifier", - ":loss_state", - "//folly/io:socket_option_map", - "//quic/codec:types", - ], -) - -mvfst_cpp_library( - name = "loss_state", - headers = [ - "LossState.h", - ], - exported_deps = [ - "//quic/codec:types", - "//quic/common:enum_array", - ], -) - -mvfst_cpp_library( - name = "transport_settings", - headers = [ - "TransportSettings.h", - ], - exported_deps = [ - ":quic_priority_queue", - "//quic:constants", - "//quic/common:optional", - ], -) - -mvfst_cpp_library( - name = "ack_states", - headers = [ - "AckStates.h", - ], - exported_deps = [ - "//folly:random", - "//quic:constants", - "//quic/codec:types", - "//quic/common:interval_set", - ], -) - -mvfst_cpp_library( - name = "cloned_packet_identifier", - srcs = [ - "ClonedPacketIdentifier.cpp", - ], - headers = [ - "ClonedPacketIdentifier.h", - ], - deps = [ - "//folly/hash:hash", - ], - exported_deps = [ - "//quic/codec:types", - ], -) - -mvfst_cpp_library( - name = "quic_stream_utilities", - srcs = [ - "QuicStreamUtilities.cpp", - ], - headers = [ - "QuicStreamUtilities.h", - ], - exported_deps = [ - "//quic:constants", - "//quic/codec:types", - ], -) - -mvfst_cpp_library( - name = "quic_priority_queue", - srcs = ["QuicPriorityQueue.cpp"], - headers = ["QuicPriorityQueue.h"], - exported_deps = [ - "//folly/container:f14_hash", - "//quic/codec:types", - ], - exported_external_deps = [ - "glog", - ], -) - -mvfst_cpp_library( - name = "quic_state_machine", - srcs = [ - "PendingPathRateLimiter.cpp", - "QuicStreamManager.cpp", - "StateData.cpp", - ], - headers = [ - "PendingPathRateLimiter.h", - "QuicStreamManager.h", - "QuicStreamPrioritiesObserver.h", - "QuicStreamUtilities.h", - "StateData.h", - "StreamData.h", - ], - exported_deps = [ - ":ack_event", - ":ack_states", - ":cloned_packet_identifier", - ":loss_state", - ":outstanding_packet", - ":quic_connection_stats", - ":quic_priority_queue", - ":retransmission_policy", - ":stats_callback", - ":transport_settings", - "//folly/container:f14_hash", - "//folly/io:iobuf", - "//folly/io/async:delayed_destruction", - "//quic:constants", - "//quic/codec:codec", - "//quic/codec:types", - "//quic/common:buf_accessor", - "//quic/common:circular_deque", - "//quic/common:optional", - "//quic/common:small_collections", - "//quic/congestion_control:congestion_controller", - "//quic/congestion_control:packet_processor", - "//quic/congestion_control:throttling_signal_provider", - "//quic/dsr:dsr_packetization_request_sender", - "//quic/handshake:handshake", - "//quic/logging:qlogger", - "//quic/observer:socket_observer_types", - ], - external_deps = [ - "glog", - ], -) - -mvfst_cpp_library( - name = "ack_handler", - srcs = [ - "AckHandlers.cpp", - "AckedPacketIterator.cpp", - ], - headers = [ - "AckHandlers.h", - "AckedPacketIterator.h", - ], - deps = [ - ":state_functions", - ":stream_functions", - "//folly:map_util", - "//folly/tracing:static_tracepoint", - "//quic/loss:loss", - ], - exported_deps = [ - "fbcode//quic:constants", - "fbcode//quic/codec:types", - "fbcode//quic/common:optional", - "fbcode//quic/common:small_collections", - "fbcode//quic/congestion_control:congestion_controller", - "fbcode//quic/state:outstanding_packet", - "fbcode//quic/state:quic_state_machine", - ], -) - -mvfst_cpp_library( - name = "stream_functions", - srcs = [ - "QuicStreamFunctions.cpp", - ], - headers = [ - "QuicStreamFunctions.h", - ], - deps = [ - ":quic_stream_utilities", - "//folly/io:iobuf", - "//quic:exception", - "//quic/flowcontrol:flow_control", - ], - exported_deps = [ - ":quic_state_machine", - ], -) - -mvfst_cpp_library( - name = "state_functions", - srcs = [ - "QuicStateFunctions.cpp", - ], - headers = [ - "QuicStateFunctions.h", - ], - deps = [ - ":stream_functions", - "//quic/common:time_util", - ], - exported_deps = [ - ":quic_state_machine", - "//quic:constants", - "//quic/codec:pktbuilder", - "//quic/codec:types", - "//quic/common:network_data", - ], -) - -mvfst_cpp_library( - name = "stats_callback", - headers = [ - "QuicTransportStatsCallback.h", - ], - exported_deps = [ - "//folly/functional:invoke", - "//quic:constants", - "//quic:exception", - "//quic/common:optional", - ], -) - -mvfst_cpp_library( - name = "pacing_functions", - srcs = [ - "QuicPacingFunctions.cpp", - ], - headers = [ - "QuicPacingFunctions.h", - ], - exported_deps = [ - ":quic_state_machine", - ], -) - -mvfst_cpp_library( - name = "simple_frame_functions", - srcs = [ - "SimpleFrameFunctions.cpp", - ], - headers = [ - "SimpleFrameFunctions.h", - ], - deps = [ - ":state_functions", - ":stream_functions", - "//quic:constants", - "//quic/state/stream:stream", - ], - exported_deps = [ - ":quic_state_machine", - "//quic/codec:types", - ], -) - -mvfst_cpp_library( - name = "quic_connection_stats", - srcs = [ - ], - headers = [ - "QuicConnectionStats.h", - ], - exported_deps = [ - "//folly:network_address", - "//quic:constants", - "//quic/congestion_control:congestion_controller", - ], -) - -mvfst_cpp_library( - name = "datagram_handler", - srcs = [ - "DatagramHandlers.cpp", - ], - headers = [ - "DatagramHandlers.h", - ], - exported_deps = [ - ":quic_state_machine", - "//quic/codec:types", - ], -) - -mvfst_cpp_library( - name = "ack_event", - srcs = [ - "AckEvent.cpp", - ], - headers = [ - "AckEvent.h", - ], - deps = [ - "//folly:map_util", - ], - exported_deps = [ - ":outstanding_packet", - "//quic/codec:types", - "//quic/common:optional", - "//quic/common:small_collections", - "//quic/congestion_control:congestion_controller", - ], -) - -mvfst_cpp_library( - name = "ack_frequency_functions", - srcs = [ - "QuicAckFrequencyFunctions.cpp", - ], - headers = [ - "QuicAckFrequencyFunctions.h", - ], - deps = [ - "//quic/common:time_util", - ], - exported_deps = [ - "//quic/state:quic_state_machine", - ], -) - -mvfst_cpp_library( - name = "retransmission_policy", - headers = [ - "QuicStreamGroupRetransmissionPolicy.h", - ], - exported_deps = [ - "//quic:constants", - ], -) - -mvfst_cpp_library( - name = "transport_settings_functions", - srcs = [ - "TransportSettingsFunctions.cpp", - ], - headers = [ - "TransportSettingsFunctions.h", - ], - exported_deps = [ - ":transport_settings", - "//folly/json:dynamic", - ], -) diff --git a/quic/state/stream/BUCK b/quic/state/stream/BUCK deleted file mode 100644 index 794134c81..000000000 --- a/quic/state/stream/BUCK +++ /dev/null @@ -1,25 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "stream", - srcs = [ - "StreamReceiveHandlers.cpp", - "StreamSendHandlers.cpp", - "StreamStateFunctions.cpp", - ], - headers = [ - "StreamReceiveHandlers.h", - "StreamSendHandlers.h", - "StreamStateFunctions.h", - ], - deps = [ - "//quic/flowcontrol:flow_control", - ], - exported_deps = [ - "//quic/state:quic_state_machine", - "//quic/state:quic_stream_utilities", - "//quic/state:stream_functions", - ], -) diff --git a/quic/state/stream/test/BUCK b/quic/state/stream/test/BUCK deleted file mode 100644 index cce9bf563..000000000 --- a/quic/state/stream/test/BUCK +++ /dev/null @@ -1,37 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("traffic_protocols") - -cpp_unittest( - name = "StreamStateMachineTest", - srcs = [ - "StreamStateMachineTest.cpp", - ], - deps = [ - "fbsource//third-party/googletest:gmock", - "//quic/api:transport", - "//quic/codec:types", - "//quic/common/events:folly_eventbase", - "//quic/common/test:test_utils", - "//quic/fizz/server/handshake:fizz_server_handshake", - "//quic/state:stream_functions", - "//quic/state/stream:stream", - ], -) - -cpp_unittest( - name = "StreamStateFunctionsTest", - srcs = [ - "StreamStateFunctionsTest.cpp", - ], - deps = [ - "//quic/common/test:test_utils", - "//quic/dsr:types", - "//quic/dsr/test:mocks", - "//quic/fizz/server/handshake:fizz_server_handshake", - "//quic/logging:file_qlogger", - "//quic/server/state:server", - "//quic/state:stream_functions", - "//quic/state/stream:stream", - ], -) diff --git a/quic/state/test/BUCK b/quic/state/test/BUCK deleted file mode 100644 index a8b675bb6..000000000 --- a/quic/state/test/BUCK +++ /dev/null @@ -1,211 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") -load("@fbcode_macros//build_defs:cpp_benchmark.bzl", "cpp_benchmark") -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "mocks", - headers = [ - "MockQuicStats.h", - "Mocks.h", - ], - exported_deps = [ - "//folly/portability:gmock", - "//quic:constants", - "//quic:exception", - "//quic/congestion_control:congestion_controller_factory", - "//quic/state:quic_state_machine", - "//quic/state:stats_callback", - ], -) - -cpp_unittest( - name = "acked_packet_iterator_test", - srcs = [ - "AckedPacketIteratorTest.cpp", - ], - deps = [ - "fbcode//quic/common/test:test_utils", - "fbcode//quic/state:ack_handler", - "fbsource//third-party/googletest:gmock", - ], -) - -cpp_unittest( - name = "QuicStateMachineTest", - srcs = [ - "StateDataTest.cpp", - ], - deps = [ - "fbsource//third-party/googletest:gmock", - ":mocks", - "//quic/common/test:test_utils", - "//quic/state:loss_state", - "//quic/state:quic_state_machine", - ], -) - -cpp_unittest( - name = "QuicStreamFunctionsTest", - srcs = [ - "QuicStreamFunctionsTest.cpp", - ], - supports_static_listing = False, - deps = [ - "fbsource//third-party/googletest:gmock", - "//quic/client:state_and_handshake", - "//quic/common/test:test_utils", - "//quic/fizz/client/handshake:fizz_client_handshake", - "//quic/fizz/server/handshake:fizz_server_handshake", - "//quic/server/state:server", - "//quic/state:quic_stream_utilities", - "//quic/state:stream_functions", - ], -) - -cpp_unittest( - name = "AckHandlersTest", - srcs = [ - "AckHandlersTest.cpp", - ], - supports_static_listing = False, - deps = [ - "fbsource//third-party/googletest:gmock", - ":ack_event_test_util", - ":mocks", - "//quic:constants", - "//quic/api/test:mocks", - "//quic/common/test:test_utils", - "//quic/fizz/server/handshake:fizz_server_handshake", - "//quic/logging/test:mocks", - "//quic/server/state:server", - "//quic/state:ack_handler", - "//quic/state:outstanding_packet", - "//quic/state:quic_state_machine", - "//quic/state/stream:stream", - ], -) - -cpp_unittest( - name = "QuicStateFunctionsTest", - srcs = [ - "QuicStateFunctionsTest.cpp", - ], - supports_static_listing = False, - deps = [ - "fbsource//third-party/googletest:gmock", - ":mocks", - "//quic/codec:types", - "//quic/common/test:test_utils", - "//quic/fizz/server/handshake:fizz_server_handshake", - "//quic/server/state:server", - "//quic/state:outstanding_packet", - "//quic/state:state_functions", - "//quic/state/stream:stream", - ], -) - -cpp_unittest( - name = "QuicPacingFunctionsTest", - srcs = [ - "QuicPacingFunctionsTest.cpp", - ], - deps = [ - "//folly/portability:gtest", - "//quic/state:pacing_functions", - ], -) - -cpp_unittest( - name = "TransportSettingsFunctionsTest", - srcs = [ - "TransportSettingsFunctionsTest.cpp", - ], - deps = [ - "//folly/portability:gtest", - "//quic/state:transport_settings_functions", - ], -) - -cpp_unittest( - name = "QuicStreamManagerTest", - srcs = [ - "QuicPriorityQueueTest.cpp", - "QuicStreamManagerTest.cpp", - ], - supports_static_listing = False, - deps = [ - "fbsource//third-party/googletest:gmock", - ":mocks", - "//quic/fizz/server/handshake:fizz_server_handshake", - "//quic/server/state:server", - "//quic/state:quic_priority_queue", - "//quic/state:quic_state_machine", - "//quic/state:quic_stream_utilities", - ], -) - -cpp_unittest( - name = "ClonedPacketIdentifierTest", - srcs = [ - "ClonedPacketIdentifierTest.cpp", - ], - deps = [ - "//folly/portability:gtest", - "//quic/state:cloned_packet_identifier", - ], -) - -cpp_unittest( - name = "OutstandingPacketTest", - srcs = [ - "OutstandingPacketTest.cpp", - ], - deps = [ - "fbsource//third-party/googletest:gmock", - ":mocks", - "//quic:constants", - "//quic/api/test:mocks", - "//quic/common/test:test_utils", - "//quic/logging/test:mocks", - "//quic/state:outstanding_packet", - "//quic/state/stream:stream", - ], -) - -mvfst_cpp_library( - name = "ack_event_test_util", - srcs = [ - "AckEventTestUtil.cpp", - ], - headers = [ - "AckEventTestUtil.h", - ], - exported_deps = [ - "fbsource//third-party/googletest:gmock", - "fbsource//third-party/googletest:gtest", - "//quic/state:ack_event", - ], -) - -cpp_benchmark( - name = "quic_priority_queue_benchmark", - srcs = ["QuicPriorityQueueBenchmark.cpp"], - deps = [ - "//common/init:init", - "//folly:benchmark", - "//quic/state:quic_priority_queue", - ], -) - -cpp_unittest( - name = "stream_data_test", - srcs = [ - "StreamDataTest.cpp", - ], - deps = [ - "fbsource//third-party/googletest:gmock", - "//quic/state:quic_state_machine", - ], -) diff --git a/quic/tools/tperf/BUCK b/quic/tools/tperf/BUCK deleted file mode 100644 index 008096d52..000000000 --- a/quic/tools/tperf/BUCK +++ /dev/null @@ -1,83 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") -load("@fbcode_macros//build_defs:cpp_binary.bzl", "cpp_binary") - -oncall("traffic_protocols") - -cpp_binary( - name = "tperf", - srcs = [ - "tperf.cpp", - ], - deps = [ - ":pacing_observer", - ":tperf_dsr_sender", - ":tperf_qlogger", - "//fizz/crypto:utils", - "//folly:memcpy-use", # @manual - "//folly/init:init", - "//folly/io/async:async_base", - "//folly/portability:gflags", - "//folly/stats:histogram", - "//quic:constants", - "//quic/client:client", - "//quic/common/events:folly_eventbase", - "//quic/common/test:test_client_utils", - "//quic/common/test:test_utils", - "//quic/common/udpsocket:folly_async_udp_socket", - "//quic/congestion_control:server_congestion_controller_factory", - "//quic/fizz/client/handshake:fizz_client_handshake", - "//quic/server:accept_observer", - "//quic/server:server", - ], - external_deps = [ - "glog", - ], -) - -mvfst_cpp_library( - name = "tperf_dsr_sender", - srcs = [ - "TperfDSRSender.cpp", - ], - headers = [ - "TperfDSRSender.h", - ], - deps = [ - "//quic/dsr/backend/test:test_utils", - ], - exported_deps = [ - "//folly:network_address", - "//quic/common/udpsocket:quic_async_udp_socket", - "//quic/dsr:dsr_packetization_request_sender", - "//quic/dsr:types", - "//quic/dsr/backend:dsr_packetizer", - "//quic/server:server", - ], -) - -mvfst_cpp_library( - name = "tperf_qlogger", - srcs = [ - "TperfQLogger.cpp", - ], - headers = [ - "TperfQLogger.h", - ], - exported_deps = [ - ":pacing_observer", - "//quic/logging:file_qlogger", - ], -) - -mvfst_cpp_library( - name = "pacing_observer", - headers = [ - "PacingObserver.h", - ], - exported_deps = [ - "//quic:constants", - "//quic/congestion_control:bandwidth", - "//quic/logging:qlogger", - "//quic/state:quic_state_machine", - ], -) diff --git a/quic/tools/tperf/test/BUCK b/quic/tools/tperf/test/BUCK deleted file mode 100644 index b4aef448e..000000000 --- a/quic/tools/tperf/test/BUCK +++ /dev/null @@ -1,15 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("traffic_protocols") - -cpp_unittest( - name = "PacingObserverTest", - srcs = [ - "PacingObserverTest.cpp", - ], - deps = [ - "//quic/common/test:test_utils", - "//quic/logging/test:mocks", - "//quic/tools/tperf:pacing_observer", - ], -) diff --git a/quic/xsk/BUCK b/quic/xsk/BUCK deleted file mode 100644 index 85deae011..000000000 --- a/quic/xsk/BUCK +++ /dev/null @@ -1,65 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("traffic_protocols") - -cpp_library( - name = "xsk_lib", - srcs = [ - "packet_utils.cpp", - "xsk_lib.cpp", - ], - headers = [ - "packet_utils.h", - "xsk_lib.h", - ], - deps = [ - "//folly:benchmark", - ], - exported_deps = [ - "//folly:network_address", - ], - external_deps = [ - ("glibc", None, "rt"), - ], -) - -cpp_library( - name = "xsk_container", - srcs = [ - "BaseXskContainer.cpp", - "HashingXskContainer.cpp", - "ThreadLocalXskContainer.cpp", - ], - headers = [ - "BaseXskContainer.h", - "HashingXskContainer.h", - "ThreadLocalXskContainer.h", - ], - deps = [ - ], - exported_deps = [ - ":xsk_sender", - "//folly:thread_local", - "//folly/container:f14_hash", - ], -) - -cpp_library( - name = "xsk_sender", - srcs = ["XskSender.cpp"], - headers = [ - "XskSender.h", - ], - deps = [ - "//folly:benchmark", - "//folly:string", - ], - exported_deps = [ - ":xsk_lib", - "//folly:expected", - "//folly:network_address", - "//folly/container:f14_hash", - "//folly/io:iobuf", - "//quic/common:optional", - ], -)