diff options
author | avi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-11 14:55:12 +0000 |
---|---|---|
committer | avi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-11 14:55:12 +0000 |
commit | 0b733220c5fbef986647fce040c1b5d5e48be2b6 (patch) | |
tree | 72caaec198bd07c1e468c2a4805b00067da78126 /chrome/browser/printing | |
parent | 64596e5e583f0c64124da1a79e496d6e063c25fa (diff) | |
download | chromium_src-0b733220c5fbef986647fce040c1b5d5e48be2b6.zip chromium_src-0b733220c5fbef986647fce040c1b5d5e48be2b6.tar.gz chromium_src-0b733220c5fbef986647fce040c1b5d5e48be2b6.tar.bz2 |
Move file enumeration to filepaths.
Review URL: http://codereview.chromium.org/13315
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6784 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/printing')
-rw-r--r-- | chrome/browser/printing/printing_layout_uitest.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/printing/printing_layout_uitest.cc b/chrome/browser/printing/printing_layout_uitest.cc index 213e199..8a15aa4 100644 --- a/chrome/browser/printing/printing_layout_uitest.cc +++ b/chrome/browser/printing/printing_layout_uitest.cc @@ -332,14 +332,15 @@ class PrintingLayoutTest : public PrintingTest<UITest> { bool found_emf = false; bool found_prn = false; for (int i = 0; i < 100; ++i) { - file_util::FileEnumerator enumerator(emf_path(), false, - file_util::FileEnumerator::FILES); + file_util::FileEnumerator enumerator( + FilePath::FromWStringHack(emf_path()), false, + file_util::FileEnumerator::FILES); emf_file.clear(); prn_file.clear(); found_emf = false; found_prn = false; std::wstring file; - while (!(file = enumerator.Next()).empty()) { + while (!(file = enumerator.Next().ToWStringHack()).empty()) { std::wstring ext = file_util::GetFileExtensionFromPath(file); if (!_wcsicmp(ext.c_str(), L"emf")) { EXPECT_FALSE(found_emf) << "Found a leftover .EMF file: \"" << |