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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/libraries/gtest_ppapi/gtest_module.h
diff --git a/native_client_sdk/src/libraries/gtest_ppapi/gtest_module.cc b/native_client_sdk/src/libraries/gtest_ppapi/gtest_module.h
similarity index 64%
copy from native_client_sdk/src/libraries/gtest_ppapi/gtest_module.cc
copy to native_client_sdk/src/libraries/gtest_ppapi/gtest_module.h
index 5affc916ab0433e3d0c246f9bf8e9ec002da373e..b08b90aa56b1c6b944dc790200bcf64dc7638c24 100644
--- a/native_client_sdk/src/libraries/gtest_ppapi/gtest_module.cc
+++ b/native_client_sdk/src/libraries/gtest_ppapi/gtest_module.h
@@ -1,7 +1,8 @@
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "gtest_ppapi/gtest_instance.h"
+#ifndef GTEST_PPAPI_GTEST_MODULE_H_
+#define GTEST_PPAPI_GTEST_MODULE_H_
#include "ppapi/cpp/module.h"
// GTestModule is a NaCl module dedicated to running gtest-based unit tests.
@@ -11,15 +12,7 @@ class GTestModule : public pp::Module {
GTestModule() : pp::Module() {}
~GTestModule() {}
- virtual pp::Instance* CreateInstance(PP_Instance instance) {
- return new GTestInstance(instance);
- }
+ virtual pp::Instance* CreateInstance(PP_Instance instance);
};
-namespace pp {
-
-Module* CreateModule() {
- return new GTestModule();
-}
-
-} // namespace pp
+#endif // GTEST_PPAPI_GTEST_MODULE_H_

Powered by Google App Engine
This is Rietveld 408576698