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()); |