summaryrefslogtreecommitdiffstats
path: root/base/file_path_unittest.cc
diff options
context:
space:
mode:
authormark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-03 22:09:44 +0000
committermark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-03 22:09:44 +0000
commita0520bf5f570b43fd9fe916c31ec4ff43fb7240f (patch)
tree7d7d0a1fca945ed156da85567de7dbbd90dc51b3 /base/file_path_unittest.cc
parentb5a38d4451aa0600e358ae2bb9dd605068d0a5a4 (diff)
downloadchromium_src-a0520bf5f570b43fd9fe916c31ec4ff43fb7240f.zip
chromium_src-a0520bf5f570b43fd9fe916c31ec4ff43fb7240f.tar.gz
chromium_src-a0520bf5f570b43fd9fe916c31ec4ff43fb7240f.tar.bz2
Make FilePath::Append accept FilePath parameter. Patch by Paweł Hajdan jr
<phajdan.jr@gmail.com> http://codereview.chromium.org/12907 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6315 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_path_unittest.cc')
-rw-r--r--base/file_path_unittest.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/base/file_path_unittest.cc b/base/file_path_unittest.cc
index 0dee543..ef6239f 100644
--- a/base/file_path_unittest.cc
+++ b/base/file_path_unittest.cc
@@ -273,8 +273,11 @@ TEST(FilePathTest, Append) {
for (size_t i = 0; i < arraysize(cases); ++i) {
FilePath root(cases[i].inputs[0]);
FilePath::StringType leaf(cases[i].inputs[1]);
- FilePath observed = root.Append(leaf);
- EXPECT_EQ(FilePath::StringType(cases[i].expected), observed.value()) <<
+ FilePath observed_str = root.Append(leaf);
+ EXPECT_EQ(FilePath::StringType(cases[i].expected), observed_str.value()) <<
+ "i: " << i << ", root: " << root.value() << ", leaf: " << leaf;
+ FilePath observed_path = root.Append(FilePath(leaf));
+ EXPECT_EQ(FilePath::StringType(cases[i].expected), observed_path.value()) <<
"i: " << i << ", root: " << root.value() << ", leaf: " << leaf;
}
}