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.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/model_type_invalidation_map_test_util.h" | 14 #include "sync/internal_api/public/base/model_type_invalidation_map_test_util.h" |
15 #include "sync/sessions/test_util.h" | 15 #include "sync/sessions/test_util.h" |
16 #include "sync/test/callback_counter.h" | 16 #include "sync/test/callback_counter.h" |
17 #include "sync/test/engine/fake_model_worker.h" | 17 #include "sync/test/engine/fake_model_worker.h" |
18 #include "sync/test/engine/mock_connection_manager.h" | 18 #include "sync/test/engine/mock_connection_manager.h" |
19 #include "sync/test/engine/test_directory_setter_upper.h" | 19 #include "sync/test/engine/test_directory_setter_upper.h" |
(...skipping 1284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1304 // poll once more | 1304 // poll once more |
1305 EXPECT_CALL(*syncer(), PollSyncShare(_,_)) | 1305 EXPECT_CALL(*syncer(), PollSyncShare(_,_)) |
1306 .WillOnce(DoAll(Invoke(sessions::test_util::SimulatePollSuccess), | 1306 .WillOnce(DoAll(Invoke(sessions::test_util::SimulatePollSuccess), |
1307 WithArg<1>(RecordSyncShare(&records)))); | 1307 WithArg<1>(RecordSyncShare(&records)))); |
1308 scheduler()->OnCredentialsUpdated(); | 1308 scheduler()->OnCredentialsUpdated(); |
1309 connection()->SetServerStatus(HttpResponse::SERVER_CONNECTION_OK); | 1309 connection()->SetServerStatus(HttpResponse::SERVER_CONNECTION_OK); |
1310 StopSyncScheduler(); | 1310 StopSyncScheduler(); |
1311 } | 1311 } |
1312 | 1312 |
1313 } // namespace syncer | 1313 } // namespace syncer |
OLD | NEW |