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/bind.h" | 5 #include "base/bind.h" |
6 #include "base/callback.h" | 6 #include "base/callback.h" |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/test/test_timeouts.h" | 10 #include "base/test/test_timeouts.h" |
11 #include "sync/engine/backoff_delay_provider.h" | 11 #include "sync/engine/backoff_delay_provider.h" |
12 #include "sync/engine/sync_scheduler_impl.h" | 12 #include "sync/engine/sync_scheduler_impl.h" |
13 #include "sync/engine/syncer.h" | 13 #include "sync/engine/syncer.h" |
14 #include "sync/internal_api/public/base/cancelation_signal.h" | 14 #include "sync/internal_api/public/base/cancelation_signal.h" |
15 #include "sync/internal_api/public/base/model_type_test_util.h" | 15 #include "sync/internal_api/public/base/model_type_test_util.h" |
16 #include "sync/notifier/invalidation_util.h" | |
17 #include "sync/notifier/object_id_invalidation_map.h" | |
18 #include "sync/sessions/test_util.h" | 16 #include "sync/sessions/test_util.h" |
19 #include "sync/test/callback_counter.h" | 17 #include "sync/test/callback_counter.h" |
20 #include "sync/test/engine/fake_model_worker.h" | 18 #include "sync/test/engine/fake_model_worker.h" |
21 #include "sync/test/engine/mock_connection_manager.h" | 19 #include "sync/test/engine/mock_connection_manager.h" |
22 #include "sync/test/engine/test_directory_setter_upper.h" | 20 #include "sync/test/engine/test_directory_setter_upper.h" |
23 #include "sync/test/mock_invalidation.h" | 21 #include "sync/test/mock_invalidation.h" |
24 #include "sync/util/extensions_activity.h" | 22 #include "sync/util/extensions_activity.h" |
25 #include "testing/gmock/include/gmock/gmock.h" | 23 #include "testing/gmock/include/gmock/gmock.h" |
26 #include "testing/gtest/include/gtest/gtest.h" | 24 #include "testing/gtest/include/gtest/gtest.h" |
27 | 25 |
(...skipping 1361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1389 .WillOnce(DoAll(Invoke(sessions::test_util::SimulateNormalSuccess), | 1387 .WillOnce(DoAll(Invoke(sessions::test_util::SimulateNormalSuccess), |
1390 RecordSyncShare(×))); | 1388 RecordSyncShare(×))); |
1391 | 1389 |
1392 // Run to wait for retrying. | 1390 // Run to wait for retrying. |
1393 RunLoop(); | 1391 RunLoop(); |
1394 | 1392 |
1395 StopSyncScheduler(); | 1393 StopSyncScheduler(); |
1396 } | 1394 } |
1397 | 1395 |
1398 } // namespace syncer | 1396 } // namespace syncer |
OLD | NEW |