OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/sync_file_system_service.h" | 5 #include "chrome/browser/sync_file_system/sync_file_system_service.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
13 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
14 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
15 #include "base/synchronization/waitable_event.h" | 15 #include "base/synchronization/waitable_event.h" |
16 #include "base/thread_task_runner_handle.h" | 16 #include "base/threading/thread_task_runner_handle.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/mock_sync_status_observer.h" | 20 #include "chrome/browser/sync_file_system/local/mock_sync_status_observer.h" |
21 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" | 21 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" |
22 #include "chrome/browser/sync_file_system/mock_remote_file_sync_service.h" | 22 #include "chrome/browser/sync_file_system/mock_remote_file_sync_service.h" |
23 #include "chrome/browser/sync_file_system/sync_callbacks.h" | 23 #include "chrome/browser/sync_file_system/sync_callbacks.h" |
24 #include "chrome/browser/sync_file_system/sync_event_observer.h" | 24 #include "chrome/browser/sync_file_system/sync_event_observer.h" |
25 #include "chrome/browser/sync_file_system/sync_file_metadata.h" | 25 #include "chrome/browser/sync_file_system/sync_file_metadata.h" |
26 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" | 26 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" |
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 base::Bind(&AssignValueAndQuit<SyncFileStatus>, | 483 base::Bind(&AssignValueAndQuit<SyncFileStatus>, |
484 &run_loop, &status, &sync_file_status)); | 484 &run_loop, &status, &sync_file_status)); |
485 run_loop.Run(); | 485 run_loop.Run(); |
486 | 486 |
487 EXPECT_EQ(SYNC_STATUS_OK, status); | 487 EXPECT_EQ(SYNC_STATUS_OK, status); |
488 EXPECT_EQ(SYNC_FILE_STATUS_HAS_PENDING_CHANGES, sync_file_status); | 488 EXPECT_EQ(SYNC_FILE_STATUS_HAS_PENDING_CHANGES, sync_file_status); |
489 } | 489 } |
490 } | 490 } |
491 | 491 |
492 } // namespace sync_file_system | 492 } // namespace sync_file_system |
OLD | NEW |