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

Side by Side Diff: native_client_sdk/src/libraries/c_salt/test/gtest_module.cc

Issue 10854137: [NaCl SDK] gtest_ppapi library. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove hacks Created 8 years, 4 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
(Empty)
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
3 // found in the LICENSE file.
4 #include "c_salt/test/gtest_instance.h"
5 #include "ppapi/cpp/module.h"
6
7 namespace c_salt {
8
9 // GTestModule is a NaCl module dedicated to running gtest-based unit tests.
10 // It creates an NaCl instance based on GTestInstance.
11 class GTestModule : public pp::Module {
12 public:
13 GTestModule() : pp::Module() {}
14 ~GTestModule() {}
15
16 virtual pp::Instance* CreateInstance(PP_Instance instance) {
17 return new c_salt::GTestInstance(instance);
18 }
19 };
20
21 } // namespace c_salt
22
23 namespace pp {
24 Module* CreateModule() {
25 return new c_salt::GTestModule();
26 }
27 } // namespace pp
28
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698