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

Unified Diff: src/trusted/plugin/dylib_unittest.h

Issue 7799028: Remove src/trusted/plugin (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: fix gyp file for necessary -I Created 9 years, 4 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/trusted/plugin/desc_based_handle.cc ('k') | src/trusted/plugin/dylib_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/plugin/dylib_unittest.h
diff --git a/src/trusted/plugin/dylib_unittest.h b/src/trusted/plugin/dylib_unittest.h
deleted file mode 100644
index fa726846f06274fe5b391b8025560aee576b8869..0000000000000000000000000000000000000000
--- a/src/trusted/plugin/dylib_unittest.h
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright 2010 The Native Client Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can
-// be found in the LICENSE file.
-
-// Functions for dynamically loading the trusted plugin when running unit
-// tests.
-
-#ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_DYLIB_UNITTEST_H_
-#define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_DYLIB_UNITTEST_H_
-
-#if NACL_WINDOWS
-#include <windows.h>
-typedef HINSTANCE DylibHandle;
-typedef void (*SymbolHandle)();
-#else
-#include <dlfcn.h>
-#include <inttypes.h>
-typedef void* DylibHandle;
-// uintptr_t is used here because ISO C++ won't allow casting from a void*
-// (the return type of dlsym()) to a pointer-to-function. Instead,
-// GetSymbolHandle() returns a uintptr_t which can then be cast into a pointer-
-// to-function. This depends on uintptr_t being the same size (or larger than)
-// void*.
-typedef uintptr_t SymbolHandle;
-#endif
-
-// Load the dynamic library at |lib_path|. Returns NULL on error.
-DylibHandle DylibOpen(const char* lib_path);
-
-// Close the dynamic library and free all the system resources associated with
-// it. Returns |true| on success.
-bool DylibClose(DylibHandle dl_handle);
-
-// Return a handle to the symbol named |name| in the library represented by
-// |dl_handle|. Returns NULL ff the symbol does not exist, or some other error
-// occurs.
-SymbolHandle GetSymbolHandle(DylibHandle dl_handle, const char* name);
-
-#endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_DYLIB_UNITTEST_H_
« no previous file with comments | « src/trusted/plugin/desc_based_handle.cc ('k') | src/trusted/plugin/dylib_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698