From 5979d8b1e0fc4249fb73de9b0ba099bae7707214 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 16 Apr 2025 23:10:04 +0900 Subject: dbus: clean up wrapper implementation The dbus proxy wrapper haven't been updated much ever since the helper interface was introduced. Signed-off-by: Ophestra --- dbus/export_test.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'dbus/export_test.go') diff --git a/dbus/export_test.go b/dbus/export_test.go index d42fde51..574a4a73 100644 --- a/dbus/export_test.go +++ b/dbus/export_test.go @@ -1,13 +1,13 @@ package dbus -import "io" +import ( + "context" + "io" +) -// CompareTestNew provides TestNew with comparison access to unexported Proxy fields. -func (p *Proxy) CompareTestNew(session, system [2]string) bool { - return session == p.session && system == p.system -} - -// AccessTestProxySeal provides TestProxy_Seal with access to unexported Proxy seal field. -func (p *Proxy) AccessTestProxySeal() io.WriterTo { - return p.seal +// NewDirect returns a new instance of [Proxy] with its sandbox disabled. +func NewDirect(ctx context.Context, final *Final, output io.Writer) *Proxy { + p := New(ctx, final, output) + p.useSandbox = false + return p } -- cgit v1.3.1