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

Side by Side Diff: tests/fake_browser_ppapi/fake_file_io.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_core.cc ('k') | tests/fake_browser_ppapi/fake_file_io_trusted.cc » ('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 "native_client/tests/fake_browser_ppapi/fake_file_io.h" 7 #include "native_client/tests/fake_browser_ppapi/fake_file_io.h"
8 8
9 #include <stdio.h> 9 #include <stdio.h>
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/include/portability_io.h" 13 #include "native_client/src/include/portability_io.h"
14 #include "native_client/src/shared/ppapi_proxy/utility.h"
15 14
16 #include "native_client/tests/fake_browser_ppapi/fake_file_ref.h" 15 #include "native_client/tests/fake_browser_ppapi/fake_file_ref.h"
17 #include "native_client/tests/fake_browser_ppapi/fake_resource.h" 16 #include "native_client/tests/fake_browser_ppapi/fake_resource.h"
17 #include "native_client/tests/fake_browser_ppapi/utility.h"
18 18
19 #include "ppapi/c/pp_errors.h" 19 #include "ppapi/c/pp_errors.h"
20 #include "ppapi/c/pp_completion_callback.h" 20 #include "ppapi/c/pp_completion_callback.h"
21 #include "ppapi/c/pp_resource.h" 21 #include "ppapi/c/pp_resource.h"
22 22
23 using ppapi_proxy::DebugPrintf; 23 using fake_browser_ppapi::DebugPrintf;
24 24
25 namespace fake_browser_ppapi { 25 namespace fake_browser_ppapi {
26 26
27 namespace { 27 namespace {
28 28
29 PP_Resource Create(PP_Module module_id) { 29 PP_Resource Create(PP_Module module_id) {
30 DebugPrintf("FileIO::Create: module_id=%"NACL_PRId64"\n", module_id); 30 DebugPrintf("FileIO::Create: module_id=%"NACL_PRId64"\n", module_id);
31 FileIO* file_io = new FileIO(module_id); 31 FileIO* file_io = new FileIO(module_id);
32 PP_Resource resource_id = TrackResource(file_io); 32 PP_Resource resource_id = TrackResource(file_io);
33 DebugPrintf("FileIO::Create: resource_id=%"NACL_PRId64"\n", resource_id); 33 DebugPrintf("FileIO::Create: resource_id=%"NACL_PRId64"\n", resource_id);
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 Read, 156 Read,
157 Write, 157 Write,
158 SetLength, 158 SetLength,
159 Flush, 159 Flush,
160 Close 160 Close
161 }; 161 };
162 return &file_io_interface; 162 return &file_io_interface;
163 } 163 }
164 164
165 } // namespace fake_browser_ppapi 165 } // namespace fake_browser_ppapi
OLDNEW
« no previous file with comments | « tests/fake_browser_ppapi/fake_core.cc ('k') | tests/fake_browser_ppapi/fake_file_io_trusted.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698