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

Side by Side Diff: chrome/test/data/nacl/simple.cc

Issue 10837207: Add NaCl smoke test to browser_tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
5 #include "ppapi/cpp/instance.h"
6 #include "ppapi/cpp/module.h"
7
8 class SimpleInstance : public pp::Instance {
9 public:
10 explicit SimpleInstance(PP_Instance instance) : pp::Instance(instance) {
11 }
12 };
13
14 class SimpleModule : public pp::Module {
15 public:
16 virtual pp::Instance* CreateInstance(PP_Instance instance) {
17 return new SimpleInstance(instance);
18 }
19 };
20
21 namespace pp {
22
23 Module* CreateModule() {
24 return new SimpleModule();
25 }
26
27 } // namespace pp
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698