diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-11-28 01:25:18 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-11-28 01:25:18 +0900 |
| commit | d08a1081bd8131a2708f4cb934f060760371d114 (patch) | |
| tree | 257ba008d7e3587e35c1c1170025a6484bdc12d8 /internal/pipewire/core_test.go | |
| parent | 72a2601d7461c0e2e24a3f97f19392dc30ee4c68 (diff) | |
internal/pipewire: do not store spa_dict fields
This is effectively a poor man's slice, it is entirely unnecessary here and can be handled internally.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pipewire/core_test.go')
| -rw-r--r-- | internal/pipewire/core_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/pipewire/core_test.go b/internal/pipewire/core_test.go index 5b2f6c25..05f19ebd 100644 --- a/internal/pipewire/core_test.go +++ b/internal/pipewire/core_test.go @@ -34,7 +34,7 @@ func TestCoreInfo(t *testing.T) { Version: "1.4.7", Name: "pipewire-0", ChangeMask: pipewire.PW_CORE_CHANGE_MASK_PROPS, - Props: &pipewire.SPADict{NItems: 31, Items: []pipewire.SPADictItem{ + Props: &pipewire.SPADict{ {Key: "config.name", Value: "pipewire.conf"}, {Key: "application.name", Value: "pipewire"}, {Key: "application.process.binary", Value: "pipewire"}, @@ -66,7 +66,7 @@ func TestCoreInfo(t *testing.T) { {Key: "settings.check-rate", Value: "false"}, {Key: "object.id", Value: "0"}, {Key: "object.serial", Value: "0"}}, - }}, nil}, + }, nil}, }.run(t) } @@ -88,7 +88,7 @@ func TestCoreBoundProps(t *testing.T) { {"sample", samplePWContainer[1][1][1], pipewire.CoreBoundProps{ ID: pipewire.PW_ID_CLIENT, GlobalID: 34, - Props: &pipewire.SPADict{NItems: 7, Items: []pipewire.SPADictItem{ + Props: &pipewire.SPADict{ {Key: "object.serial", Value: "34"}, {Key: "module.id", Value: "2"}, {Key: "pipewire.protocol", Value: "protocol-native"}, @@ -96,7 +96,7 @@ func TestCoreBoundProps(t *testing.T) { {Key: "pipewire.sec.uid", Value: "1000"}, {Key: "pipewire.sec.gid", Value: "100"}, {Key: "pipewire.sec.socket", Value: "pipewire-0-manager"}}, - }}, nil}, + }, nil}, }.run(t) } |
