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

Unified Diff: chrome/test/data/nacl/simple.cc

Issue 10827357: Add NaCl smoke test to browser_tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: VS2010 fix? 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/data/nacl/nacl_test_data.gyp ('k') | chrome/test/nacl/OWNERS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/nacl/simple.cc
diff --git a/chrome/test/data/nacl/simple.cc b/chrome/test/data/nacl/simple.cc
new file mode 100644
index 0000000000000000000000000000000000000000..c539fbb9590380c10962e2242de33821ca73e051
--- /dev/null
+++ b/chrome/test/data/nacl/simple.cc
@@ -0,0 +1,27 @@
+// 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 "ppapi/cpp/instance.h"
+#include "ppapi/cpp/module.h"
+
+class SimpleInstance : public pp::Instance {
+ public:
+ explicit SimpleInstance(PP_Instance instance) : pp::Instance(instance) {
+ }
+};
+
+class SimpleModule : public pp::Module {
+ public:
+ virtual pp::Instance* CreateInstance(PP_Instance instance) {
+ return new SimpleInstance(instance);
+ }
+};
+
+namespace pp {
+
+Module* CreateModule() {
+ return new SimpleModule();
+}
+
+} // namespace pp
« no previous file with comments | « chrome/test/data/nacl/nacl_test_data.gyp ('k') | chrome/test/nacl/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698