Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Side by Side Diff: native_client_sdk/src/libraries/gtest_ppapi/gtest_module.h

Issue 11066105: [NaCl SDK] nacl_mounts: wrap functions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win fix Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "gtest_ppapi/gtest_instance.h" 4 #ifndef GTEST_PPAPI_GTEST_MODULE_H_
5 #define GTEST_PPAPI_GTEST_MODULE_H_
5 #include "ppapi/cpp/module.h" 6 #include "ppapi/cpp/module.h"
6 7
7 // GTestModule is a NaCl module dedicated to running gtest-based unit tests. 8 // GTestModule is a NaCl module dedicated to running gtest-based unit tests.
8 // It creates an NaCl instance based on GTestInstance. 9 // It creates an NaCl instance based on GTestInstance.
9 class GTestModule : public pp::Module { 10 class GTestModule : public pp::Module {
10 public: 11 public:
11 GTestModule() : pp::Module() {} 12 GTestModule() : pp::Module() {}
12 ~GTestModule() {} 13 ~GTestModule() {}
13 14
14 virtual pp::Instance* CreateInstance(PP_Instance instance) { 15 virtual pp::Instance* CreateInstance(PP_Instance instance);
15 return new GTestInstance(instance);
16 }
17 }; 16 };
18 17
19 namespace pp { 18 #endif // GTEST_PPAPI_GTEST_MODULE_H_
20
21 Module* CreateModule() {
22 return new GTestModule();
23 }
24
25 } // namespace pp
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698