OLD | NEW |
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 <inttypes.h> |
| 14 #include <stddef.h> |
13 #include <stdio.h> | 15 #include <stdio.h> |
14 #include <stdlib.h> | 16 #include <stdlib.h> |
15 #include <inttypes.h> | 17 #include <string.h> |
16 #include <sys/fcntl.h> | 18 #include <sys/fcntl.h> |
17 #include <string.h> | |
18 #include <unistd.h> | 19 #include <unistd.h> |
19 | 20 |
20 #include "ppapi/cpp/instance.h" | 21 #include "ppapi/cpp/instance.h" |
21 #include "ppapi/cpp/module.h" | 22 #include "ppapi/cpp/module.h" |
22 #include "ppapi/cpp/var.h" | 23 #include "ppapi/cpp/var.h" |
23 | 24 |
24 void Initialize(const pp::Var& message_data, std::string* out) { | 25 void Initialize(const pp::Var& message_data, std::string* out) { |
25 *out = "hello world"; | 26 *out = "hello world"; |
26 } | 27 } |
27 | 28 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 125 |
125 namespace pp { | 126 namespace pp { |
126 | 127 |
127 // Factory function for your specialization of the Module object. | 128 // Factory function for your specialization of the Module object. |
128 Module* CreateModule() { | 129 Module* CreateModule() { |
129 printf("hello world from CreateModule\n"); fflush(NULL); | 130 printf("hello world from CreateModule\n"); fflush(NULL); |
130 return new MyModule(); | 131 return new MyModule(); |
131 } | 132 } |
132 | 133 |
133 } // namespace pp | 134 } // namespace pp |
OLD | NEW |