Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(708)

Side by Side Diff: chrome/browser/sync/sessions/test_util.cc

Issue 7604019: [Sync] Add client-side plumbing for server control of sessions commit delay (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile error and address comments Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/sync/sessions/test_util.h ('k') | chrome/test/sync/engine/syncer_command_test.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/sync/sessions/test_util.h ('k') | chrome/test/sync/engine/syncer_command_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698