Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Side by Side Diff: ppapi/native_client/tests/ppapi_simple_tests/ppapi_geturl_valid.stdin

Issue 7740013: Cloning a bunch of stuff from the native_client repository at r6528 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 # define a bunch of variables for readability
2
3 set_variable MODULE i(4444)
4 set_variable INSTANCE i(5555)
5
6 # Tags used by pepper/srpc to marshall js parameters
7 set_variable JS_STR 4:5
8 set_variable JS_INT 4:2
9
10 # NOTE: the strings below must not contain unescaped spaces or commas
11 set_variable ARG_loadUrl ${JS_STR},4:7,"loadUrl",1:0
12 set_variable ARG_ReportResult ${JS_STR},4:12,"ReportResult",4:0
13
14 set_variable ARG_URL ${JS_STR},4:25,"ppapi_geturl_success.html",7:0
15 set_variable ARG_URL_FULL ${JS_STR},4:47,"http://localhost:5103/ppapi_geturl_suc cess.html",1:0
16
17 set_variable ARG_GET ${JS_STR},4:3,"GET",5:0
18
19 set_variable ARG_SUCC ${JS_STR},4:12,"hello\x20world!",4:0
20 set_variable ARG_0 ${JS_INT},4:0
21 set_variable ARG_1 ${JS_INT},4:1
22
23 set_variable WINDOW R(24,8:6,8:0x9f,8:0x5f29)
24 # TODO(robertm) figure out what this represents, maybe PP_Var
25 set_variable EXCEPTION R(8,8:0)
26 set_variable NULL R(8,8:0)
27
28 echo
29 echo "*** INIT MODULE"
30 replay 99 PPB_GetInterface:s:i s("PPB_Core;1.0") * i(1)
31 replay 99 PPB_GetInterface:s:i s("PPB_Instance;1.0") * i(1)
32 replay 99 PPB_GetInterface:s:i s("PPB_Var;1.0") * i(1)
33 # the results contain a process id which is non-determinisitic
34 rpc PPP_InitializeModule hide-results i(0) ${MODULE} h(pepper_desc) s("${service _string}") * i(0) i(0)
35
36 echo
37 echo "*** TRIGGER REPAINT"
38 rpc PPP_Instance_DidChangeView ${INSTANCE} I(4,8,79,400,400) I(4,0,0,400,400) *
39 # leave time for flush of stdout
40
41 echo
42 echo "*** GET INSTANCE OBJECT"
43 rpc PPP_Instance_GetInstanceObject hide-results ${INSTANCE} * C(16)
44 # save result to variable and also register it as non-deterministic
45 set_variable OBJECT ${result0}
46 nondeterministic ${result0} @THE_OBJECT
47
48 ######################################################################
49 ## URL (buffer)
50 ######################################################################
51
52 echo
53 echo "*** CALL loadUrl(): as buffer"
54 replay 1 PPB_GetInterface:s:i s("PPB_URLRequestInfo;1.0") * i(1)
55 replay 1 PPB_GetInterface:s:i s("PPB_URLResponseInfo;1.0") * i(1)
56 replay 1 PPB_GetInterface:s:i s("PPB_URLLoader;1.0") * i(1)
57 replay 1 PPB_GetInterface:s:i s("PPB_FileIO;1.0") * i(1)
58
59 replay 1 PPB_FileIO_Create:i:i ${INSTANCE} * i(35)
60 replay 1 PPB_URLRequestInfo_Create:i:i ${INSTANCE} * i(30)
61 replay 1 PPB_URLLoader_Create:i:i ${INSTANCE} * i(34)
62
63 replay 1 PPB_FileIO_IsFileIO:i:i i(35) * i(1)
64 replay 1 PPB_URLRequestInfo_IsURLRequestInfo:i:i i(35) * i(0)
65 replay 1 PPB_URLResponseInfo_IsURLResponseInfo:i:i i(35) * i(0)
66 replay 1 PPB_URLLoader_IsURLLoader:i:i i(35) * i(0)
67
68 replay 1 PPB_URLRequestInfo_IsURLRequestInfo:i:i i(30) * i(1)
69 replay 1 PPB_URLResponseInfo_IsURLResponseInfo:i:i i(30) * i(0)
70 replay 1 PPB_URLLoader_IsURLLoader:i:i i(30) * i(0)
71 replay 1 PPB_FileIO_IsFileIO:i:i i(30) * i(0)
72
73 replay 1 PPB_URLRequestInfo_IsURLRequestInfo:i:i i(34) * i(0)
74 replay 1 PPB_URLResponseInfo_IsURLResponseInfo:i:i i(34) * i(0)
75 replay 1 PPB_URLLoader_IsURLLoader:i:i i(34) * i(1)
76 replay 1 PPB_FileIO_IsFileIO:i:i i(34) * i(0)
77
78 replay 1 PPB_URLRequestInfo_SetProperty:iiC:i i(30) i(0) R(40,${ARG_URL}) * i(1)
79 replay 1 PPB_URLRequestInfo_SetProperty:iiC:i i(30) i(1) R(16,${ARG_GET}) * i(1)
80 replay 1 PPB_URLRequestInfo_SetProperty:iiC:i i(30) i(3) R(8,${ARG_0}) * i(1)
81
82 replay 1 PPB_URLLoader_Open:iii:i i(34) i(30) i(1) * i(-1)
83 rpc Call ${OBJECT} R(16,${ARG_loadUrl}) i(2) R(48,${ARG_URL},${ARG_0}) ${NULL} * C(8) C(8)
84
85 echo
86 echo "*** async response part1"
87 replay 1 PPB_URLLoader_GetResponseInfo:i:i i(34) * i(38)
88 replay 1 PPB_FileIO_IsFileIO:i:i i(38) * i(0)
89 replay 1 PPB_URLRequestInfo_IsURLRequestInfo:i:i i(38) * i(0)
90 replay 1 PPB_URLResponseInfo_IsURLResponseInfo:i:i i(38) * i(1)
91 replay 1 PPB_URLLoader_IsURLLoader:i:i i(38) * i(0)
92 replay 1 PPB_URLResponseInfo_GetProperty:ii:C i(38) i(0) * R(56,${ARG_URL_FULL})
93 replay 1 PPB_URLResponseInfo_GetProperty:ii:C i(38) i(3) * R(8,4:3,4:200)
94 replay 1 PPB_URLLoader_ReadResponseBody:iii:Ci i(34) i(1024) i(2) * C(0,) i(-1)
95 rpc RunCompletionCallback i(1) i(0) C(0,) *
96
97 echo
98 echo "*** async response part2"
99 replay 1 PPB_URLLoader_ReadResponseBody:iii:Ci i(34) i(1024) i(3) * C(0,) i(-1)
100 rpc RunCompletionCallback i(2) i(12) C(12,hello\x20world!) *
101
102 ######################################################################
103 ## URL (file)
104 ######################################################################
105
106 echo
107 echo "*** CALL loadUrl(): as file"
108 replay 1 PPB_GetInterface:s:i s("PPB_FileIO;1.0") * i(1)
109 replay 1 PPB_GetInterface:s:i s("PPB_URLRequestInfo;1.0") * i(1)
110 replay 1 PPB_GetInterface:s:i s("PPB_URLResponseInfo;1.0") * i(1)
111 replay 1 PPB_GetInterface:s:i s("PPB_URLLoader;1.0") * i(1)
112
113 replay 1 PPB_URLLoader_Create:i:i ${INSTANCE} * i(34)
114 replay 1 PPB_URLRequestInfo_Create:i:i ${INSTANCE} * i(30)
115 replay 1 PPB_FileIO_Create:i:i ${INSTANCE} * i(66)
116
117 replay 1 PPB_FileIO_IsFileIO:i:i i(66) * i(1)
118 replay 1 PPB_URLLoader_IsURLLoader:i:i i(66) * i(0)
119 replay 1 PPB_URLResponseInfo_IsURLResponseInfo:i:i i(66) * i(0)
120 replay 1 PPB_URLRequestInfo_IsURLRequestInfo:i:i i(66) * i(0)
121
122 replay 1 PPB_FileIO_IsFileIO:i:i i(30) * i(0)
123 replay 1 PPB_URLResponseInfo_IsURLResponseInfo:i:i i(30) * i(0)
124 replay 1 PPB_URLRequestInfo_IsURLRequestInfo:i:i i(30) * i(1)
125 replay 1 PPB_URLLoader_IsURLLoader:i:i i(30) * i(0)
126
127 replay 1 PPB_FileIO_IsFileIO:i:i i(34) * i(0)
128 replay 1 PPB_URLRequestInfo_IsURLRequestInfo:i:i i(34) * i(0)
129 replay 1 PPB_URLResponseInfo_IsURLResponseInfo:i:i i(34) * i(0)
130 replay 1 PPB_URLLoader_IsURLLoader:i:i i(34) * i(1)
131
132 replay 1 PPB_URLRequestInfo_SetProperty:iiC:i i(30) i(0) R(40,${ARG_URL}) * i(1)
133 replay 1 PPB_URLRequestInfo_SetProperty:iiC:i i(30) i(1) R(16,${ARG_GET}) * i(1)
134 replay 1 PPB_URLRequestInfo_SetProperty:iiC:i i(30) i(3) R(8,${ARG_1}) * i(1)
135
136 replay 1 PPB_URLLoader_Open:iii:i i(34) i(30) i(4) * i(-1)
137
138 replay 1 PPB_Core_ReleaseResource:i: i(30) *
139 replay 1 PPB_Core_ReleaseResource:i: i(34) *
140 replay 1 PPB_Core_ReleaseResource:i: i(66) *
141
142 replay 1 Call:CCiCC:CC R(16,8:0x9f,8:0x5f29) R(24,${ARG_ReportResult}) i(4) R(80 ,${ARG_URL},${ARG_1},${ARG_SUCC},${ARG_1}) ${NULL} * ${NULL} ${NULL}
143
144 rpc Call ${OBJECT} R(16,${ARG_loadUrl}) i(2) R(48,${ARG_URL},${ARG_1}) ${NULL} * C(8) C(8)
145
146 ######################################################################
147 ## EPILOG
148 ######################################################################
149 echo
150 echo "*** DONE"
151 rpc PPP_ShutdownModule *
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698