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

Unified Diff: base/scoped_native_library_unittest.cc

Issue 2048523002: Fix base::GetNativeLibraryName() for Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@native_lib_clean
Patch Set: Address comments, merge variables. Created 4 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/scoped_native_library_unittest.cc
diff --git a/base/scoped_native_library_unittest.cc b/base/scoped_native_library_unittest.cc
index 204aadb983e07cfe51ae8dd0f07d93690d31d84b..d072e31c02dc40ffb198e2b9d4f680004062ce01 100644
--- a/base/scoped_native_library_unittest.cc
+++ b/base/scoped_native_library_unittest.cc
@@ -9,6 +9,7 @@
#if defined(OS_WIN)
#include "base/files/file_path.h"
+#include "base/strings/utf_string_conversions.h"
#endif
namespace base {
@@ -27,7 +28,7 @@ TEST(ScopedNativeLibrary, Basic) {
const char kFunctionName[] = "DirectDrawCreate";
NativeLibrary native_library;
{
- FilePath path(GetNativeLibraryName(L"ddraw"));
+ FilePath path(base::ASCIIToUTF16(GetNativeLibraryName("ddraw")));
Mark Mentovai 2016/06/13 19:29:03 FilePath::FromUTF16Unsafe()?
Lei Zhang 2016/06/13 21:30:34 I might as well skip the ASCIIToUTF16() bit and us
native_library = LoadNativeLibrary(path, NULL);
ScopedNativeLibrary library(native_library);
EXPECT_TRUE(library.is_valid());

Powered by Google App Engine
This is Rietveld 408576698