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: content/browser/child_process_security_policy_unittest.cc

Issue 12286020: Replace FilePath with base::FilePath. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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
« no previous file with comments | « chrome/test/webdriver/commands/chrome_commands.cc ('k') | content/browser/download/file_metadata_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/child_process_security_policy_unittest.cc
diff --git a/content/browser/child_process_security_policy_unittest.cc b/content/browser/child_process_security_policy_unittest.cc
index 2a6a381b21e922ef8350c5814f4f1655a6190875..d9a444682b74b8b43e3b883b7e43e7767c920b37 100644
--- a/content/browser/child_process_security_policy_unittest.cc
+++ b/content/browser/child_process_security_policy_unittest.cc
@@ -354,20 +354,22 @@ TEST_F(ChildProcessSecurityPolicyTest, CanReadDirectories) {
}
TEST_F(ChildProcessSecurityPolicyTest, FilePermissions) {
- base::FilePath granted_file = FilePath(TEST_PATH("/home/joe"));
- base::FilePath sibling_file = FilePath(TEST_PATH("/home/bob"));
- base::FilePath child_file = FilePath(TEST_PATH("/home/joe/file"));
- base::FilePath parent_file = FilePath(TEST_PATH("/home"));
- base::FilePath parent_slash_file = FilePath(TEST_PATH("/home/"));
- base::FilePath child_traversal1 = FilePath(TEST_PATH("/home/joe/././file"));
- base::FilePath child_traversal2 = FilePath(
+ base::FilePath granted_file = base::FilePath(TEST_PATH("/home/joe"));
+ base::FilePath sibling_file = base::FilePath(TEST_PATH("/home/bob"));
+ base::FilePath child_file = base::FilePath(TEST_PATH("/home/joe/file"));
+ base::FilePath parent_file = base::FilePath(TEST_PATH("/home"));
+ base::FilePath parent_slash_file = base::FilePath(TEST_PATH("/home/"));
+ base::FilePath child_traversal1 =
+ base::FilePath(TEST_PATH("/home/joe/././file"));
+ base::FilePath child_traversal2 = base::FilePath(
TEST_PATH("/home/joe/file/../otherfile"));
base::FilePath evil_traversal1 =
- FilePath(TEST_PATH("/home/joe/../../etc/passwd"));
- base::FilePath evil_traversal2 = FilePath(
+ base::FilePath(TEST_PATH("/home/joe/../../etc/passwd"));
+ base::FilePath evil_traversal2 = base::FilePath(
TEST_PATH("/home/joe/./.././../etc/passwd"));
- base::FilePath self_traversal = FilePath(TEST_PATH("/home/joe/../joe/file"));
- base::FilePath relative_file = FilePath(FILE_PATH_LITERAL("home/joe"));
+ base::FilePath self_traversal =
+ base::FilePath(TEST_PATH("/home/joe/../joe/file"));
+ base::FilePath relative_file = base::FilePath(FILE_PATH_LITERAL("home/joe"));
ChildProcessSecurityPolicyImpl* p =
ChildProcessSecurityPolicyImpl::GetInstance();
« no previous file with comments | « chrome/test/webdriver/commands/chrome_commands.cc ('k') | content/browser/download/file_metadata_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698