Index: base/mac_util_unittest.cc |
diff --git a/base/mac_util_unittest.cc b/base/mac_util_unittest.cc |
index 538b1e75e1d6321c20f89c321de176cabe50e951..18b8b5ee4410dee270aff73f1154e8dd8f6de0e6 100644 |
--- a/base/mac_util_unittest.cc |
+++ b/base/mac_util_unittest.cc |
@@ -6,6 +6,7 @@ |
#include <ApplicationServices/ApplicationServices.h> |
+#include "base/file_path.h" |
#include "testing/gtest/include/gtest/gtest.h" |
#include "testing/platform_test.h" |
@@ -18,3 +19,9 @@ TEST_F(MacUtilTest, TestFSRef) { |
ASSERT_TRUE(mac_util::FSRefFromPath(path, &ref)); |
EXPECT_EQ(path, mac_util::PathFromFSRef(ref)); |
} |
+ |
+TEST_F(MacUtilTest, TestLibraryPath) { |
+ FilePath library_dir = mac_util::GetUserLibraryPath(); |
+ // Make sure the string isn't empty. |
+ EXPECT_FALSE(library_dir.value().empty()); |
+} |