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

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

Issue 18499: Replace cases of Append(FILE_PATH_LITERAL()) with AppendASCII(""). (Closed)
Patch Set: Created 11 years, 11 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/user_script_master_unittest.cc
diff --git a/chrome/browser/extensions/user_script_master_unittest.cc b/chrome/browser/extensions/user_script_master_unittest.cc
index 4c11661ee6f57d825929f9e29f693d19237d72c0..0fa1932e656f0f6bb6248d8f5924957c08a20fc4 100644
--- a/chrome/browser/extensions/user_script_master_unittest.cc
+++ b/chrome/browser/extensions/user_script_master_unittest.cc
@@ -25,7 +25,7 @@ class UserScriptMasterTest : public testing::Test,
// Name a subdirectory of the temp directory.
FilePath tmp_dir;
ASSERT_TRUE(PathService::Get(base::DIR_TEMP, &tmp_dir));
- script_dir_ = tmp_dir.Append(FILE_PATH_LITERAL("UserScriptTest"));
+ script_dir_ = tmp_dir.AppendASCII("UserScriptTest");
// Create a fresh, empty copy of this directory.
file_util::Delete(script_dir_, true);
@@ -87,7 +87,7 @@ TEST_F(UserScriptMasterTest, NewScripts) {
scoped_refptr<UserScriptMaster> master(
new UserScriptMaster(MessageLoop::current(), script_dir_));
- FilePath path = script_dir_.Append(FILE_PATH_LITERAL("script.user.js"));
+ FilePath path = script_dir_.AppendASCII("script.user.js");
FILE* file = file_util::OpenFile(path, "w");
const char content[] = "some content";
@@ -101,7 +101,7 @@ TEST_F(UserScriptMasterTest, NewScripts) {
// Test that we get notified about scripts if they're already in the test dir.
TEST_F(UserScriptMasterTest, ExistingScripts) {
- FilePath path = script_dir_.Append(FILE_PATH_LITERAL("script.user.js"));
+ FilePath path = script_dir_.AppendASCII("script.user.js");
FILE* file = file_util::OpenFile(path, "w");
const char content[] = "some content";
« no previous file with comments | « chrome/browser/extensions/extensions_service.cc ('k') | chrome/browser/history/starred_url_database_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698