summaryrefslogtreecommitdiffstats
path: root/content/browser/child_process_security_policy_unittest.cc
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-16 06:26:31 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-16 06:26:31 +0000
commitc42de73d768e53ea90903357ced6ef6001fb7b2f (patch)
treee3df82e3ce2194a069f5c26c0784ed56cb26b231 /content/browser/child_process_security_policy_unittest.cc
parenta6ba33f4132b66b3e11d26f43eecde12e5a0bbc9 (diff)
downloadchromium_src-c42de73d768e53ea90903357ced6ef6001fb7b2f.zip
chromium_src-c42de73d768e53ea90903357ced6ef6001fb7b2f.tar.gz
chromium_src-c42de73d768e53ea90903357ced6ef6001fb7b2f.tar.bz2
Replace all FilePath with base::FilePath in content.
This is im preparation for removing the 'using" in file_path.h Review URL: https://codereview.chromium.org/12226120 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182940 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/child_process_security_policy_unittest.cc')
-rw-r--r--content/browser/child_process_security_policy_unittest.cc22
1 files changed, 12 insertions, 10 deletions
diff --git a/content/browser/child_process_security_policy_unittest.cc b/content/browser/child_process_security_policy_unittest.cc
index 2a6a381..da56188 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 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();