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

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

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_file_sync_service.h" 5 #include "chrome/browser/sync_file_system/drive_file_sync_service.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/format_macros.h" 9 #include "base/format_macros.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 300
301 for (RemoteResourceMap::const_iterator itr = remote_resources.begin(); 301 for (RemoteResourceMap::const_iterator itr = remote_resources.begin();
302 itr != remote_resources.end(); ++itr) { 302 itr != remote_resources.end(); ++itr) {
303 if (!itr->second.deleted) 303 if (!itr->second.deleted)
304 EXPECT_TRUE(ContainsKey(local_resources, itr->first)); 304 EXPECT_TRUE(ContainsKey(local_resources, itr->first));
305 else 305 else
306 EXPECT_FALSE(ContainsKey(local_resources, itr->first)); 306 EXPECT_FALSE(ContainsKey(local_resources, itr->first));
307 } 307 }
308 } 308 }
309 309
310 MessageLoop message_loop_; 310 base::MessageLoop message_loop_;
311 content::TestBrowserThread ui_thread_; 311 content::TestBrowserThread ui_thread_;
312 content::TestBrowserThread file_thread_; 312 content::TestBrowserThread file_thread_;
313 313
314 TestingProfile profile_; 314 TestingProfile profile_;
315 base::FilePath base_dir_; 315 base::FilePath base_dir_;
316 316
317 FakeDriveFileSyncClient* fake_sync_client_; // Owned by |sync_service_|. 317 FakeDriveFileSyncClient* fake_sync_client_; // Owned by |sync_service_|.
318 scoped_ptr<FakeRemoteChangeProcessor> fake_remote_processor_; 318 scoped_ptr<FakeRemoteChangeProcessor> fake_remote_processor_;
319 DriveMetadataStore* metadata_store_; // Owned by |sync_service_|. 319 DriveMetadataStore* metadata_store_; // Owned by |sync_service_|.
320 320
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 CreateRemoteFileAddOrUpdateEvent(kFile1), 389 CreateRemoteFileAddOrUpdateEvent(kFile1),
390 390
391 CreateFetchEvent(), 391 CreateFetchEvent(),
392 CreateProcessRemoteChangeEvent(), 392 CreateProcessRemoteChangeEvent(),
393 CreateRelaunchEvent(), 393 CreateRelaunchEvent(),
394 }; 394 };
395 RunTest(CreateTestCase(sync_event)); 395 RunTest(CreateTestCase(sync_event));
396 } 396 }
397 397
398 } // namespace sync_file_system 398 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698