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

Side by Side Diff: sync/test/engine/syncer_command_test.cc

Issue 72403003: sync: Per-type update application (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + fix typo Created 7 years 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 | « sync/test/engine/syncer_command_test.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "sync/test/engine/syncer_command_test.h"
6
7 namespace syncer {
8
9 const unsigned int kMaxMessages = 10;
10 const unsigned int kMaxMessageSize = 5 * 1024;
11
12 void SyncerCommandTestBase::OnThrottled(
13 const base::TimeDelta& throttle_duration) {
14 FAIL() << "Should not get silenced.";
15 }
16
17 void SyncerCommandTestBase::OnTypesThrottled(
18 ModelTypeSet types,
19 const base::TimeDelta& throttle_duration) {
20 FAIL() << "Should not get silenced.";
21 }
22
23 bool SyncerCommandTestBase::IsCurrentlyThrottled() {
24 return false;
25 }
26
27 void SyncerCommandTestBase::OnReceivedLongPollIntervalUpdate(
28 const base::TimeDelta& new_interval) {
29 FAIL() << "Should not get poll interval update.";
30 }
31
32 void SyncerCommandTestBase::OnReceivedShortPollIntervalUpdate(
33 const base::TimeDelta& new_interval) {
34 FAIL() << "Should not get poll interval update.";
35 }
36
37 void SyncerCommandTestBase::OnReceivedSessionsCommitDelay(
38 const base::TimeDelta& new_delay) {
39 FAIL() << "Should not get sessions commit delay.";
40 }
41
42 void SyncerCommandTestBase::OnReceivedClientInvalidationHintBufferSize(
43 int size) {
44 FAIL() << "Should not get hint buffer size.";
45 }
46
47 void SyncerCommandTestBase::OnSyncProtocolError(
48 const sessions::SyncSessionSnapshot& session) {
49 return;
50 }
51 SyncerCommandTestBase::SyncerCommandTestBase()
52 : traffic_recorder_(kMaxMessages, kMaxMessageSize) {
53 }
54
55 SyncerCommandTestBase::~SyncerCommandTestBase() {
56 }
57
58 void SyncerCommandTestBase::SetUp() {
59 extensions_activity_ = new ExtensionsActivity();
60
61 // The session always expects there to be a passive worker.
62 workers()->push_back(
63 make_scoped_refptr(new FakeModelWorker(GROUP_PASSIVE)));
64 ResetContext();
65 }
66
67 void SyncerCommandTestBase::TearDown() {
68 }
69
70 syncable::Directory* SyncerCommandTest::directory() {
71 return dir_maker_.directory();
72 }
73
74 void SyncerCommandTest::SetUp() {
75 dir_maker_.SetUp();
76 SyncerCommandTestBase::SetUp();
77 }
78
79 void SyncerCommandTest::TearDown() {
80 dir_maker_.TearDown();
81 }
82
83 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/test/engine/syncer_command_test.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698