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

Unified Diff: chrome/browser/extensions/convert_user_script_unittest.cc

Issue 18286004: Move PathExists to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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: chrome/browser/extensions/convert_user_script_unittest.cc
diff --git a/chrome/browser/extensions/convert_user_script_unittest.cc b/chrome/browser/extensions/convert_user_script_unittest.cc
index cc534f552c646e92ee6efa3228abed428c56abd6..e1d4be183638f1bbfbd82a879c1ddb08480e7164 100644
--- a/chrome/browser/extensions/convert_user_script_unittest.cc
+++ b/chrome/browser/extensions/convert_user_script_unittest.cc
@@ -79,9 +79,9 @@ TEST_F(ExtensionFromUserScript, Basic) {
EXPECT_TRUE(script.emulate_greasemonkey());
// Make sure the files actually exist on disk.
- EXPECT_TRUE(file_util::PathExists(
+ EXPECT_TRUE(base::PathExists(
extension->path().Append(script.js_scripts()[0].relative_path())));
- EXPECT_TRUE(file_util::PathExists(
+ EXPECT_TRUE(base::PathExists(
extension->path().Append(kManifestFilename)));
}
@@ -128,9 +128,9 @@ TEST_F(ExtensionFromUserScript, NoMetadata) {
EXPECT_EQ(expected, script.url_patterns());
// Make sure the files actually exist on disk.
- EXPECT_TRUE(file_util::PathExists(
+ EXPECT_TRUE(base::PathExists(
extension->path().Append(script.js_scripts()[0].relative_path())));
- EXPECT_TRUE(file_util::PathExists(
+ EXPECT_TRUE(base::PathExists(
extension->path().Append(kManifestFilename)));
}
@@ -230,7 +230,7 @@ TEST_F(ExtensionFromUserScript, RunAtDocumentIdle) {
ASSERT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &test_file));
test_file = test_file.AppendASCII("extensions")
.AppendASCII("user_script_run_at_idle.user.js");
- ASSERT_TRUE(file_util::PathExists(test_file)) << test_file.value();
+ ASSERT_TRUE(base::PathExists(test_file)) << test_file.value();
string16 error;
scoped_refptr<Extension> extension(ConvertUserScriptToExtension(

Powered by Google App Engine
This is Rietveld 408576698