| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 | 82 |
| 83 virtual void SetUp() OVERRIDE { | 83 virtual void SetUp() OVERRIDE { |
| 84 // TODO(tzik): Set up TestExtensionSystem to support simulated relaunch. | 84 // TODO(tzik): Set up TestExtensionSystem to support simulated relaunch. |
| 85 | 85 |
| 86 RegisterSyncableFileSystem(); | 86 RegisterSyncableFileSystem(); |
| 87 local_sync_service_.reset(new LocalFileSyncService(&profile_)); | 87 local_sync_service_.reset(new LocalFileSyncService(&profile_)); |
| 88 | 88 |
| 89 fake_drive_service_ = new ::drive::FakeDriveService(); | 89 fake_drive_service_ = new ::drive::FakeDriveService(); |
| 90 fake_drive_service_->Initialize(&profile_); | 90 fake_drive_service_->Initialize(&profile_); |
| 91 ASSERT_TRUE(fake_drive_service_->LoadAccountMetadataForWapi( | 91 ASSERT_TRUE(fake_drive_service_->LoadAccountMetadataForWapi( |
| 92 "chromeos/sync_file_system/account_metadata.json")); | 92 "sync_file_system/account_metadata.json")); |
| 93 ASSERT_TRUE(fake_drive_service_->LoadResourceListForWapi( | 93 ASSERT_TRUE(fake_drive_service_->LoadResourceListForWapi( |
| 94 "chromeos/gdata/root_feed.json")); | 94 "gdata/root_feed.json")); |
| 95 | 95 |
| 96 drive_uploader_ = new ::drive::DriveUploader( | 96 drive_uploader_ = new ::drive::DriveUploader( |
| 97 fake_drive_service_, base::MessageLoopProxy::current().get()); | 97 fake_drive_service_, base::MessageLoopProxy::current().get()); |
| 98 | 98 |
| 99 fake_drive_helper_.reset(new drive::FakeDriveServiceHelper( | 99 fake_drive_helper_.reset(new drive::FakeDriveServiceHelper( |
| 100 fake_drive_service_, drive_uploader_)); | 100 fake_drive_service_, drive_uploader_)); |
| 101 | 101 |
| 102 bool done = false; | 102 bool done = false; |
| 103 SyncStatusCode status = SYNC_STATUS_UNKNOWN; | 103 SyncStatusCode status = SYNC_STATUS_UNKNOWN; |
| 104 bool created = false; | 104 bool created = false; |
| (...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 622 ASSERT_FALSE(IsDriveAPIDisabled()); | 622 ASSERT_FALSE(IsDriveAPIDisabled()); |
| 623 TestRemoteFileDeletion(); | 623 TestRemoteFileDeletion(); |
| 624 } | 624 } |
| 625 | 625 |
| 626 TEST_F(DriveFileSyncServiceSyncTest, RemoteFileDeletionTest_WAPI) { | 626 TEST_F(DriveFileSyncServiceSyncTest, RemoteFileDeletionTest_WAPI) { |
| 627 ScopedDisableDriveAPI disable_drive_api; | 627 ScopedDisableDriveAPI disable_drive_api; |
| 628 TestRemoteFileDeletion(); | 628 TestRemoteFileDeletion(); |
| 629 } | 629 } |
| 630 | 630 |
| 631 } // namespace sync_file_system | 631 } // namespace sync_file_system |
| OLD | NEW |