| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |