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

Unified Diff: native_client_sdk/src/libraries/gtest_ppapi/gtest_module.cc

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.cc
diff --git a/native_client_sdk/src/libraries/gtest_ppapi/gtest_module.cc b/native_client_sdk/src/libraries/gtest_ppapi/gtest_module.cc
index 5affc916ab0433e3d0c246f9bf8e9ec002da373e..bda434cb7a0f713d95774449aa1979d59ae6464d 100644
--- a/native_client_sdk/src/libraries/gtest_ppapi/gtest_module.cc
+++ b/native_client_sdk/src/libraries/gtest_ppapi/gtest_module.cc
@@ -1,25 +1,9 @@
// 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_module.h"
#include "gtest_ppapi/gtest_instance.h"
-#include "ppapi/cpp/module.h"
-// GTestModule is a NaCl module dedicated to running gtest-based unit tests.
-// It creates an NaCl instance based on GTestInstance.
-class GTestModule : public pp::Module {
- public:
- GTestModule() : pp::Module() {}
- ~GTestModule() {}
-
- virtual pp::Instance* CreateInstance(PP_Instance instance) {
- return new GTestInstance(instance);
- }
-};
-
-namespace pp {
-
-Module* CreateModule() {
- return new GTestModule();
+pp::Instance* GTestModule::CreateInstance(PP_Instance instance) {
+ return new GTestInstance(instance);
}
-
-} // namespace pp
« no previous file with comments | « native_client_sdk/src/libraries/gtest_ppapi/gtest_module.h ('k') | native_client_sdk/src/libraries/gtest_ppapi/library.dsc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698