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

Side by Side Diff: tests/nameservice/srpc_nameservice_test.html

Issue 7108031: this patch adds the manifest proxy server to sel_ldr and the manifest (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 years, 6 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 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>SRPC Name Service</title>
5 <META HTTP-EQUIV="Pragma" CONTENT="no-cache" />
6 <META HTTP-EQUIV="Expires" CONTENT="-1" />
7 <script type="text/javascript" src="nacltest.js"></script>
8 <script type="application/x-javascript">
9 //<![CDATA[
10
11 function testMethods(tester, server) {
12 tester.addTest('namedump', function() {
13 assertEqual('nbytes = 28\nmanifest_proxy\nSecureRandom\n',
14 server.namedump());
15 })
16 // RNG output -- no fixed seed testing, so cannot compare output;
17 // we aren't about to run chi-squared testing in javascript...
18 // tester.addTest('rngdump', function() {
19 // alert(server.rngdump());
20 // })
21 tester.addTest('manifest_test', function() {
22 assertEqual('ManifestList: This is a reply from the manifest reverse service in the plugin.\n',
23 server.manifest_test());
24 })
25 }
26
27 //]]>
28 </script>
29 </head>
30 <body>
31 <h1>Native Client Name Service</h1>
32 NOTE: Set NACL_ENABLE_EXPERIMENTAL_JAVASCRIPT_APIS=1 to run this test.
33
34 <p>
35 This test uses internal interfaces that should not be used by
36 untrusted code. Only the IRT code should use them, since these
37 are not part of the stable ABI. (The IRT implements the stable
38 NaCl/Pepper interfaces.)
39 </p>
40
41 <embed type="application/x-nacl" id="nacl_server"
42 name="nacl_module" width="0" height="0" src="srpc_nameservice.nmf" />
43
44 <script type="text/javascript">
45 //<![CDATA[
46 var tester = new Tester();
47 var server = $("nacl_server");
48 testMethods(tester, server);
49 tester.waitFor(server);
50 tester.run();
51 //]]>
52 </script>
53 </body>
54 </html>
OLDNEW
« tests/nameservice/srpc_nameservice_test.c ('K') | « tests/nameservice/srpc_nameservice_test.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698