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

Side by Side Diff: ppapi/native_client/tests/ppapi_simple_tests/ppapi_emu_file.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, 3 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 # NOTE: width and height must match the image_data and
6 # graphic_2d object requests that the nexe makes
7 set_variable WIDTH 1000
8 set_variable HEIGHT 700
9
10 echo
11 echo "*** INITIALIZE PEPPER EMULATION"
12 # this registers the currently supported PPB_xxx rpcs
13 pepper_emu_initialize ${INSTANCE} ${WIDTH} ${HEIGHT} demo
14 echo
15
16 echo
17 echo "*** CREATE UPCALL SERVICE"
18 # advertise the registered rpcs to the nexe
19 install_upcalls service_string pepper_desc
20 # the variable service string is very long and might change so we suppress it
21 nondeterministic s("${service_string}") @LENGTHY_SERVICE_STRING
22
23 echo
24 echo "*** INIT MODULE"
25 rpc PPP_InitializeModule hide-results i(0) ${MODULE} h(pepper_desc) s("${service _string}") * i(0) i(0)
26
27 echo
28 echo "*** CHECK INSTANCE CREATION"
29 # many nexes uses this to trigger instance initialization
30 set_variable TAGS C(30,url\000to_file\000chunk_size\000pdebug\000)
31 set_variable VALUES C(18,test.txt\0000\0001024\0001\000)
32 set_variable NUM_TAGS i(4)
33 rpc PPP_Instance_DidCreate ${INSTANCE} ${NUM_TAGS} ${TAGS} ${VALUES} * i(0)
34
35 echo
36 echo "*** TRIGGER REPAINT"
37 rpc PPP_Instance_DidChangeView ${INSTANCE} I(4,8,79,${WIDTH},${HEIGHT}) I(4,0,0, ${WIDTH},${HEIGHT}) *
38
39 # make sure we terminate when seeing the string "5555: COMPLETE" send via
40 # PostMessage by the nexe when it has fully read the file
41 echo
42 echo "REGISTER TERMINATION MESSAGE"
43 pepper_emu_set_quit_message "5555: COMPLETE"
44
45 echo
46 echo "*** ENTER EVENT LOOP"
47 # wait for events and handle them until we see the "quit_message"
48 pepper_emu_event_loop 0 100000
49
50 ######################################################################
51 ## EPILOG
52 ######################################################################
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698