diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-11-28 00:34:32 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-11-28 00:35:10 +0900 |
| commit | 72a2601d7461c0e2e24a3f97f19392dc30ee4c68 (patch) | |
| tree | 6785b8956b8259f0cf402bb69830c986896d79e2 /internal/pipewire/client_test.go | |
| parent | 1dab87aaf07ad43c145f28fecfb73c7d801d3344 (diff) | |
internal/pipewire: store sample iovec continuously
This removes the need for manual splitting. The understanding of the format is robust enough to allow this to happen anyway.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pipewire/client_test.go')
| -rw-r--r-- | internal/pipewire/client_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/pipewire/client_test.go b/internal/pipewire/client_test.go index 3eb89623..5ba2ff9c 100644 --- a/internal/pipewire/client_test.go +++ b/internal/pipewire/client_test.go @@ -10,7 +10,7 @@ func TestClientInfo(t *testing.T) { t.Parallel() encodingTestCases[pipewire.ClientInfo, *pipewire.ClientInfo]{ - {"sample", []byte(c1r2pod), pipewire.ClientInfo{ + {"sample", samplePWContainer[1][2][1], pipewire.ClientInfo{ ID: 34, ChangeMask: pipewire.PW_CLIENT_CHANGE_MASK_PROPS, Props: &pipewire.SPADict{NItems: 9, Items: []pipewire.SPADictItem{ @@ -25,7 +25,7 @@ func TestClientInfo(t *testing.T) { {Key: "object.serial", Value: "34"}, }}}, nil}, - {"sample*", []byte(c1r3pod), pipewire.ClientInfo{ + {"sample*", samplePWContainer[1][3][1], pipewire.ClientInfo{ ID: 34, ChangeMask: pipewire.PW_CLIENT_CHANGE_MASK_PROPS, Props: &pipewire.SPADict{NItems: 38, Items: []pipewire.SPADictItem{ @@ -69,7 +69,7 @@ func TestClientInfo(t *testing.T) { {Key: "core.version", Value: "1.4.7"}, }}}, nil}, - {"sample**", []byte(c1r4pod), pipewire.ClientInfo{ + {"sample**", samplePWContainer[1][4][1], pipewire.ClientInfo{ ID: 34, ChangeMask: pipewire.PW_CLIENT_CHANGE_MASK_PROPS, Props: &pipewire.SPADict{NItems: 39, Items: []pipewire.SPADictItem{ @@ -120,7 +120,7 @@ func TestClientUpdateProperties(t *testing.T) { t.Parallel() encodingTestCases[pipewire.ClientUpdateProperties, *pipewire.ClientUpdateProperties]{ - {"sample", []byte(c0s1pod), pipewire.ClientUpdateProperties{Props: &pipewire.SPADict{NItems: 0x1e, Items: []pipewire.SPADictItem{ + {"sample", samplePWContainer[0][1][1], pipewire.ClientUpdateProperties{Props: &pipewire.SPADict{NItems: 0x1e, Items: []pipewire.SPADictItem{ {Key: "remote.intention", Value: "manager"}, {Key: "application.name", Value: "pw-container"}, {Key: "application.process.binary", Value: "pw-container"}, |
