diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-11-29 16:08:31 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-11-29 16:46:39 +0900 |
| commit | de3fc7ba381988c06fdbb0be8446b8e8d2e75af4 (patch) | |
| tree | 10a00dee1a050b59b45ed8c8a875855fb471d169 /internal/pipewire/securitycontext_test.go | |
| parent | 5a5c4705dd47c7e27f49526b4ccf0d4c7c1bab5a (diff) | |
internal/pipewire: implement SecurityContext::Create
This is finally the thing we are after.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pipewire/securitycontext_test.go')
| -rw-r--r-- | internal/pipewire/securitycontext_test.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/internal/pipewire/securitycontext_test.go b/internal/pipewire/securitycontext_test.go new file mode 100644 index 00000000..397107ba --- /dev/null +++ b/internal/pipewire/securitycontext_test.go @@ -0,0 +1,21 @@ +package pipewire_test + +import ( + "testing" + + "hakurei.app/internal/pipewire" +) + +func TestSecurityContextCreate(t *testing.T) { + t.Parallel() + + encodingTestCases[pipewire.SecurityContextCreate, *pipewire.SecurityContextCreate]{ + {"sample", samplePWContainer[6][0][1], pipewire.SecurityContextCreate{ + ListenFd: 1 /* 21: duplicated from listen_fd */, CloseFd: 0, /* 20: duplicated from close_fd */ + Properties: &pipewire.SPADict{ + {Key: "pipewire.sec.engine", Value: "org.flatpak"}, + {Key: "pipewire.access", Value: "restricted"}, + }, + }, nil}, + }.run(t) +} |
