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 "chrome/browser/sync/sessions/test_util.h" | 5 #include "sync/sessions/test_util.h" |
6 | 6 |
7 namespace browser_sync { | 7 namespace browser_sync { |
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 } |
(...skipping 30 matching lines...) Expand all Loading... |
46 } | 46 } |
47 | 47 |
48 void SimulateSessionsCommitDelayUpdateImpl(sessions::SyncSession* session, | 48 void SimulateSessionsCommitDelayUpdateImpl(sessions::SyncSession* session, |
49 const base::TimeDelta& new_delay) { | 49 const base::TimeDelta& new_delay) { |
50 session->delegate()->OnReceivedSessionsCommitDelay(new_delay); | 50 session->delegate()->OnReceivedSessionsCommitDelay(new_delay); |
51 } | 51 } |
52 | 52 |
53 } // namespace test_util | 53 } // namespace test_util |
54 } // namespace sessions | 54 } // namespace sessions |
55 } // namespace browser_sync | 55 } // namespace browser_sync |
OLD | NEW |