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

Side by Side Diff: chrome/browser/sync_file_system/drive_metadata_store_unittest.cc

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/sync_file_system/drive_metadata_store.h" 5 #include "chrome/browser/sync_file_system/drive_metadata_store.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/files/scoped_temp_dir.h" 10 #include "base/files/scoped_temp_dir.h"
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 itr != left.end(); ++itr) { 298 itr != left.end(); ++itr) {
299 OriginByResourceId::const_iterator found = right.find(itr->second); 299 OriginByResourceId::const_iterator found = right.find(itr->second);
300 if (found == right.end() || found->second != itr->first) 300 if (found == right.end() || found->second != itr->first)
301 return false; 301 return false;
302 } 302 }
303 return true; 303 return true;
304 } 304 }
305 305
306 base::ScopedTempDir base_dir_; 306 base::ScopedTempDir base_dir_;
307 307
308 MessageLoop message_loop_; 308 base::MessageLoop message_loop_;
309 scoped_ptr<base::Thread> file_thread_; 309 scoped_ptr<base::Thread> file_thread_;
310 310
311 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; 311 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_;
312 scoped_refptr<base::SequencedTaskRunner> file_task_runner_; 312 scoped_refptr<base::SequencedTaskRunner> file_task_runner_;
313 313
314 scoped_ptr<DriveMetadataStore> drive_metadata_store_; 314 scoped_ptr<DriveMetadataStore> drive_metadata_store_;
315 315
316 bool created_; 316 bool created_;
317 317
318 DISALLOW_COPY_AND_ASSIGN(DriveMetadataStoreTest); 318 DISALLOW_COPY_AND_ASSIGN(DriveMetadataStoreTest);
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 metadata_store()->AddIncrementalSyncOrigin(kOrigin1, kResourceId1); 708 metadata_store()->AddIncrementalSyncOrigin(kOrigin1, kResourceId1);
709 VerifyIncrementalSyncOrigin(kOrigin1, kResourceId1); 709 VerifyIncrementalSyncOrigin(kOrigin1, kResourceId1);
710 VerifyReverseMap(); 710 VerifyReverseMap();
711 711
712 metadata_store()->SetOriginRootDirectory(kOrigin1, kResourceId2); 712 metadata_store()->SetOriginRootDirectory(kOrigin1, kResourceId2);
713 VerifyIncrementalSyncOrigin(kOrigin1, kResourceId2); 713 VerifyIncrementalSyncOrigin(kOrigin1, kResourceId2);
714 VerifyReverseMap(); 714 VerifyReverseMap();
715 } 715 }
716 716
717 } // namespace sync_file_system 717 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698