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

Unified Diff: base/native_library_win.cc

Issue 115896: Making the browser tests work on Unix (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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
Index: base/native_library_win.cc
===================================================================
--- base/native_library_win.cc (revision 17736)
+++ base/native_library_win.cc (working copy)
@@ -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 @@
// 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

Powered by Google App Engine
This is Rietveld 408576698