| OLD | NEW |
| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 } | 43 } |
| 44 | 44 |
| 45 } // namespace | 45 } // namespace |
| 46 | 46 |
| 47 class DriveFileSyncServiceSyncTest : public testing::Test { | 47 class DriveFileSyncServiceSyncTest : public testing::Test { |
| 48 public: | 48 public: |
| 49 DriveFileSyncServiceSyncTest() | 49 DriveFileSyncServiceSyncTest() |
| 50 : ui_thread_(content::BrowserThread::UI, &message_loop_), | 50 : ui_thread_(content::BrowserThread::UI, &message_loop_), |
| 51 file_thread_(content::BrowserThread::FILE, &message_loop_), | 51 file_thread_(content::BrowserThread::FILE, &message_loop_), |
| 52 fake_api_util_(NULL), | 52 fake_api_util_(NULL), |
| 53 fake_remote_processor_(NULL), | |
| 54 metadata_store_(NULL), | 53 metadata_store_(NULL), |
| 55 resource_count_(0) {} | 54 resource_count_(0) {} |
| 56 | 55 |
| 57 virtual ~DriveFileSyncServiceSyncTest() { | 56 virtual ~DriveFileSyncServiceSyncTest() { |
| 58 } | 57 } |
| 59 | 58 |
| 60 virtual void SetUp() OVERRIDE { | 59 virtual void SetUp() OVERRIDE { |
| 61 SetEnableSyncFSDirectoryOperation(true); | 60 SetEnableSyncFSDirectoryOperation(true); |
| 62 RegisterSyncableFileSystem(); | 61 RegisterSyncableFileSystem(); |
| 63 } | 62 } |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 TEST_F(DriveFileSyncServiceSyncTest, DeleteDirectoryTest) { | 433 TEST_F(DriveFileSyncServiceSyncTest, DeleteDirectoryTest) { |
| 435 std::string kDir = "dir title"; | 434 std::string kDir = "dir title"; |
| 436 SyncEvent sync_event[] = { | 435 SyncEvent sync_event[] = { |
| 437 CreateRemoteDirectoryAddEvent(kDir), | 436 CreateRemoteDirectoryAddEvent(kDir), |
| 438 CreateRemoteFileDeleteEvent(kDir), | 437 CreateRemoteFileDeleteEvent(kDir), |
| 439 }; | 438 }; |
| 440 RunTest(CreateTestCase(sync_event)); | 439 RunTest(CreateTestCase(sync_event)); |
| 441 } | 440 } |
| 442 | 441 |
| 443 } // namespace sync_file_system | 442 } // namespace sync_file_system |
| OLD | NEW |