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

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: 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) 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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 319
320 for (RemoteResourceMap::const_iterator itr = remote_resources.begin(); 320 for (RemoteResourceMap::const_iterator itr = remote_resources.begin();
321 itr != remote_resources.end(); ++itr) { 321 itr != remote_resources.end(); ++itr) {
322 if (!itr->second.deleted) 322 if (!itr->second.deleted)
323 EXPECT_TRUE(ContainsKey(local_resources, itr->first)); 323 EXPECT_TRUE(ContainsKey(local_resources, itr->first));
324 else 324 else
325 EXPECT_FALSE(ContainsKey(local_resources, itr->first)); 325 EXPECT_FALSE(ContainsKey(local_resources, itr->first));
326 } 326 }
327 } 327 }
328 328
329 MessageLoop message_loop_; 329 base::MessageLoop message_loop_;
330 content::TestBrowserThread ui_thread_; 330 content::TestBrowserThread ui_thread_;
331 content::TestBrowserThread file_thread_; 331 content::TestBrowserThread file_thread_;
332 332
333 TestingProfile profile_; 333 TestingProfile profile_;
334 base::FilePath base_dir_; 334 base::FilePath base_dir_;
335 335
336 drive::FakeAPIUtil* fake_api_util_; // Owned by |sync_service_|. 336 drive::FakeAPIUtil* fake_api_util_; // Owned by |sync_service_|.
337 scoped_ptr<FakeRemoteChangeProcessor> fake_remote_processor_; 337 scoped_ptr<FakeRemoteChangeProcessor> fake_remote_processor_;
338 DriveMetadataStore* metadata_store_; // Owned by |sync_service_|. 338 DriveMetadataStore* metadata_store_; // Owned by |sync_service_|.
339 339
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 TEST_F(DriveFileSyncServiceSyncTest, DeleteDirectoryTest) { 425 TEST_F(DriveFileSyncServiceSyncTest, DeleteDirectoryTest) {
426 std::string kDir = "dir title"; 426 std::string kDir = "dir title";
427 SyncEvent sync_event[] = { 427 SyncEvent sync_event[] = {
428 CreateRemoteDirectoryAddEvent(kDir), 428 CreateRemoteDirectoryAddEvent(kDir),
429 CreateRemoteFileDeleteEvent(kDir), 429 CreateRemoteFileDeleteEvent(kDir),
430 }; 430 };
431 RunTest(CreateTestCase(sync_event)); 431 RunTest(CreateTestCase(sync_event));
432 } 432 }
433 433
434 } // namespace sync_file_system 434 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698