tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Z\¬Qc@sddlZddlTddlZddlZeejƒZy
eZWne    k
r`e
ZnXde fd„ƒYZ dej fd„ƒYZdefd„ƒYZd    efd
„ƒYZd efd „ƒYZd efd„ƒYZedkrejƒndS(iÿÿÿÿN(t*tPOINTcBs eZdefdefgZRS(txty(t__name__t
__module__tc_intt_fields_(((se/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_as_parameter.pyRstBasicWrapTestCasecBsžeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
e j e jd    koe jjd
ƒd kd ƒd „ƒZd„ZRS(cCs|S(N((tselftparam((se/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_as_parameter.pytwrapscCs¼ytWntk
rdSXtj}ttttttg|_    ||j
dƒ|j
dƒ|j
dƒ|j
dƒ|j
dƒ|j
dƒƒ}|j |dƒ|j t |ƒtƒdS(Niuxiig@g@i‹(tc_wchart    NameErrortdllt_testfunc_i_bhilfdtc_byteRtc_longtc_floattc_doubletargtypesR t assertEqualt
assertTruettypetint(R    tftresult((se/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_as_parameter.pyttest_wchar_parms     QcCstj}ttƒ|_ttƒg|_tdƒ}|jt|ƒjj    dƒ||j
t|ƒƒƒ}|jt |ƒttƒƒ|j|jj    dƒ||j
t|ƒƒƒ}|j|jj    |j    ƒttdƒƒ}||j
|ƒƒ}|j|jj    dƒdS(Ni*ic( Rt _testfunc_p_ptPOINTERRtrestypeRRtpointertcontentstvalueR R(R    RtvRtp((se/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_as_parameter.pyt test_pointers s     cs«tj}g‰ddddddddd    d
d d d ddddddg}‡fd†}tttƒ}||ƒ}||jdƒ|j|ƒƒ|jˆ|ƒdS(Niiii€i@i iiiiii€i@i iiiiicsˆj|ƒ|S(N(tappend(R"(targs(se/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_as_parameter.pytcallback?s ii(Rt_testfunc_callback_i_ift    CFUNCTYPERR R(R    RtexpectedR'tCallBacktcb((R&se/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_as_parameter.pyt test_shorts8s    ' cCs=tj}t|_d|_tttƒ}d„}||ƒ}||jdƒ|j|ƒƒ}|j|dƒt|g|_||ƒ}||jdƒ|j|ƒƒ}|j|dƒ||jdƒ|j|ƒƒ}|j|dƒt    tttttƒ}||ƒ}|j
t ||jdƒ|j|ƒƒdS(NcSs|S(N((R!((se/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_as_parameter.pyR'Rsiöÿÿÿiîÿÿÿ( RR(RRtNoneRR)R RtCALLBACK_FUNCTYPEt assertRaisest ArgumentError(R    Rt
MyCallbackR'R,RtAnotherCallback((se/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_as_parameter.pyttest_callbacksKs"                 ! !! cs€tj}t|_tttƒ}t|g|_‡fd†}||ƒ}|ˆjdƒˆj|ƒƒ}ˆj|dƒdS(Ncsˆjt|ƒtƒ|S(N(RRR(R!(R    (se/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_as_parameter.pyR'wsiöÿÿÿiîÿÿÿ(RR(RRR)RR R(R    RR2R'R,R((R    se/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_as_parameter.pyttest_callbacks_2ls         !cs€tj}t|_tttƒ}t|g|_‡fd†}||ƒ}ˆjdt|ˆjdƒˆj|ƒƒƒƒdS(Ncs$ˆjt|ttfƒƒ|d@S(Niÿÿÿ(Rt
isinstanceRtlong(R!(R    (se/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_as_parameter.pyR'‰sIóJ)I¥Ôè(    Rt_testfunc_callback_q_qft
c_longlongRR)RRRR (R    RR2R'R,((R    se/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_as_parameter.pyttest_longlong_callbacks€s         cCsçtddƒ}tƒ}tj|t|ƒƒ}||j|jf}d}|j||ƒtddƒ}tƒ}tttƒftj_t    tj_
tj|j |ƒt|ƒƒ}||j|jf}d}|j||ƒdS(    NiiiieifiË(iii(iËieif( RRt_testfunc_byvaltbyrefRRRRRRRR (R    tptintptoutRtgotR*((se/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_as_parameter.pyt
test_byval‘s         !cCs~dtfd„ƒY}|tj_|gtj_|ddƒ}tj|j|ƒƒ}|j|j|jfddfƒdS(    NtS2HcBs eZdefdefgZRS(RR(RRtc_shortR(((se/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_as_parameter.pyRA¦s    iciXiiiÆi(    t    StructureRt ret_2h_funcRRR RRR(R    RAtinpts2h((se/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_as_parameter.pyttest_struct_return_2H¥s  twin32tGCCisXFAIL GCC(mingw)c CsÆdtfd„ƒY}|tj_|gtj_|ddddddd    d
ƒ}tj|j|ƒƒ}|j|j|j|j    |j
|j |j |j |jfd d d dddddfƒdS(NtS8Ic    BsVeZdefdefdefdefdefdefdefdefgZRS(tatbtctdteRtgth(RRRR(((se/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_as_parameter.pyRJ´s                            i    iiiiiiiiiiiiiii(RCRt ret_8i_funcRRR RRKRLRMRNRORRPRQ(R    RJREts8i((se/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_as_parameter.pyttest_struct_return_8H²s     !9cCs_ddlm}dtfd„ƒY}|ƒ}||_|jtƒ|j|ƒWdQXdS(Niÿÿÿÿ(RtAcBseZRS((RR(((se/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_as_parameter.pyRUÇs(tctypesRtobjectt_as_parameter_R0t RuntimeErrort
from_param(R    RRURK((se/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_as_parameter.pyttest_recursive_as_paramÄs         (RRR RR$R-R4R5R:R@RGtunittesttskipIftsystplatformtversiontfindRTR[(((se/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_as_parameter.pyRs                    !                 <tAsParamWrappercBseZd„ZRS(cCs ||_dS(N(RX(R    R
((se/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_as_parameter.pyt__init__Ós(RRRc(((se/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_as_parameter.pyRbÒstAsParamWrapperTestCasecBseZeZRS((RRRbR (((se/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_as_parameter.pyRdÖstAsParamPropertyWrappercBs&eZd„Zd„ZeeƒZRS(cCs ||_dS(N(t_param(R    R
((se/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_as_parameter.pyRcÜscCs|jS(N(Rf(R    ((se/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_as_parameter.pyt getParameterßs(RRRcRgtpropertyRX(((se/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_as_parameter.pyReÛs        tAsParamPropertyWrapperTestCasecBseZeZRS((RRReR (((se/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_as_parameter.pyRiãst__main__(R\RVt _ctypes_testR^tCDLLt__file__Rt WINFUNCTYPER/R R)RCRtTestCaseRRWRbRdReRiRtmain(((se/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_as_parameter.pyt<module>s  
 
 
Á