Add plumbing for scroll parent.
[chromium-blink-merge.git] / sync / test / engine / syncer_command_test.cc
blob68edbbd29fc10fbdef0739f516d4932147001bc5
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"
7 namespace syncer {
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.
23 workers()->push_back(
24 make_scoped_refptr(new FakeModelWorker(GROUP_PASSIVE)));
25 ResetContext();
28 void SyncerCommandTestBase::TearDown() {
31 syncable::Directory* SyncerCommandTest::directory() {
32 return dir_maker_.directory();
35 void SyncerCommandTest::SetUp() {
36 dir_maker_.SetUp();
37 SyncerCommandTestBase::SetUp();
40 void SyncerCommandTest::TearDown() {
41 dir_maker_.TearDown();
44 MockDebugInfoGetter::MockDebugInfoGetter() {
47 MockDebugInfoGetter::~MockDebugInfoGetter() {
50 } // namespace syncer