diff options
author | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-05 22:18:09 +0000 |
---|---|---|
committer | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-05 22:18:09 +0000 |
commit | 108c2a1d2780d49121e16b18a29580ef4d28c790 (patch) | |
tree | eca587b489c7c22924814f4475c4a56ec5bc5b8e /base/native_library_win.cc | |
parent | 9e241cc8a7320c0a818da0ddac1bc3910fc1b60a (diff) | |
download | chromium_src-108c2a1d2780d49121e16b18a29580ef4d28c790.zip chromium_src-108c2a1d2780d49121e16b18a29580ef4d28c790.tar.gz chromium_src-108c2a1d2780d49121e16b18a29580ef4d28c790.tar.bz2 |
Porting the browser tests to Unix.
The browser tests are an alternative to UI tests.
They provide a way to exercise the browser from within the test (without having the test and the browser running in different processes).
In order to ensure atexit hanlders are run after each tests and static initializers start fresh for each test, each test is run in a new process (on Linux and Mac). On Windows, a DLL containing the test is loaded/unloaded for each tests.
BUG=None
TEST=Run the browser tests.
Review URL: http://codereview.chromium.org/115896
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17781 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/native_library_win.cc')
-rw-r--r-- | base/native_library_win.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/base/native_library_win.cc b/base/native_library_win.cc index cf477fe..459e2ff 100644 --- a/base/native_library_win.cc +++ b/base/native_library_win.cc @@ -8,6 +8,7 @@ #include "base/file_path.h" #include "base/path_service.h" +#include "base/string_util.h" namespace base { @@ -39,8 +40,13 @@ void UnloadNativeLibrary(NativeLibrary library) { // static void* GetFunctionPointerFromNativeLibrary(NativeLibrary library, - NativeLibraryFunctionNameType name) { + const char* name) { return GetProcAddress(library, name); } +// static +string16 GetNativeLibraryName(const string16& name) { + return name + ASCIIToUTF16(".dll"); +} + } // namespace base |