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

Unified Diff: base/mac_util_unittest.cc

Issue 159668: First cut at Safari Import - Home Page & History Only. (Closed)
Patch Set: Fix Stuart's comments. Created 11 years, 5 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/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());
+}

Powered by Google App Engine
This is Rietveld 408576698