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.
5 #include "sync/test/engine/syncer_command_test.h"
9 const unsigned int kMaxMessages
= 10;
10 const unsigned int kMaxMessageSize
= 5 * 1024;
12 SyncerCommandTestBase::SyncerCommandTestBase()
13 : traffic_recorder_(kMaxMessages
, kMaxMessageSize
) {
16 SyncerCommandTestBase::~SyncerCommandTestBase() {
19 void SyncerCommandTestBase::SetUp() {
20 extensions_activity_
= new ExtensionsActivity();
22 // The session always expects there to be a passive worker.
24 make_scoped_refptr(new FakeModelWorker(GROUP_PASSIVE
)));
28 void SyncerCommandTestBase::TearDown() {
31 syncable::Directory
* SyncerCommandTest::directory() {
32 return dir_maker_
.directory();
35 void SyncerCommandTest::SetUp() {
37 SyncerCommandTestBase::SetUp();
40 void SyncerCommandTest::TearDown() {
41 dir_maker_
.TearDown();
44 MockDebugInfoGetter::MockDebugInfoGetter() {
47 MockDebugInfoGetter::~MockDebugInfoGetter() {