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

Unified Diff: ppapi/native_client/tests/ppapi_browser/ppb_core/ppapi_ppb_core.html

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 side-by-side diff with in-line comments
Download patch
Index: ppapi/native_client/tests/ppapi_browser/ppb_core/ppapi_ppb_core.html
===================================================================
--- ppapi/native_client/tests/ppapi_browser/ppb_core/ppapi_ppb_core.html (revision 0)
+++ ppapi/native_client/tests/ppapi_browser/ppb_core/ppapi_ppb_core.html (revision 0)
@@ -0,0 +1,65 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+ <!-- Copyright 2011 Google Inc. All rights reserved. -->
+ <head>
+ <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 setupTests(tester, plugin) {
+ function addTest(test_name, responses) {
+ if (responses === undefined) {
+ responses = [];
+ }
+ var expected_messages = [test_name + ':PASSED'].concat(responses);
+ tester.addAsyncTest('PPB_Core::' + test_name, function(test) {
+ test.expectMessageSequence(plugin, expected_messages);
+ plugin.postMessage(test_name)
+ });
+ }
+
+ // Off the main thread.
+ // Doing these tests first will check that the proxy is properly
+ // caching the interface pointers on the main thread on initialization.
+ addTest('TestCallOnMainThread_FromNonMainThread',
+ ['CallOnMainThreadCallback_FromNonMainThread']);
+ addTest('TestCallOnMainThread_FromNonMainThreadStress',
+ ['CallOnMainThreadCallback_ThreadStress']);
+
+ // On the main thread.
+ addTest('TestGetTime');
+ addTest('TestGetTimeTicks');
+ addTest('TestIsMainThread_FromMainThread');
+ addTest('TestIsMainThread_FromNonMainThread');
+ addTest('TestAddRefAndReleaseResource');
+ addTest('TestAddRefAndReleaseInvalidResource');
+ addTest('TestCallOnMainThread_FromMainThread',
+ ['CallOnMainThreadCallback_FromMainThread']);
+ addTest('TestCallOnMainThread_FromMainThreadDelayed',
+ ['CallOnMainThreadCallback_FromMainThreadDelayed']);
+
+ }
+ //]]>
+ </script>
+ <title>PPAPI PPB_Core Test</title>
+ </head>
+ <body>
+ <h1>PPAPI PPB_Core Test</h1>
+
+ <embed type="application/x-nacl" id="test_nexe"
+ name="nacl_module"
+ src="ppapi_ppb_core.nmf"
+ width="0" height="0" />
+
+ <script type="text/javascript">
+ //<![CDATA[
+ var tester = new Tester();
+ setupTests(tester, $('test_nexe'));
+ tester.waitFor($('test_nexe'));
+ tester.run();
+ //]]>
+ </script>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698