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() { |