Chromium Code Reviews| Index: ppapi/tests/extensions/load_unload/load_unload.cc |
| diff --git a/ppapi/tests/extensions/load_unload/load_unload.cc b/ppapi/tests/extensions/load_unload/load_unload.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..7801674226565104dff6eca0b681a257af9b2f0d |
| --- /dev/null |
| +++ b/ppapi/tests/extensions/load_unload/load_unload.cc |
| @@ -0,0 +1,25 @@ |
| +// Copyright (c) 2015 The Chromium Authors. All rights reserved. |
|
bartfab (slow)
2015/05/18 09:57:41
Nit: s/(c) //
emaxx
2015/05/18 15:06:30
Done.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "ppapi/cpp/instance.h" |
| +#include "ppapi/cpp/module.h" |
| + |
| +namespace { |
| + |
| +class Module : public pp::Module { |
| + public: |
| + virtual pp::Instance* CreateInstance(PP_Instance instance) { |
| + return new pp::Instance(instance); |
| + } |
| +}; |
| + |
| +} // namespace |
| + |
| +namespace pp { |
| + |
| +Module* CreateModule() { |
| + return new ::Module(); |
| +} |
| + |
| +} // namespace pp |