| 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 "sync/sessions/test_util.h" | 5 #include "sync/sessions/test_util.h" |
| 6 | 6 |
| 7 namespace csync { | 7 namespace syncer { |
| 8 namespace sessions { | 8 namespace sessions { |
| 9 namespace test_util { | 9 namespace test_util { |
| 10 | 10 |
| 11 void SimulateHasMoreToSync(sessions::SyncSession* session, | 11 void SimulateHasMoreToSync(sessions::SyncSession* session, |
| 12 SyncerStep begin, SyncerStep end) { | 12 SyncerStep begin, SyncerStep end) { |
| 13 session->mutable_status_controller()->update_conflicts_resolved(true); | 13 session->mutable_status_controller()->update_conflicts_resolved(true); |
| 14 ASSERT_TRUE(session->HasMoreToSync()); | 14 ASSERT_TRUE(session->HasMoreToSync()); |
| 15 } | 15 } |
| 16 | 16 |
| 17 void SimulateDownloadUpdatesFailed(sessions::SyncSession* session, | 17 void SimulateDownloadUpdatesFailed(sessions::SyncSession* session, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 session->delegate()->OnReceivedLongPollIntervalUpdate(new_poll); | 56 session->delegate()->OnReceivedLongPollIntervalUpdate(new_poll); |
| 57 } | 57 } |
| 58 | 58 |
| 59 void SimulateSessionsCommitDelayUpdateImpl(sessions::SyncSession* session, | 59 void SimulateSessionsCommitDelayUpdateImpl(sessions::SyncSession* session, |
| 60 const base::TimeDelta& new_delay) { | 60 const base::TimeDelta& new_delay) { |
| 61 session->delegate()->OnReceivedSessionsCommitDelay(new_delay); | 61 session->delegate()->OnReceivedSessionsCommitDelay(new_delay); |
| 62 } | 62 } |
| 63 | 63 |
| 64 } // namespace test_util | 64 } // namespace test_util |
| 65 } // namespace sessions | 65 } // namespace sessions |
| 66 } // namespace csync | 66 } // namespace syncer |
| OLD | NEW |