diff options
Diffstat (limited to 'webkit/plugins/ppapi/ppapi_unittest.cc')
-rw-r--r-- | webkit/plugins/ppapi/ppapi_unittest.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/webkit/plugins/ppapi/ppapi_unittest.cc b/webkit/plugins/ppapi/ppapi_unittest.cc index ef083998..03a9793 100644 --- a/webkit/plugins/ppapi/ppapi_unittest.cc +++ b/webkit/plugins/ppapi/ppapi_unittest.cc @@ -61,6 +61,7 @@ static PPP_Instance mock_instance_interface = { &Instance_DidDestroy, &Instance_DidChangeView, &Instance_DidChangeFocus, + &Instance_HandleInputEvent, &Instance_HandleDocumentLoad }; @@ -89,10 +90,10 @@ void PpapiUnittest::SetUp() { ASSERT_TRUE(module_->InitAsInternalPlugin(entry_points)); // Initialize the mock instance. - instance_ = PluginInstance::Create1_0( + instance_ = PluginInstance::Create0_5( delegate_.get(), module(), - GetMockInterface(PPP_INSTANCE_INTERFACE_1_0)); + GetMockInterface(PPP_INSTANCE_INTERFACE_0_5)); } @@ -102,7 +103,7 @@ void PpapiUnittest::TearDown() { } const void* PpapiUnittest::GetMockInterface(const char* interface_name) const { - if (strcmp(interface_name, PPP_INSTANCE_INTERFACE_1_0) == 0) + if (strcmp(interface_name, PPP_INSTANCE_INTERFACE_0_5) == 0) return &mock_instance_interface; return NULL; } |