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

Side by Side Diff: ppapi/native_client/tests/ppapi_simple_tests/file1.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 # To be used with
2 # sel_universal_ppapi_replay_prolog.stdin
3 # define a bunch of variables for readability
4
5 set_variable MODULE i(4444)
6 set_variable INSTANCE i(5555)
7
8 # Tags used by pepper/srpc to marshall js parameters
9 set_variable JS_STR 4:5
10 set_variable JS_INT 4:2
11
12 # NOTE: the strings below must not contain unescaped spaces or commas
13
14 set_variable FILE_DATA1 C(6,hello\x20)
15 set_variable FILE_SIZE1 i(6)
16 set_variable FILE_DATA2 C(6,world!)
17 set_variable FILE_SIZE2 i(6)
18
19 set_variable PARAM_STR_URL R(24,${JS_STR},4:10,"myurl.html",6:0)
20 set_variable PARAM_STR_GET R(16,${JS_STR},4:3,"GET",5:0)
21 set_variable PARAM_NUM_0 R(8,${JS_INT},4:0)
22 set_variable PARAM_NUM_1 R(8,${JS_INT},4:1)
23 set_variable PARAM_STATUS R(8,4:3,4:200)
24
25 set_variable NUM_TAGS i(3)
26 set_variable TAGS C(23,chunk_size\000url\000to_file\000)
27 set_variable VALUES C(16,10\000myurl.html\0000\000)
28
29 set_variable COMPLETE R(24,${JS_STR},4:14,"5555: COMPLETE",2:0)
30
31 ######################################################################
32
33 # These replays are too common to list them separately
34 # TODO(robertm): make the counts tight, eliminate PPB_Var ASAP
35
36 replay 1 PPB_GetInterface:s:i s("PPB_Messaging;1.0") * i(1)
37 replay 1 PPB_GetInterface:s:i s("PPB_Core;1.0") * i(1)
38 replay 1 PPB_GetInterface:s:i s("PPB_Var;1.0") * i(1)
39 replay 1 PPB_GetInterface:s:i s("PPB_URLRequestInfo;1.0") * i(1)
40 replay 1 PPB_GetInterface:s:i s("PPB_URLResponseInfo;1.0") * i(1)
41 replay 1 PPB_GetInterface:s:i s("PPB_URLLoader;1.0") * i(1)
42
43 ######################################################################
44
45 echo
46 echo "*** INIT MODULE"
47 # the results contain a process id which is non-determinisitic
48 rpc PPP_InitializeModule hide-results i(0) ${MODULE} h(pepper_desc) s("${service _string}") * i(0) i(0)
49
50 echo
51 echo "*** Load URL"
52 replay 1 PPB_URLRequestInfo_Create:i:i ${INSTANCE} * i(30)
53 replay 1 PPB_URLLoader_Create:i:i ${INSTANCE} * i(34)
54 replay 1 PPB_URLRequestInfo_SetProperty:iiC:i i(30) i(0) ${PARAM_STR_URL} * i(1)
55 replay 1 PPB_URLRequestInfo_SetProperty:iiC:i i(30) i(1) ${PARAM_STR_GET} * i(1)
56 replay 1 PPB_URLRequestInfo_SetProperty:iiC:i i(30) i(3) ${PARAM_NUM_0} * i(1)
57 replay 1 PPB_URLLoader_Open:iii:i i(34) i(30) i(1) * i(-1)
58 replay 1 PPB_Core_ReleaseResource:i: i(30) *
59 rpc PPP_Instance_DidCreate ${INSTANCE} ${NUM_TAGS} ${TAGS} ${VALUES} * i(0)
60
61 echo
62 echo "*** async Open Callback"
63 replay 1 PPB_URLLoader_GetResponseInfo:i:i i(34) * i(38)
64 replay 1 PPB_URLResponseInfo_GetProperty:ii:C i(38) i(3) * ${PARAM_STATUS}
65 replay 1 PPB_URLLoader_ReadResponseBody:iii:Ci i(34) i(10) i(2) * C(0,) i(-1)
66 replay 1 PPB_Core_ReleaseResource:i: i(38) *
67 rpc RunCompletionCallback i(1) i(0) C(0,) *
68
69 echo
70 echo "*** async ReaderResponseBody Callback (first 6 bytes)"
71 replay 1 PPB_URLLoader_ReadResponseBody:iii:Ci i(34) i(10) i(3) * C(0,) i(-1)
72 rpc RunCompletionCallback i(2) ${FILE_SIZE1} ${FILE_DATA1} *
73
74 echo
75 echo "*** async ReaderResponseBody Callback (second 6 bytes)"
76 replay 1 PPB_URLLoader_ReadResponseBody:iii:Ci i(34) i(10) i(4) * C(0,) i(-1)
77 rpc RunCompletionCallback i(3) ${FILE_SIZE2} ${FILE_DATA2} *
78
79 echo
80 echo "*** async ReaderResponseBody Callback (eof - 0 bytes)"
81 replay 1 PPB_Messaging_PostMessage:iC: ${INSTANCE} ${COMPLETE} *
82 rpc RunCompletionCallback i(4) i(0) C(0,) *
83
84 echo
85 echo "*** DONE"
86 rpc PPP_ShutdownModule *
OLDNEW
« no previous file with comments | « ppapi/native_client/tests/ppapi_simple_tests/file.cc ('k') | ppapi/native_client/tests/ppapi_simple_tests/file1.stdout » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698