Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Side by Side Diff: chrome/test/sync/engine/test_directory_setter_upper.cc

Issue 6462015: Cleanup more test code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: wtf windows is this me Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/test/sync/engine/test_directory_setter_upper.h ('k') | chrome/test/webdriver/automation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698