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_ |