summaryrefslogtreecommitdiffstats
path: root/base/mac_util_unittest.cc
diff options
context:
space:
mode:
authorjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-31 20:18:49 +0000
committerjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-31 20:18:49 +0000
commit4dfae51bf8db229251104bc71ae14237a5989e1c (patch)
tree9b68c5d3803d389dbb84edd36d9b1e4f5afded03 /base/mac_util_unittest.cc
parentcb69ca0e206805c4a4a4cdef2db44fb196820c2a (diff)
downloadchromium_src-4dfae51bf8db229251104bc71ae14237a5989e1c.zip
chromium_src-4dfae51bf8db229251104bc71ae14237a5989e1c.tar.gz
chromium_src-4dfae51bf8db229251104bc71ae14237a5989e1c.tar.bz2
First cut at Safari Import - Home Page & History Only.
Review URL: http://codereview.chromium.org/159668 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22179 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/mac_util_unittest.cc')
-rw-r--r--base/mac_util_unittest.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/base/mac_util_unittest.cc b/base/mac_util_unittest.cc
index 538b1e7..18b8b5e 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());
+}