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

Unified Diff: chrome/common/extensions/extension_file_util_unittest.cc

Issue 13196006: Move path functions from file_util to FilePath object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: git try Created 7 years, 8 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: chrome/common/extensions/extension_file_util_unittest.cc
diff --git a/chrome/common/extensions/extension_file_util_unittest.cc b/chrome/common/extensions/extension_file_util_unittest.cc
index 6d68bc10b70e043fe7d509e93d26dfbb3acc4477..b113455dfd140b4ad469670fcb9f4c4afbbdccaa 100644
--- a/chrome/common/extensions/extension_file_util_unittest.cc
+++ b/chrome/common/extensions/extension_file_util_unittest.cc
@@ -305,7 +305,8 @@ TEST_F(ExtensionFileUtilTest, ExtensionResourceURLToFilePath) {
base::FilePath root_path;
ASSERT_TRUE(file_util::CreateNewTempDirectory(
base::FilePath::StringType(), &root_path));
- ASSERT_TRUE(file_util::AbsolutePath(&root_path));
+ root_path = base::MakeAbsoluteFilePath(root_path);
+ ASSERT_FALSE(root_path.empty());
base::FilePath api_path = root_path.Append(FILE_PATH_LITERAL("apiname"));
ASSERT_TRUE(file_util::CreateDirectory(api_path));

Powered by Google App Engine
This is Rietveld 408576698