0
Fork 0
mirror of https://github.com/Droid-VM/crosvm.git synced 2026-11-17 06:58:03 +00:00
crosvm/base/tests
Daniel Verkamp 530325291b base: unix: make Tube wrap UnixSeqpacket directly
Rather than accepting a StreamChannel and then failing at runtime if
passed a byte-oriented stream rather than a message-oriented stream, we
can make the unix platform-specific Tube code accept a UnixSeqpacket
directly, moving the check to compile time.

Since Tube no longer wraps StreamChannel, we can also remove the unix
platform-specific peek_size() and from_unix_seqpacket() functions that
were only used by Tube.

BUG=None
TEST=tools/dev_container tools/presubmit

Change-Id: Idcb4b459ff408abee25436f9c5065507eb031c79
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/6068213
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Noah Gold <nkgold@google.com>
Reviewed-by: Frederick Mayle <fmayle@google.com>
History 2024-12-07 00:00:14 +00:00
..
linux base: unix: make Tube wrap UnixSeqpacket directly 2024-12-07 00:00:14 +00:00
syslog.rs Fix byte_char_slices clippy warnings 2024-09-17 19:49:53 +00:00
tube.rs clippy: enforce safety block comments 2023-12-14 18:21:54 +00:00