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

Unified Diff: chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc

Issue 187203004: [SyncFS] Improve debug logs of MetadataDatabaseIndex (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | « no previous file | chrome/browser/sync_file_system/drive_backend/metadata_database.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc b/chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc
index f3a7243f199bc41a7cf89eddff78a291e4e76469..1962eeee24c1cc98a9c6beed8ca9213460b3d1a8 100644
--- a/chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc
+++ b/chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc
@@ -345,13 +345,11 @@ class DriveBackendSyncTest : public testing::Test,
folder_id, &remote_entries));
std::map<std::string, const google_apis::ResourceEntry*>
remote_entry_by_title;
- for (ScopedVector<google_apis::ResourceEntry>::iterator itr =
- remote_entries.begin();
- itr != remote_entries.end();
- ++itr) {
- const google_apis::ResourceEntry& remote_entry = **itr;
- EXPECT_FALSE(ContainsKey(remote_entry_by_title, remote_entry.title()));
- remote_entry_by_title[remote_entry.title()] = *itr;
+ for (size_t i = 0; i < remote_entries.size(); ++i) {
+ google_apis::ResourceEntry* remote_entry = remote_entries[i];
+ EXPECT_FALSE(ContainsKey(remote_entry_by_title, remote_entry->title()))
+ << "title: " << remote_entry->title();
+ remote_entry_by_title[remote_entry->title()] = remote_entry;
}
fileapi::FileSystemURL url(CreateURL(app_id, path));
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/drive_backend/metadata_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698