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

Side by Side Diff: chrome/test/data/nacl/exit_status/pm_exit_status_test.cc

Issue 10918152: Port nacl_integration exit_status test to browser_tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment fixes Created 8 years, 3 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
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/data/nacl/exit_status/pm_exit_status_test.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 * Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 /* 7 /*
8 * Post-message based test for testing crash detection. 8 * Post-message based test for testing crash detection.
9 */ 9 */
10 #include <string> 10 #include <string>
11 11
12 #include <assert.h> 12 #include <assert.h>
13 #include <stdio.h> 13 #include <stdio.h>
14 #include <stdlib.h> 14 #include <stdlib.h>
15 #include <inttypes.h> 15 #include <inttypes.h>
16 #include <sys/fcntl.h> 16 #include <sys/fcntl.h>
17 #include <string.h> 17 #include <string.h>
18 #include <unistd.h> 18 #include <unistd.h>
19 19
20 #include <sys/nacl_syscalls.h> 20 #include <sys/nacl_syscalls.h>
21 21
22 #include "native_client/src/shared/srpc/nacl_srpc.h"
23 #include "ppapi/cpp/instance.h" 22 #include "ppapi/cpp/instance.h"
24 #include "ppapi/cpp/module.h" 23 #include "ppapi/cpp/module.h"
25 #include "ppapi/cpp/var.h" 24 #include "ppapi/cpp/var.h"
26 25
27 void Initialize(const pp::Var& message_data, std::string* out) { 26 void Initialize(const pp::Var& message_data, std::string* out) {
28 *out = "hello world"; 27 *out = "hello world";
29 } 28 }
30 29
31 void RunExit0(const pp::Var& message_data, std::string* out) { 30 void RunExit0(const pp::Var& message_data, std::string* out) {
32 *out = "good bye cruel world"; 31 *out = "good bye cruel world";
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 126
128 namespace pp { 127 namespace pp {
129 128
130 // Factory function for your specialization of the Module object. 129 // Factory function for your specialization of the Module object.
131 Module* CreateModule() { 130 Module* CreateModule() {
132 printf("hello world from CreateModule\n"); fflush(NULL); 131 printf("hello world from CreateModule\n"); fflush(NULL);
133 return new MyModule(); 132 return new MyModule();
134 } 133 }
135 134
136 } // namespace pp 135 } // namespace pp
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/data/nacl/exit_status/pm_exit_status_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698