| OLD | NEW |
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // be found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Functions for dynamically loading the trusted plugin when running unit | 5 // Functions for dynamically loading the trusted plugin when running unit |
| 6 // tests. | 6 // tests. |
| 7 | 7 |
| 8 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_DYLIB_UNITTEST_H_ | 8 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_DYLIB_UNITTEST_H_ |
| 9 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_DYLIB_UNITTEST_H_ | 9 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_DYLIB_UNITTEST_H_ |
| 10 | 10 |
| 11 #if NACL_WINDOWS | 11 #if NACL_WINDOWS |
| 12 #include <windows.h> | 12 #include <windows.h> |
| 13 typedef HINSTANCE DylibHandle; | 13 typedef HINSTANCE DylibHandle; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 30 // Close the dynamic library and free all the system resources associated with | 30 // Close the dynamic library and free all the system resources associated with |
| 31 // it. Returns |true| on success. | 31 // it. Returns |true| on success. |
| 32 bool DylibClose(DylibHandle dl_handle); | 32 bool DylibClose(DylibHandle dl_handle); |
| 33 | 33 |
| 34 // Return a handle to the symbol named |name| in the library represented by | 34 // Return a handle to the symbol named |name| in the library represented by |
| 35 // |dl_handle|. Returns NULL ff the symbol does not exist, or some other error | 35 // |dl_handle|. Returns NULL ff the symbol does not exist, or some other error |
| 36 // occurs. | 36 // occurs. |
| 37 SymbolHandle GetSymbolHandle(DylibHandle dl_handle, const char* name); | 37 SymbolHandle GetSymbolHandle(DylibHandle dl_handle, const char* name); |
| 38 | 38 |
| 39 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_DYLIB_UNITTEST_H_ | 39 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_DYLIB_UNITTEST_H_ |
| OLD | NEW |