| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "webkit/plugins/ppapi/ppapi_unittest.h" | 5 #include "webkit/plugins/ppapi/ppapi_unittest.h" |
| 6 | 6 |
| 7 #include "ppapi/c/pp_var.h" | 7 #include "ppapi/c/pp_var.h" |
| 8 #include "ppapi/c/ppp_instance.h" | 8 #include "ppapi/c/ppp_instance.h" |
| 9 #include "webkit/plugins/ppapi/mock_plugin_delegate.h" | 9 #include "webkit/plugins/ppapi/mock_plugin_delegate.h" |
| 10 #include "webkit/plugins/ppapi/plugin_module.h" | 10 #include "webkit/plugins/ppapi/plugin_module.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 PP_Bool Instance_DidCreate(PP_Instance pp_instance, | 31 PP_Bool Instance_DidCreate(PP_Instance pp_instance, |
| 32 uint32_t argc, | 32 uint32_t argc, |
| 33 const char* argn[], | 33 const char* argn[], |
| 34 const char* argv[]) { | 34 const char* argv[]) { |
| 35 return PP_TRUE; | 35 return PP_TRUE; |
| 36 } | 36 } |
| 37 | 37 |
| 38 void Instance_DidDestroy(PP_Instance instance) { | 38 void Instance_DidDestroy(PP_Instance instance) { |
| 39 } | 39 } |
| 40 | 40 |
| 41 void Instance_DidChangeView(PP_Instance pp_instance, | 41 void Instance_DidChangeView(PP_Instance pp_instance, PP_Resource view) { |
| 42 const PP_Rect* position, | |
| 43 const PP_Rect* clip) { | |
| 44 } | 42 } |
| 45 | 43 |
| 46 void Instance_DidChangeFocus(PP_Instance pp_instance, PP_Bool has_focus) { | 44 void Instance_DidChangeFocus(PP_Instance pp_instance, PP_Bool has_focus) { |
| 47 } | 45 } |
| 48 | 46 |
| 49 PP_Bool Instance_HandleDocumentLoad(PP_Instance pp_instance, | 47 PP_Bool Instance_HandleDocumentLoad(PP_Instance pp_instance, |
| 50 PP_Resource pp_url_loader) { | 48 PP_Resource pp_url_loader) { |
| 51 return PP_FALSE; | 49 return PP_FALSE; |
| 52 } | 50 } |
| 53 | 51 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 reset_result(); | 156 reset_result(); |
| 159 PpapiInterfaceFactoryManager::GetInstance()->UnregisterFactory( | 157 PpapiInterfaceFactoryManager::GetInstance()->UnregisterFactory( |
| 160 PpapiCustomInterfaceFactoryTest::InterfaceFactory); | 158 PpapiCustomInterfaceFactoryTest::InterfaceFactory); |
| 161 | 159 |
| 162 (*PluginModule::GetLocalGetInterfaceFunc())("DummyInterface"); | 160 (*PluginModule::GetLocalGetInterfaceFunc())("DummyInterface"); |
| 163 EXPECT_FALSE(result()); | 161 EXPECT_FALSE(result()); |
| 164 } | 162 } |
| 165 | 163 |
| 166 } // namespace ppapi | 164 } // namespace ppapi |
| 167 } // namespace webkit | 165 } // namespace webkit |
| OLD | NEW |