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

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

Issue 73623003: Remove SyncSchedulerImpl::OnShouldStopSyncingPermanently (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@FreshToken2.Step1
Patch Set: Created 7 years, 1 month 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
« 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
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/test/engine/syncer_command_test.h" 5 #include "sync/test/engine/syncer_command_test.h"
6 6
7 namespace syncer { 7 namespace syncer {
8 8
9 const unsigned int kMaxMessages = 10; 9 const unsigned int kMaxMessages = 10;
10 const unsigned int kMaxMessageSize = 5 * 1024; 10 const unsigned int kMaxMessageSize = 5 * 1024;
(...skipping 26 matching lines...) Expand all
37 void SyncerCommandTestBase::OnReceivedSessionsCommitDelay( 37 void SyncerCommandTestBase::OnReceivedSessionsCommitDelay(
38 const base::TimeDelta& new_delay) { 38 const base::TimeDelta& new_delay) {
39 FAIL() << "Should not get sessions commit delay."; 39 FAIL() << "Should not get sessions commit delay.";
40 } 40 }
41 41
42 void SyncerCommandTestBase::OnReceivedClientInvalidationHintBufferSize( 42 void SyncerCommandTestBase::OnReceivedClientInvalidationHintBufferSize(
43 int size) { 43 int size) {
44 FAIL() << "Should not get hint buffer size."; 44 FAIL() << "Should not get hint buffer size.";
45 } 45 }
46 46
47 void SyncerCommandTestBase::OnShouldStopSyncingPermanently() {
48 FAIL() << "Shouldn't be called.";
49 }
50
51 void SyncerCommandTestBase::OnSyncProtocolError( 47 void SyncerCommandTestBase::OnSyncProtocolError(
52 const sessions::SyncSessionSnapshot& session) { 48 const sessions::SyncSessionSnapshot& session) {
53 return; 49 return;
54 } 50 }
55 SyncerCommandTestBase::SyncerCommandTestBase() 51 SyncerCommandTestBase::SyncerCommandTestBase()
56 : traffic_recorder_(kMaxMessages, kMaxMessageSize) { 52 : traffic_recorder_(kMaxMessages, kMaxMessageSize) {
57 } 53 }
58 54
59 SyncerCommandTestBase::~SyncerCommandTestBase() { 55 SyncerCommandTestBase::~SyncerCommandTestBase() {
60 } 56 }
(...skipping 17 matching lines...) Expand all
78 void SyncerCommandTest::SetUp() { 74 void SyncerCommandTest::SetUp() {
79 dir_maker_.SetUp(); 75 dir_maker_.SetUp();
80 SyncerCommandTestBase::SetUp(); 76 SyncerCommandTestBase::SetUp();
81 } 77 }
82 78
83 void SyncerCommandTest::TearDown() { 79 void SyncerCommandTest::TearDown() {
84 dir_maker_.TearDown(); 80 dir_maker_.TearDown();
85 } 81 }
86 82
87 } // namespace syncer 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