OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <algorithm> | 5 #include <algorithm> |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
10 #include "chrome/browser/drive/drive_uploader.h" | 10 #include "chrome/browser/drive/drive_uploader.h" |
11 #include "chrome/browser/drive/fake_drive_service.h" | 11 #include "chrome/browser/drive/fake_drive_service.h" |
12 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.
h" | 12 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.
h" |
| 13 #include "chrome/browser/sync_file_system/drive_backend/fake_drive_service_helpe
r.h" |
13 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" | 14 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" |
14 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h" | 15 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h" |
15 #include "chrome/browser/sync_file_system/drive_backend/sync_engine.h" | 16 #include "chrome/browser/sync_file_system/drive_backend/sync_engine.h" |
16 #include "chrome/browser/sync_file_system/drive_backend_v1/fake_drive_service_he
lper.h" | |
17 #include "chrome/browser/sync_file_system/local/canned_syncable_file_system.h" | 17 #include "chrome/browser/sync_file_system/local/canned_syncable_file_system.h" |
18 #include "chrome/browser/sync_file_system/local/local_file_sync_context.h" | 18 #include "chrome/browser/sync_file_system/local/local_file_sync_context.h" |
19 #include "chrome/browser/sync_file_system/local/local_file_sync_service.h" | 19 #include "chrome/browser/sync_file_system/local/local_file_sync_service.h" |
20 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" | 20 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" |
21 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" | 21 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" |
22 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" | 22 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" |
23 #include "chrome/test/base/testing_profile.h" | 23 #include "chrome/test/base/testing_profile.h" |
24 #include "content/public/test/test_browser_thread.h" | 24 #include "content/public/test/test_browser_thread.h" |
25 #include "content/public/test/test_browser_thread_bundle.h" | 25 #include "content/public/test/test_browser_thread_bundle.h" |
26 #include "extensions/common/extension.h" | 26 #include "extensions/common/extension.h" |
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 EXPECT_TRUE(GetFileIDByPath(app_id, base::FilePath(path), &file_id)); | 473 EXPECT_TRUE(GetFileIDByPath(app_id, base::FilePath(path), &file_id)); |
474 EXPECT_EQ(google_apis::HTTP_NO_CONTENT, | 474 EXPECT_EQ(google_apis::HTTP_NO_CONTENT, |
475 fake_drive_service_helper()->DeleteResource(file_id)); | 475 fake_drive_service_helper()->DeleteResource(file_id)); |
476 | 476 |
477 EXPECT_EQ(SYNC_STATUS_OK, ProcessChangesUntilDone()); | 477 EXPECT_EQ(SYNC_STATUS_OK, ProcessChangesUntilDone()); |
478 VerifyConsistency(); | 478 VerifyConsistency(); |
479 } | 479 } |
480 | 480 |
481 } // namespace drive_backend | 481 } // namespace drive_backend |
482 } // namespace sync_file_system | 482 } // namespace sync_file_system |
OLD | NEW |