Index: ppapi/native_client/tests/ppapi_simple_tests/ppapi_geturl_invalid.stdin |
=================================================================== |
--- ppapi/native_client/tests/ppapi_simple_tests/ppapi_geturl_invalid.stdin (revision 0) |
+++ ppapi/native_client/tests/ppapi_simple_tests/ppapi_geturl_invalid.stdin (revision 0) |
@@ -0,0 +1,87 @@ |
+# define a bunch of variables for readability |
+ |
+set_variable MODULE i(4444) |
+set_variable INSTANCE i(5555) |
+ |
+# Tags used by pepper/srpc to marshall js parameters |
+set_variable JS_STR 4:5 |
+set_variable JS_INT 4:2 |
+ |
+# NOTE: the strings below must not contain unescaped spaces or commas |
+set_variable ARG_loadUrl ${JS_STR},4:7,"loadUrl",1:0 |
+set_variable ARG_ReportResult ${JS_STR},4:12,"ReportResult",4:0 |
+ |
+set_variable ARG_URL ${JS_STR},4:32,"http://www.google.com/robots.txt" |
+ |
+set_variable ARG_ERR1 ${JS_STR},4:38,"PPB_URLLoader::Open:\x20PP_ERROR_NOACCESS",2:0 |
+set_variable ARG_ERR2 ${JS_STR},4:34,"PPB_URLRequestInfo::Create:\x20failed",6:0 |
+set_variable ARG_GET ${JS_STR},4:3,"GET",5:0 |
+ |
+set_variable ARG_SUCC ${JS_STR},4:12,"hello\x20world!",4:0 |
+set_variable ARG_0 ${JS_INT},4:0 |
+set_variable ARG_1 ${JS_INT},4:1 |
+ |
+set_variable WINDOW R(24,8:6,8:0x9f,8:0x5f29) |
+# TODO(robertm) figure out what this represents, maybe PP_Var |
+set_variable EXCEPTION R(8,8:0) |
+set_variable NULL R(8,8:0) |
+ |
+echo |
+echo "*** INIT MODULE" |
+replay 99 PPB_GetInterface:s:i s("PPB_Core;1.0") * i(1) |
+replay 99 PPB_GetInterface:s:i s("PPB_Instance;1.0") * i(1) |
+replay 99 PPB_GetInterface:s:i s("PPB_Var;1.0") * i(1) |
+# the results contain a process id which is non-determinisitic |
+rpc PPP_InitializeModule hide-results i(0) ${MODULE} h(pepper_desc) s("${service_string}") * i(0) i(0) |
+ |
+echo |
+echo "*** TRIGGER REPAINT" |
+rpc PPP_Instance_DidChangeView ${INSTANCE} I(4,8,79,400,400) I(4,0,0,400,400) * |
+# leave time for flush of stdout |
+ |
+###################################################################### |
+## URL |
+###################################################################### |
+echo |
+echo "*** CALL loadUrl(): url2 as buffer - expected to fail" |
+replay 1 PPB_GetInterface:s:i s("PPB_URLRequestInfo;1.0") * i(1) |
+replay 1 PPB_GetInterface:s:i s("PPB_URLResponseInfo;1.0") * i(1) |
+replay 1 PPB_GetInterface:s:i s("PPB_URLLoader;1.0") * i(1) |
+replay 1 PPB_GetInterface:s:i s("PPB_FileIO;1.0") * i(1) |
+ |
+replay 1 PPB_FileIO_Create:i:i ${INSTANCE} * i(35) |
+replay 1 PPB_URLRequestInfo_Create:i:i ${INSTANCE} * i(40) |
+replay 1 PPB_URLLoader_Create:i:i ${INSTANCE} * i(44) |
+ |
+replay 1 PPB_FileIO_IsFileIO:i:i i(35) * i(1) |
+replay 1 PPB_URLRequestInfo_IsURLRequestInfo:i:i i(35) * i(0) |
+replay 1 PPB_URLResponseInfo_IsURLResponseInfo:i:i i(35) * i(0) |
+replay 1 PPB_URLLoader_IsURLLoader:i:i i(35) * i(0) |
+ |
+replay 1 PPB_FileIO_IsFileIO:i:i i(40) * i(0) |
+replay 1 PPB_URLRequestInfo_IsURLRequestInfo:i:i i(40) * i(1) |
+replay 1 PPB_URLResponseInfo_IsURLResponseInfo:i:i i(40) * i(0) |
+replay 1 PPB_URLLoader_IsURLLoader:i:i i(40) * i(0) |
+ |
+replay 1 PPB_FileIO_IsFileIO:i:i i(44) * i(0) |
+replay 1 PPB_URLRequestInfo_IsURLRequestInfo:i:i i(44) * i(0) |
+replay 1 PPB_URLResponseInfo_IsURLResponseInfo:i:i i(44) * i(0) |
+replay 1 PPB_URLLoader_IsURLLoader:i:i i(44) * i(1) |
+ |
+replay 1 PPB_URLRequestInfo_SetProperty:iiC:i i(40) i(0) R(40,${ARG_URL}) * i(1) |
+replay 1 PPB_URLRequestInfo_SetProperty:iiC:i i(40) i(1) R(16,${ARG_GET}) * i(1) |
+replay 1 PPB_URLRequestInfo_SetProperty:iiC:i i(40) i(3) R(8,${ARG_0}) * i(1) |
+ |
+replay 1 PPB_URLLoader_Open:iii:i i(44) i(40) i(1) * i(-7) |
+ |
+replay 1 PPB_Core_ReleaseResource:i: i(35) * |
+replay 1 PPB_Core_ReleaseResource:i: i(40) * |
+replay 1 PPB_Core_ReleaseResource:i: i(44) * |
+rpc Call ${OBJECT} R(16,${ARG_loadUrl}) i(2) R(48,${ARG_URL},${ARG_0}) ${NULL} * C(8) C(8) |
+ |
+###################################################################### |
+## EPILOG |
+###################################################################### |
+echo |
+echo "*** DONE" |
+rpc PPP_ShutdownModule * |