internal/pipewire: do not store spa_dict fields
All checks were successful
Test / Create distribution (push) Successful in 37s
Test / Sandbox (push) Successful in 2m29s
Test / Hakurei (push) Successful in 3m21s
Test / Hpkg (push) Successful in 4m12s
Test / Sandbox (race detector) (push) Successful in 4m24s
Test / Hakurei (race detector) (push) Successful in 5m15s
Test / Flake checks (push) Successful in 1m30s
All checks were successful
Test / Create distribution (push) Successful in 37s
Test / Sandbox (push) Successful in 2m29s
Test / Hakurei (push) Successful in 3m21s
Test / Hpkg (push) Successful in 4m12s
Test / Sandbox (race detector) (push) Successful in 4m24s
Test / Hakurei (race detector) (push) Successful in 5m15s
Test / Flake checks (push) Successful in 1m30s
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>
This commit is contained in:
@@ -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{NItems: 9, Items: []pipewire.SPADictItem{
|
||||
Props: &pipewire.SPADict{
|
||||
{Key: "pipewire.protocol", Value: "protocol-native"},
|
||||
{Key: "core.name", Value: "pipewire-0"},
|
||||
{Key: "pipewire.sec.socket", Value: "pipewire-0-manager"},
|
||||
@@ -23,12 +23,12 @@ func TestClientInfo(t *testing.T) {
|
||||
{Key: "module.id", Value: "2"},
|
||||
{Key: "object.id", Value: "34"},
|
||||
{Key: "object.serial", Value: "34"},
|
||||
}}}, nil},
|
||||
}}, nil},
|
||||
|
||||
{"sample*", samplePWContainer[1][3][1], pipewire.ClientInfo{
|
||||
ID: 34,
|
||||
ChangeMask: pipewire.PW_CLIENT_CHANGE_MASK_PROPS,
|
||||
Props: &pipewire.SPADict{NItems: 38, Items: []pipewire.SPADictItem{
|
||||
Props: &pipewire.SPADict{
|
||||
{Key: "pipewire.protocol", Value: "protocol-native"},
|
||||
{Key: "core.name", Value: "pipewire-alice-1443"},
|
||||
{Key: "pipewire.sec.socket", Value: "pipewire-0-manager"},
|
||||
@@ -67,12 +67,12 @@ func TestClientInfo(t *testing.T) {
|
||||
{Key: "settings.check-quantum", Value: "false"},
|
||||
{Key: "settings.check-rate", Value: "false"},
|
||||
{Key: "core.version", Value: "1.4.7"},
|
||||
}}}, nil},
|
||||
}}, nil},
|
||||
|
||||
{"sample**", samplePWContainer[1][4][1], pipewire.ClientInfo{
|
||||
ID: 34,
|
||||
ChangeMask: pipewire.PW_CLIENT_CHANGE_MASK_PROPS,
|
||||
Props: &pipewire.SPADict{NItems: 39, Items: []pipewire.SPADictItem{
|
||||
Props: &pipewire.SPADict{
|
||||
{Key: "pipewire.protocol", Value: "protocol-native"},
|
||||
{Key: "core.name", Value: "pipewire-alice-1443"},
|
||||
{Key: "pipewire.sec.socket", Value: "pipewire-0-manager"},
|
||||
@@ -112,7 +112,7 @@ func TestClientInfo(t *testing.T) {
|
||||
{Key: "settings.check-rate", Value: "false"},
|
||||
{Key: "core.version", Value: "1.4.7"},
|
||||
{Key: "pipewire.access", Value: "unrestricted"},
|
||||
}}}, nil},
|
||||
}}, nil},
|
||||
}.run(t)
|
||||
}
|
||||
|
||||
@@ -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{NItems: 0x1e, Items: []pipewire.SPADictItem{
|
||||
{"sample", samplePWContainer[0][1][1], pipewire.ClientUpdateProperties{Props: &pipewire.SPADict{
|
||||
{Key: "remote.intention", Value: "manager"},
|
||||
{Key: "application.name", Value: "pw-container"},
|
||||
{Key: "application.process.binary", Value: "pw-container"},
|
||||
@@ -151,6 +151,6 @@ func TestClientUpdateProperties(t *testing.T) {
|
||||
{Key: "settings.check-rate", Value: "false"},
|
||||
{Key: "core.version", Value: "1.4.7"},
|
||||
{Key: "core.name", Value: "pipewire-alice-1443"},
|
||||
}}}, nil},
|
||||
}}, nil},
|
||||
}.run(t)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user