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

Unified Diff: base/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: rebase 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
« no previous file with comments | « base/native_library_posix.cc ('k') | base/native_library_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/native_library_unittest.cc
diff --git a/base/native_library_unittest.cc b/base/native_library_unittest.cc
index 237a46fa2e7d740e3d83ead5f6475ef8e38d043b..c189f56e995c04598df5bf2d85c1a882dcafd629 100644
--- a/base/native_library_unittest.cc
+++ b/base/native_library_unittest.cc
@@ -4,7 +4,6 @@
#include "base/files/file_path.h"
#include "base/native_library.h"
-#include "base/strings/utf_string_conversions.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace base {
@@ -28,14 +27,13 @@ TEST(NativeLibraryTest, GetNativeLibraryName) {
#if defined(OS_IOS)
"mylib";
#elif defined(OS_MACOSX)
- "mylib.dylib";
+ "libmylib.dylib";
#elif defined(OS_POSIX)
"libmylib.so";
#elif defined(OS_WIN)
"mylib.dll";
#endif
- EXPECT_EQ(ASCIIToUTF16(kExpectedName),
- GetNativeLibraryName(ASCIIToUTF16("mylib")));
+ EXPECT_EQ(kExpectedName, GetNativeLibraryName("mylib"));
}
} // namespace base
« no previous file with comments | « base/native_library_posix.cc ('k') | base/native_library_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698