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

Side by Side Diff: ppapi/native_client/tests/ppapi_simple_tests/file2.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\0001\000)
28
29 set_variable ERROR R(48,${JS_STR},4:33,"5555: Error: Finish unexpected rv",7: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 replay 1 PPB_GetInterface:s:i s("PPB_FileIO;1.0") * i(1)
43
44 ######################################################################
45
46 echo
47 echo "*** INIT MODULE"
48 # the results contain a process id which is non-determinisitic
49 rpc PPP_InitializeModule hide-results i(0) ${MODULE} h(pepper_desc) s("${service _string}") * i(0) i(0)
50
51 echo
52 echo "*** Load URL"
53 replay 1 PPB_URLRequestInfo_Create:i:i ${INSTANCE} * i(30)
54 replay 1 PPB_URLLoader_Create:i:i ${INSTANCE} * i(34)
55 replay 1 PPB_URLRequestInfo_SetProperty:iiC:i i(30) i(0) ${PARAM_STR_URL} * i(1)
56 replay 1 PPB_URLRequestInfo_SetProperty:iiC:i i(30) i(1) ${PARAM_STR_GET} * i(1)
57 replay 1 PPB_URLRequestInfo_SetProperty:iiC:i i(30) i(3) ${PARAM_NUM_1} * i(1)
58 replay 1 PPB_URLLoader_Open:iii:i i(34) i(30) i(1) * i(-1)
59 replay 1 PPB_Core_ReleaseResource:i: i(30) *
60 rpc PPP_Instance_DidCreate ${INSTANCE} ${NUM_TAGS} ${TAGS} ${VALUES} * i(0)
61
62 echo
63 echo "*** async Open Callback"
64 replay 1 PPB_URLLoader_GetResponseInfo:i:i i(34) * i(38)
65 replay 1 PPB_URLResponseInfo_GetProperty:ii:C i(38) i(3) * ${PARAM_STATUS}
66 replay 1 PPB_URLLoader_ReadResponseBody:iii:Ci i(34) i(10) i(2) * C(0,) i(-1)
67 replay 1 PPB_Core_ReleaseResource:i: i(38) *
68 replay 1 PPB_Messaging_PostMessage:iC: ${INSTANCE} ${ERROR} *
69 rpc RunCompletionCallback i(1) i(0) C(0,) *
70
71
72 ######################################################################
73 ## EPILOG
74 ######################################################################
75 echo
76 echo "*** DONE"
77 rpc PPP_ShutdownModule *
78
79
OLDNEW
« no previous file with comments | « ppapi/native_client/tests/ppapi_simple_tests/file1.stdout ('k') | ppapi/native_client/tests/ppapi_simple_tests/file2.stdout » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698