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 "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 Loading... |
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 Loading... |
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 |
OLD | NEW |