+
    WBi                        R t RtRt^ RIt^ RIt^ RIHt RtRtRt	Rt
R	 t]P                  P                  ]	R
RRR7      R 4       t]P                  P                  ]	RR7      R 4       t]P                  P                  ]RRR7      R 4       t]P                  P                  ]RRR7      R 4       t]P                  P                  ]RRR7      R 4       t]P                  P                  ]RRR7      R 4       t]P                  P                  ]RRR7      R 4       t]P                  P                  ]RRR7      R 4       t]P                  P                  ]RRR7      R 4       tR# )a  polkitd mock template

This creates the expected methods and properties of the main
org.freedesktop.PolicyKit1 object. By default, all actions are rejected.  You
can call AllowUnknown() and SetAllowed() on the mock D-Bus interface to control
which actions are allowed.
zMartin PittzM
(c) 2013-2021 Canonical Ltd.
(c) 2017 - 2022 Martin Pitt <martin@piware.de>
N)
MOCK_IFACEzorg.freedesktop.PolicyKit1z%/org/freedesktop/PolicyKit1/Authorityz$org.freedesktop.PolicyKit1.AuthorityTc                     V P                  \        \        P                  ! R RRRR\        P                  ! ^4      /RR7      4       RV n        . V n        ^ V n        RV n        . V n	        . V n
        R# )	BackendNamelocalBackendVersionz0.8.15BackendFeaturessv)	signatureFN)AddProperties
MAIN_IFACEdbus
DictionaryUInt32allow_unknownalloweddelaysimulate_hanghanging_actionshanging_calls)mock_parameterss   &&?/usr/lib/python3.14/site-packages/dbusmock/templates/polkitd.pyloadr   !   sp    w (!4;;q>
 	

 DDLDJDDD    z(sa{sv})sa{ss}usz	(bba{ss}))in_signatureout_signatureasync_callbacksc                 (   \         P                  ! V P                  4       W P                  9   ;'       g    V P                  pVR RR/3p	V P
                  '       g   W P                  9   d   V P                  P                  Wi34       R# V! V	4       R# )FtestN)	timesleepr   r   r   r   r   r   append)
self_subject	action_id_details_flags_cancellation_idok_cb_err_cbr   rets
   &&&&&&&&  r   CheckAuthorizationr+   7   ss     	JJtzz<<'==4+=+=GEFF+
,CY*>*>>!!5,/c
r   z
(sa{sv})ss)r   c                     R # )N )_selfr#   _locale_object_paths   &&&&r   RegisterAuthenticationAgentr1   E   s    r   b )r   r   c                    Wn         R# )zControl whether unknown actions are allowed

This controls the return value of CheckAuthorization for actions which were
not explicitly allowed by SetAllowed().
N)r   )r"   defaults   &&r   AllowUnknownr6   J   s
     !r   asc                    Wn         R# )zSet allowed actionsN)r   r"   actionss   &&r   
SetAllowedr;   T   s	     Lr   dc                    Wn         R# )z.Makes the CheckAuthorization() method to delayN)r   )r"   r   s   &&r   SetDelayr>   [   s	     Jr   c                    Wn         R# )z-Makes the CheckAuthorization() method to hangN)r   )r"   hangs   &&r   SimulateHangrA   a   s
     r   c                    Wn         R# )z=Makes the CheckAuthorization() method to hang on such actionsN)r   r9   s   &&r   SimulateHangActionsrC   g   s
     #r   c                N    V P                    F  w  rV! V4       K  	  . V n         R# )zCalls all the hanging callbacksN)r   )r"   cbr*   s   &  r   ReleaseHangingCallsrF   m   s%     %%
3 &Dr   c                ,    \        V P                  4      # )zCheck if we've hangling calls)lenr   )r"   s   &r   HaveHangingCallsrI   u   s     t!!""r   )r(   r)   )__doc__
__author____copyright__r   r   dbusmockr   BUS_NAMEMAIN_OBJr   
SYSTEM_BUSr   servicemethodr+   r1   r6   r;   r>   rA   rC   rF   rI   r-   r   r   <module>rS      s   

   '23

, /{\p   Zl;	 <	 ZcD! E! Zd"E F ZcD E
 ZcD E
 Zd"E# F#
 ZbC D ZbD# E#r   