| 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 <stddef.h> |
| 6 |
| 5 #include <vector> | 7 #include <vector> |
| 6 | 8 |
| 7 #include "base/basictypes.h" | |
| 8 #include "base/bind.h" | 9 #include "base/bind.h" |
| 9 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| 10 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
| 11 #include "base/stl_util.h" | 12 #include "base/stl_util.h" |
| 12 #include "base/synchronization/waitable_event.h" | 13 #include "base/synchronization/waitable_event.h" |
| 13 #include "base/thread_task_runner_handle.h" | 14 #include "base/thread_task_runner_handle.h" |
| 14 #include "chrome/browser/sync_file_system/local/canned_syncable_file_system.h" | 15 #include "chrome/browser/sync_file_system/local/canned_syncable_file_system.h" |
| 15 #include "chrome/browser/sync_file_system/local/local_file_sync_context.h" | 16 #include "chrome/browser/sync_file_system/local/local_file_sync_context.h" |
| 16 #include "chrome/browser/sync_file_system/local/local_file_sync_service.h" | 17 #include "chrome/browser/sync_file_system/local/local_file_sync_service.h" |
| 17 #include "chrome/browser/sync_file_system/local/mock_sync_status_observer.h" | 18 #include "chrome/browser/sync_file_system/local/mock_sync_status_observer.h" |
| (...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 base::Bind(&AssignValueAndQuit<SyncFileStatus>, | 482 base::Bind(&AssignValueAndQuit<SyncFileStatus>, |
| 482 &run_loop, &status, &sync_file_status)); | 483 &run_loop, &status, &sync_file_status)); |
| 483 run_loop.Run(); | 484 run_loop.Run(); |
| 484 | 485 |
| 485 EXPECT_EQ(SYNC_STATUS_OK, status); | 486 EXPECT_EQ(SYNC_STATUS_OK, status); |
| 486 EXPECT_EQ(SYNC_FILE_STATUS_HAS_PENDING_CHANGES, sync_file_status); | 487 EXPECT_EQ(SYNC_FILE_STATUS_HAS_PENDING_CHANGES, sync_file_status); |
| 487 } | 488 } |
| 488 } | 489 } |
| 489 | 490 |
| 490 } // namespace sync_file_system | 491 } // namespace sync_file_system |
| OLD | NEW |