summaryrefslogtreecommitdiffstats
path: root/ppapi/native_client
diff options
context:
space:
mode:
authorhidehiko@chromium.org <hidehiko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-21 10:36:21 +0000
committerhidehiko@chromium.org <hidehiko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-21 10:36:21 +0000
commita4a01e47a657b2a74fa6f2748006efcb01f63523 (patch)
treedf08272594c974115fdadf892e12f445ec527a0d /ppapi/native_client
parentad6d13372a73c90fc24059b22b2fa0ea927f2151 (diff)
downloadchromium_src-a4a01e47a657b2a74fa6f2748006efcb01f63523.zip
chromium_src-a4a01e47a657b2a74fa6f2748006efcb01f63523.tar.gz
chromium_src-a4a01e47a657b2a74fa6f2748006efcb01f63523.tar.bz2
Add test to make sure if PPB_Audio_Shared::StartThread() works.
To NaCl in either SFI or non-SFI mode, PPB_Audio_Shraed::StartThread requires ppapi_register_thread_creator invoked in advance. Currently no test about it. This CL adds the test. Tests are guarded by #ifdef __native_client__, because it won't work and is meaningless for trusted plugins. TEST=Ran browser_tests --gtest_filter=*AudioThreadCreation locally, and ran trybots. BUG=359710 Review URL: https://codereview.chromium.org/240523002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@264974 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/native_client')
-rw-r--r--ppapi/native_client/src/untrusted/irt_stub/thread_creator.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ppapi/native_client/src/untrusted/irt_stub/thread_creator.h b/ppapi/native_client/src/untrusted/irt_stub/thread_creator.h
index ac4258f..7adbabe 100644
--- a/ppapi/native_client/src/untrusted/irt_stub/thread_creator.h
+++ b/ppapi/native_client/src/untrusted/irt_stub/thread_creator.h
@@ -10,6 +10,14 @@
#include "native_client/src/untrusted/irt/irt.h"
#include "ppapi/nacl_irt/public/irt_ppapi.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
void __nacl_register_thread_creator(const struct nacl_irt_ppapihook *hooks);
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
#endif