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

Unified Diff: chrome/test/ui/ui_test.cc

Issue 16392011: Move FileEnumerator to its own file, do some refactoring. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix incorrect includes Created 7 years, 6 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/reliability/page_load_test.cc ('k') | chrome/test/webdriver/webdriver_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/ui/ui_test.cc
diff --git a/chrome/test/ui/ui_test.cc b/chrome/test/ui/ui_test.cc
index a7672982b4f182847a4add4ed23671224b00daa7..84391fc6778e5a98a5149263f952f5de0ba7fb77 100644
--- a/chrome/test/ui/ui_test.cc
+++ b/chrome/test/ui/ui_test.cc
@@ -17,6 +17,7 @@
#include "base/command_line.h"
#include "base/environment.h"
#include "base/file_util.h"
+#include "base/files/file_enumerator.h"
#include "base/files/file_path.h"
#include "base/files/scoped_temp_dir.h"
#include "base/json/json_file_value_serializer.h"
@@ -426,11 +427,9 @@ int UITestBase::GetCrashCount() const {
PathService::Get(chrome::DIR_CRASH_DUMPS, &crash_dump_path);
int files_found = 0;
- file_util::FileEnumerator en(crash_dump_path, false,
- file_util::FileEnumerator::FILES);
+ base::FileEnumerator en(crash_dump_path, false, base::FileEnumerator::FILES);
while (!en.Next().empty()) {
- file_util::FileEnumerator::FindInfo info;
- if (file_util::FileEnumerator::GetLastModifiedTime(info) > test_start_time_)
+ if (en.GetInfo().GetLastModifiedTime() > test_start_time_)
files_found++;
}
@@ -439,7 +438,7 @@ int UITestBase::GetCrashCount() const {
return files_found / 2;
#else
return files_found;
- #endif
+#endif
}
std::string UITestBase::CheckErrorsAndCrashes() const {
« no previous file with comments | « chrome/test/reliability/page_load_test.cc ('k') | chrome/test/webdriver/webdriver_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698