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

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: Move AsAbsolute back out of FilePath Created 7 years, 9 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 cb9260f49939cf66823294c659a3b82ef478fe00..fc74de4c8a29aae6775f6cfd097bea2d2351e74d 100644
--- a/chrome/common/extensions/extension_file_util_unittest.cc
+++ b/chrome/common/extensions/extension_file_util_unittest.cc
@@ -303,9 +303,10 @@ TEST_F(ExtensionFileUtilTest, ExtensionURLToRelativeFilePath) {
TEST_F(ExtensionFileUtilTest, ExtensionResourceURLToFilePath) {
// Setup filesystem for testing.
base::FilePath root_path;
- ASSERT_TRUE(file_util::CreateNewTempDirectory(
- FILE_PATH_LITERAL(""), &root_path));
- ASSERT_TRUE(file_util::AbsolutePath(&root_path));
+ ASSERT_TRUE(file_util::CreateNewTempDirectory(FILE_PATH_LITERAL(""),
+ &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