diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-11-28 01:33:32 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-11-28 01:33:32 +0900 |
| commit | cbe86dc4f02bc43d00fd362692a123549ad48efc (patch) | |
| tree | feefe80326a6e39318933950b8939ad5c36520a3 /internal/pipewire/client_test.go | |
| parent | d08a1081bd8131a2708f4cb934f060760371d114 (diff) | |
internal/pipewire: add json struct tags
These match the names found in documentation.
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 ffdffb2a..d3f80891 100644 --- a/internal/pipewire/client_test.go +++ b/internal/pipewire/client_test.go @@ -13,7 +13,7 @@ func TestClientInfo(t *testing.T) { {"sample", samplePWContainer[1][2][1], pipewire.ClientInfo{ ID: 34, ChangeMask: pipewire.PW_CLIENT_CHANGE_MASK_PROPS, - Props: &pipewire.SPADict{ + Properties: &pipewire.SPADict{ {Key: "pipewire.protocol", Value: "protocol-native"}, {Key: "core.name", Value: "pipewire-0"}, {Key: "pipewire.sec.socket", Value: "pipewire-0-manager"}, @@ -28,7 +28,7 @@ func TestClientInfo(t *testing.T) { {"sample*", samplePWContainer[1][3][1], pipewire.ClientInfo{ ID: 34, ChangeMask: pipewire.PW_CLIENT_CHANGE_MASK_PROPS, - Props: &pipewire.SPADict{ + Properties: &pipewire.SPADict{ {Key: "pipewire.protocol", Value: "protocol-native"}, {Key: "core.name", Value: "pipewire-alice-1443"}, {Key: "pipewire.sec.socket", Value: "pipewire-0-manager"}, @@ -72,7 +72,7 @@ func TestClientInfo(t *testing.T) { {"sample**", samplePWContainer[1][4][1], pipewire.ClientInfo{ ID: 34, ChangeMask: pipewire.PW_CLIENT_CHANGE_MASK_PROPS, - Props: &pipewire.SPADict{ + Properties: &pipewire.SPADict{ {Key: "pipewire.protocol", Value: "protocol-native"}, {Key: "core.name", Value: "pipewire-alice-1443"}, {Key: "pipewire.sec.socket", Value: "pipewire-0-manager"}, @@ -120,7 +120,7 @@ func TestClientUpdateProperties(t *testing.T) { t.Parallel() encodingTestCases[pipewire.ClientUpdateProperties, *pipewire.ClientUpdateProperties]{ - {"sample", samplePWContainer[0][1][1], pipewire.ClientUpdateProperties{Props: &pipewire.SPADict{ + {"sample", samplePWContainer[0][1][1], pipewire.ClientUpdateProperties{Properties: &pipewire.SPADict{ {Key: "remote.intention", Value: "manager"}, {Key: "application.name", Value: "pw-container"}, {Key: "application.process.binary", Value: "pw-container"}, |
