| 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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
| 6 #include "base/bind.h" | 6 #include "base/bind.h" |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/message_loop/message_loop_proxy.h" | 9 #include "base/message_loop/message_loop_proxy.h" |
| 10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| 11 #include "base/stl_util.h" | 11 #include "base/stl_util.h" |
| 12 #include "base/threading/thread.h" | 12 #include "base/threading/thread.h" |
| 13 #include "chrome/browser/sync_file_system/local_file_sync_service.h" | 13 #include "chrome/browser/sync_file_system/local_file_sync_service.h" |
| 14 #include "chrome/browser/sync_file_system/mock_local_change_processor.h" | 14 #include "chrome/browser/sync_file_system/mock_local_change_processor.h" |
| 15 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" | 15 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" |
| 16 #include "chrome/test/base/testing_profile.h" | 16 #include "chrome/test/base/testing_profile.h" |
| 17 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| 19 #include "webkit/fileapi/file_system_context.h" | 19 #include "webkit/browser/fileapi/file_system_context.h" |
| 20 #include "webkit/fileapi/syncable/canned_syncable_file_system.h" | 20 #include "webkit/fileapi/syncable/canned_syncable_file_system.h" |
| 21 #include "webkit/fileapi/syncable/file_change.h" | 21 #include "webkit/fileapi/syncable/file_change.h" |
| 22 #include "webkit/fileapi/syncable/local_file_change_tracker.h" | 22 #include "webkit/fileapi/syncable/local_file_change_tracker.h" |
| 23 #include "webkit/fileapi/syncable/local_file_sync_context.h" | 23 #include "webkit/fileapi/syncable/local_file_sync_context.h" |
| 24 #include "webkit/fileapi/syncable/local_file_sync_status.h" | 24 #include "webkit/fileapi/syncable/local_file_sync_status.h" |
| 25 #include "webkit/fileapi/syncable/mock_sync_status_observer.h" | 25 #include "webkit/fileapi/syncable/mock_sync_status_observer.h" |
| 26 #include "webkit/fileapi/syncable/sync_file_metadata.h" | 26 #include "webkit/fileapi/syncable/sync_file_metadata.h" |
| 27 #include "webkit/fileapi/syncable/sync_status_code.h" | 27 #include "webkit/fileapi/syncable/sync_status_code.h" |
| 28 #include "webkit/fileapi/syncable/syncable_file_system_util.h" | 28 #include "webkit/fileapi/syncable/syncable_file_system_util.h" |
| 29 | 29 |
| (...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 698 all_origins.insert(kOrigin2); | 698 all_origins.insert(kOrigin2); |
| 699 all_origins.insert(kOrigin3); | 699 all_origins.insert(kOrigin3); |
| 700 while (!all_origins.empty()) { | 700 while (!all_origins.empty()) { |
| 701 ASSERT_TRUE(NextOriginToProcess(&origin)); | 701 ASSERT_TRUE(NextOriginToProcess(&origin)); |
| 702 ASSERT_TRUE(ContainsKey(all_origins, origin)); | 702 ASSERT_TRUE(ContainsKey(all_origins, origin)); |
| 703 all_origins.erase(origin); | 703 all_origins.erase(origin); |
| 704 } | 704 } |
| 705 } | 705 } |
| 706 | 706 |
| 707 } // namespace sync_file_system | 707 } // namespace sync_file_system |
| OLD | NEW |