| 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 "base/message_loop.h" | 7 #include "base/message_loop.h" |
| 8 #include "chrome/browser/sync_file_system/drive_metadata_store.h" | 8 #include "chrome/browser/sync_file_system/drive_metadata_store.h" |
| 9 #include "chrome/browser/sync_file_system/fake_drive_file_sync_client.h" | 9 #include "chrome/browser/sync_file_system/fake_drive_file_sync_client.h" |
| 10 #include "chrome/browser/sync_file_system/sync_file_system.pb.h" | 10 #include "chrome/browser/sync_file_system/sync_file_system.pb.h" |
| 11 #include "chrome/test/base/testing_profile.h" | 11 #include "chrome/test/base/testing_profile.h" |
| 12 #include "content/public/test/test_browser_thread.h" | 12 #include "content/public/test/test_browser_thread.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 #include "webkit/fileapi/syncable/syncable_file_system_util.h" | 14 #include "webkit/browser/fileapi/syncable/syncable_file_system_util.h" |
| 15 | 15 |
| 16 namespace sync_file_system { | 16 namespace sync_file_system { |
| 17 | 17 |
| 18 namespace { | 18 namespace { |
| 19 | 19 |
| 20 const char* kServiceName = DriveFileSyncService::kServiceName; | 20 const char* kServiceName = DriveFileSyncService::kServiceName; |
| 21 const char kSyncRootResourceId[] = "folder:sync_root_resource_id"; | 21 const char kSyncRootResourceId[] = "folder:sync_root_resource_id"; |
| 22 | 22 |
| 23 void DidInitialize(bool* done, SyncStatusCode status, bool created) { | 23 void DidInitialize(bool* done, SyncStatusCode status, bool created) { |
| 24 EXPECT_EQ(SYNC_STATUS_OK, status); | 24 EXPECT_EQ(SYNC_STATUS_OK, status); |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 base::Bind(&ExpectEqStatus, &done, SYNC_STATUS_OK)); | 122 base::Bind(&ExpectEqStatus, &done, SYNC_STATUS_OK)); |
| 123 message_loop()->RunUntilIdle(); | 123 message_loop()->RunUntilIdle(); |
| 124 EXPECT_TRUE(done); | 124 EXPECT_TRUE(done); |
| 125 | 125 |
| 126 // Assert the App's origin folder was marked as deleted. | 126 // Assert the App's origin folder was marked as deleted. |
| 127 EXPECT_TRUE(fake_sync_client()->remote_resources() | 127 EXPECT_TRUE(fake_sync_client()->remote_resources() |
| 128 .find(origin_dir_resource_id)->second.deleted); | 128 .find(origin_dir_resource_id)->second.deleted); |
| 129 } | 129 } |
| 130 | 130 |
| 131 } // namespace sync_file_system | 131 } // namespace sync_file_system |
| OLD | NEW |