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

Unified Diff: webkit/plugins/ppapi/ppapi_unittest.cc

Issue 6538028: A proposal for an initial postMessage interface. This will allow JavaScript ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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: webkit/plugins/ppapi/ppapi_unittest.cc
===================================================================
--- webkit/plugins/ppapi/ppapi_unittest.cc (revision 77426)
+++ webkit/plugins/ppapi/ppapi_unittest.cc (working copy)
@@ -59,6 +59,10 @@
return PP_MakeUndefined();
}
+void Instance_HandleMessage(PP_Instance pp_instance, PP_Var message) {
+ return;
+}
+
static PPP_Instance mock_instance_interface = {
&Instance_DidCreate,
&Instance_DidDestroy,
@@ -66,7 +70,8 @@
&Instance_DidChangeFocus,
&Instance_HandleInputEvent,
&Instance_HandleDocumentLoad,
- &Instance_GetInstanceObject
+ &Instance_GetInstanceObject,
+ &Instance_HandleMessage
};
} // namespace
@@ -96,7 +101,8 @@
// Initialize the mock instance.
instance_ = new PluginInstance(delegate_.get(), module(),
static_cast<const PPP_Instance*>(
- GetMockInterface(PPP_INSTANCE_INTERFACE)));
+ GetMockInterface(PPP_INSTANCE_INTERFACE)),
+ PluginInstance::PLUGIN_OWNS_INTERFACE);
}
void PpapiUnittest::TearDown() {

Powered by Google App Engine
This is Rietveld 408576698