OLD | NEW |
| (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 "chrome/browser/sync/test/engine/syncer_command_test.h" | |
6 | |
7 namespace browser_sync { | |
8 | |
9 | |
10 SyncerCommandTestBase::SyncerCommandTestBase() { | |
11 } | |
12 | |
13 SyncerCommandTestBase::~SyncerCommandTestBase() { | |
14 } | |
15 | |
16 void SyncerCommandTestBase::SetUp() { | |
17 ResetContext(); | |
18 // The session always expects there to be a passive worker. | |
19 workers()->push_back( | |
20 make_scoped_refptr(new FakeModelWorker(GROUP_PASSIVE))); | |
21 } | |
22 | |
23 void SyncerCommandTestBase::TearDown() { | |
24 } | |
25 | |
26 Directory* SyncerCommandTest::directory() { | |
27 return dir_maker_.directory(); | |
28 } | |
29 | |
30 void SyncerCommandTest::SetUp() { | |
31 dir_maker_.SetUp(); | |
32 SyncerCommandTestBase::SetUp(); | |
33 } | |
34 | |
35 void SyncerCommandTest::TearDown() { | |
36 dir_maker_.TearDown(); | |
37 } | |
38 | |
39 MockDebugInfoGetter::MockDebugInfoGetter() { | |
40 } | |
41 | |
42 MockDebugInfoGetter::~MockDebugInfoGetter() { | |
43 } | |
44 | |
45 MockDirectorySyncerCommandTest::MockDirectorySyncerCommandTest() | |
46 :mock_directory_(&handler_) { | |
47 } | |
48 | |
49 MockDirectorySyncerCommandTest::~MockDirectorySyncerCommandTest() { | |
50 } | |
51 | |
52 void MockDirectorySyncerCommandTest::SetUp() { | |
53 // The session always expects there to be a passive worker. | |
54 workers()->push_back( | |
55 make_scoped_refptr(new FakeModelWorker(GROUP_PASSIVE))); | |
56 ResetContext(); | |
57 } | |
58 | |
59 Directory* MockDirectorySyncerCommandTest::directory() { | |
60 return &mock_directory_; | |
61 } | |
62 | |
63 } // namespace browser_sync | |
OLD | NEW |