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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/nameservice/srpc_nameservice_test.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/nameservice/srpc_nameservice_test.html
===================================================================
--- tests/nameservice/srpc_nameservice_test.html (revision 0)
+++ tests/nameservice/srpc_nameservice_test.html (revision 0)
@@ -0,0 +1,54 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>SRPC Name Service</title>
+ <META HTTP-EQUIV="Pragma" CONTENT="no-cache" />
+ <META HTTP-EQUIV="Expires" CONTENT="-1" />
+ <script type="text/javascript" src="nacltest.js"></script>
+ <script type="application/x-javascript">
+ //<![CDATA[
+
+function testMethods(tester, server) {
+ tester.addTest('namedump', function() {
+ assertEqual('nbytes = 28\nmanifest_proxy\nSecureRandom\n',
+ server.namedump());
+ })
+ // RNG output -- no fixed seed testing, so cannot compare output;
+ // we aren't about to run chi-squared testing in javascript...
+ // tester.addTest('rngdump', function() {
+ // alert(server.rngdump());
+ // })
+ tester.addTest('manifest_test', function() {
+ assertEqual('ManifestList: This is a reply from the manifest reverse service in the plugin.\n',
+ server.manifest_test());
+ })
+}
+
+ //]]>
+ </script>
+ </head>
+ <body>
+ <h1>Native Client Name Service</h1>
+ NOTE: Set NACL_ENABLE_EXPERIMENTAL_JAVASCRIPT_APIS=1 to run this test.
+
+ <p>
+ This test uses internal interfaces that should not be used by
+ untrusted code. Only the IRT code should use them, since these
+ are not part of the stable ABI. (The IRT implements the stable
+ NaCl/Pepper interfaces.)
+ </p>
+
+ <embed type="application/x-nacl" id="nacl_server"
+ name="nacl_module" width="0" height="0" src="srpc_nameservice.nmf" />
+
+ <script type="text/javascript">
+ //<![CDATA[
+ var tester = new Tester();
+ var server = $("nacl_server");
+ testMethods(tester, server);
+ tester.waitFor(server);
+ tester.run();
+ //]]>
+ </script>
+ </body>
+</html>
« no previous file with comments | « tests/nameservice/srpc_nameservice_test.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698