| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/test/sync/engine/test_directory_setter_upper.h" | 5 #include "chrome/test/sync/engine/test_directory_setter_upper.h" |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "chrome/browser/sync/syncable/directory_manager.h" | 9 #include "chrome/browser/sync/syncable/directory_manager.h" |
| 10 #include "chrome/browser/sync/syncable/syncable.h" | 10 #include "chrome/browser/sync/syncable/syncable.h" |
| 11 #include "chrome/common/deprecated/event_sys-inl.h" | 11 #include "chrome/common/deprecated/event_sys-inl.h" |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 MockDirectorySetterUpper::Manager::Manager( | 118 MockDirectorySetterUpper::Manager::Manager( |
| 119 const FilePath& root_path, syncable::Directory* dir) : | 119 const FilePath& root_path, syncable::Directory* dir) : |
| 120 syncable::DirectoryManager(root_path) { | 120 syncable::DirectoryManager(root_path) { |
| 121 managed_directory_ = dir; | 121 managed_directory_ = dir; |
| 122 } | 122 } |
| 123 | 123 |
| 124 MockDirectorySetterUpper::MockDirectorySetterUpper() | 124 MockDirectorySetterUpper::MockDirectorySetterUpper() |
| 125 : directory_(new MockDirectory(name())) { | 125 : directory_(new MockDirectory(name())) { |
| 126 } | 126 } |
| 127 | 127 |
| 128 MockDirectorySetterUpper::~MockDirectorySetterUpper() {} |
| 129 |
| 128 void MockDirectorySetterUpper::SetUp() { | 130 void MockDirectorySetterUpper::SetUp() { |
| 129 reset_directory_manager(new Manager(FilePath(), directory_.get())); | 131 reset_directory_manager(new Manager(FilePath(), directory_.get())); |
| 130 } | 132 } |
| 131 | 133 |
| 132 void MockDirectorySetterUpper::TearDown() { | 134 void MockDirectorySetterUpper::TearDown() { |
| 133 // Nothing to do here. | 135 // Nothing to do here. |
| 134 } | 136 } |
| 135 | 137 |
| 136 } // namespace browser_sync | 138 } // namespace browser_sync |
| OLD | NEW |