| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/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 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 void SimulateThrottledImpl(sessions::SyncSession* session, | 45 void SimulateThrottledImpl(sessions::SyncSession* session, |
| 46 const base::TimeDelta& delta) { | 46 const base::TimeDelta& delta) { |
| 47 session->delegate()->OnSilencedUntil(base::TimeTicks::Now() + delta); | 47 session->delegate()->OnSilencedUntil(base::TimeTicks::Now() + delta); |
| 48 } | 48 } |
| 49 | 49 |
| 50 void SimulatePollIntervalUpdateImpl(sessions::SyncSession* session, | 50 void SimulatePollIntervalUpdateImpl(sessions::SyncSession* session, |
| 51 const base::TimeDelta& new_poll) { | 51 const base::TimeDelta& new_poll) { |
| 52 session->delegate()->OnReceivedLongPollIntervalUpdate(new_poll); | 52 session->delegate()->OnReceivedLongPollIntervalUpdate(new_poll); |
| 53 } | 53 } |
| 54 | 54 |
| 55 void SimulateSessionsCommitDelayUpdateImpl(sessions::SyncSession* session, |
| 56 const base::TimeDelta& new_delay) { |
| 57 session->delegate()->OnReceivedSessionsCommitDelay(new_delay); |
| 58 } |
| 59 |
| 55 } // namespace test_util | 60 } // namespace test_util |
| 56 } // namespace sessions | 61 } // namespace sessions |
| 57 } // namespace browser_sync | 62 } // namespace browser_sync |
| OLD | NEW |