| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 | |
| 6 | |
| 7 #include "native_client/src/include/nacl_macros.h" | |
| 8 #include "native_client/src/include/portability.h" | |
| 9 #include "native_client/src/include/portability_io.h" | |
| 10 #include "native_client/tests/fake_browser_ppapi/fake_nacl_private.h" | |
| 11 | |
| 12 #include "base/rand_util_c.h" | |
| 13 #include "ppapi/c/private/ppb_nacl_private.h" | |
| 14 | |
| 15 namespace fake_browser_ppapi { | |
| 16 | |
| 17 namespace { | |
| 18 | |
| 19 bool LaunchSelLdr(const char* alleged_url, int socket_count, | |
| 20 void* imc_handles, void* nacl_process_handle, | |
| 21 int* nacl_process_id) { | |
| 22 UNREFERENCED_PARAMETER(alleged_url); | |
| 23 UNREFERENCED_PARAMETER(socket_count); | |
| 24 UNREFERENCED_PARAMETER(imc_handles); | |
| 25 UNREFERENCED_PARAMETER(nacl_process_handle); | |
| 26 UNREFERENCED_PARAMETER(nacl_process_id); | |
| 27 return false; | |
| 28 } | |
| 29 | |
| 30 int UrandomFD(void) { | |
| 31 return 0; | |
| 32 } | |
| 33 | |
| 34 } // namespace | |
| 35 | |
| 36 const PPB_NaCl_Private ppb_nacl = { | |
| 37 &LaunchSelLdr, | |
| 38 &UrandomFD, | |
| 39 }; | |
| 40 | |
| 41 // static | |
| 42 const PPB_NaCl_Private* NaClPrivate::GetInterface() { | |
| 43 return &ppb_nacl; | |
| 44 } | |
| 45 | |
| 46 | |
| 47 } // namespace fake_browser_ppapi | |
| OLD | NEW |