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

Side by Side Diff: tests/fake_browser_ppapi/main.cc

Issue 5631003: ppapi_proxy: Make DebugPrintf more usable.... (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 10 years 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 | « tests/fake_browser_ppapi/fake_window.cc ('k') | tests/fake_browser_ppapi/nacl.scons » ('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 2010 The Native Client Authors. All rights reserved. 2 * Copyright 2010 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can 3 * Use of this source code is governed by a BSD-style license that can
4 * be found in the LICENSE file. 4 * be found in the LICENSE file.
5 */ 5 */
6 6
7 #include <cstring> 7 #include <cstring>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "native_client/src/include/nacl_macros.h" 11 #include "native_client/src/include/nacl_macros.h"
12 #include "native_client/src/include/portability.h" 12 #include "native_client/src/include/portability.h"
13 #include "native_client/src/shared/platform/nacl_check.h" 13 #include "native_client/src/shared/platform/nacl_check.h"
14 #include "native_client/src/shared/ppapi_proxy/utility.h"
15 #include "native_client/src/shared/ppapi_proxy/plugin_var.h" 14 #include "native_client/src/shared/ppapi_proxy/plugin_var.h"
16 #include "native_client/tests/fake_browser_ppapi/fake_core.h" 15 #include "native_client/tests/fake_browser_ppapi/fake_core.h"
17 #include "native_client/tests/fake_browser_ppapi/fake_file_io.h" 16 #include "native_client/tests/fake_browser_ppapi/fake_file_io.h"
18 #include "native_client/tests/fake_browser_ppapi/fake_file_io_trusted.h" 17 #include "native_client/tests/fake_browser_ppapi/fake_file_io_trusted.h"
19 #include "native_client/tests/fake_browser_ppapi/fake_host.h" 18 #include "native_client/tests/fake_browser_ppapi/fake_host.h"
20 #include "native_client/tests/fake_browser_ppapi/fake_instance.h" 19 #include "native_client/tests/fake_browser_ppapi/fake_instance.h"
21 #include "native_client/tests/fake_browser_ppapi/fake_resource.h" 20 #include "native_client/tests/fake_browser_ppapi/fake_resource.h"
22 #include "native_client/tests/fake_browser_ppapi/fake_url_loader.h" 21 #include "native_client/tests/fake_browser_ppapi/fake_url_loader.h"
23 #include "native_client/tests/fake_browser_ppapi/fake_url_request_info.h" 22 #include "native_client/tests/fake_browser_ppapi/fake_url_request_info.h"
24 #include "native_client/tests/fake_browser_ppapi/fake_url_response_info.h" 23 #include "native_client/tests/fake_browser_ppapi/fake_url_response_info.h"
25 #include "native_client/tests/fake_browser_ppapi/fake_window.h" 24 #include "native_client/tests/fake_browser_ppapi/fake_window.h"
26 #include "native_client/tests/fake_browser_ppapi/test_scriptable.h" 25 #include "native_client/tests/fake_browser_ppapi/test_scriptable.h"
26 #include "native_client/tests/fake_browser_ppapi/utility.h"
27 27
28 #include "ppapi/c/dev/ppb_var_deprecated.h" 28 #include "ppapi/c/dev/ppb_var_deprecated.h"
29 #include "ppapi/c/ppb_core.h" 29 #include "ppapi/c/ppb_core.h"
30 #include "ppapi/c/ppb_instance.h" 30 #include "ppapi/c/ppb_instance.h"
31 #include "ppapi/c/ppp_instance.h" 31 #include "ppapi/c/ppp_instance.h"
32 #include "ppapi/c/pp_errors.h" 32 #include "ppapi/c/pp_errors.h"
33 33
34 using ppapi_proxy::DebugPrintf; 34 using fake_browser_ppapi::DebugPrintf;
35 using fake_browser_ppapi::Host; 35 using fake_browser_ppapi::Host;
36 using fake_browser_ppapi::FakeWindow; 36 using fake_browser_ppapi::FakeWindow;
37 37
38 namespace { 38 namespace {
39 39
40 Host* host = NULL; 40 Host* host = NULL;
41 41
42 const void* FakeGetInterface(const char* interface_name) { 42 const void* FakeGetInterface(const char* interface_name) {
43 DebugPrintf("Getting interface for name '%s'\n", interface_name); 43 DebugPrintf("Getting interface for name '%s'\n", interface_name);
44 if (std::strcmp(interface_name, PPB_CORE_INTERFACE) == 0) { 44 if (std::strcmp(interface_name, PPB_CORE_INTERFACE) == 0) {
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 211
212 // Shutdown. 212 // Shutdown.
213 host->ShutdownModule(); 213 host->ShutdownModule();
214 214
215 // Close the plugin .so. 215 // Close the plugin .so.
216 delete host; 216 delete host;
217 217
218 printf("PASS\n"); 218 printf("PASS\n");
219 return 0; 219 return 0;
220 } 220 }
OLDNEW
« no previous file with comments | « tests/fake_browser_ppapi/fake_window.cc ('k') | tests/fake_browser_ppapi/nacl.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698