| Index: webkit/plugins/ppapi/ppapi_unittest.cc
|
| ===================================================================
|
| --- webkit/plugins/ppapi/ppapi_unittest.cc (revision 96768)
|
| +++ webkit/plugins/ppapi/ppapi_unittest.cc (working copy)
|
| @@ -74,7 +74,7 @@
|
| }
|
|
|
| void PpapiUnittest::SetUp() {
|
| - delegate_.reset(new MockPluginDelegate);
|
| + delegate_.reset(NewPluginDelegate());
|
|
|
| // Initialize the mock module.
|
| module_ = new PluginModule("Mock plugin", FilePath(), this);
|
| @@ -96,6 +96,10 @@
|
| module_ = NULL;
|
| }
|
|
|
| +MockPluginDelegate* PpapiUnittest::NewPluginDelegate() {
|
| + return new MockPluginDelegate;
|
| +}
|
| +
|
| const void* PpapiUnittest::GetMockInterface(const char* interface_name) const {
|
| if (strcmp(interface_name, PPP_INSTANCE_INTERFACE_1_0) == 0)
|
| return &mock_instance_interface;
|
|
|