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

Unified Diff: chrome/test/sync/engine/test_directory_setter_upper.cc

Issue 7190001: [Sync] Split DirectoryChangeListener for thread-safety (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix copyright Created 9 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/sync/engine/test_directory_setter_upper.cc
diff --git a/chrome/test/sync/engine/test_directory_setter_upper.cc b/chrome/test/sync/engine/test_directory_setter_upper.cc
index c124d52b94dd555983f91302ec863477379cc936..cd675829c8a7a7999ff6d698ccfdbf1b52b8ee4d 100644
--- a/chrome/test/sync/engine/test_directory_setter_upper.cc
+++ b/chrome/test/sync/engine/test_directory_setter_upper.cc
@@ -7,6 +7,7 @@
#include "base/compiler_specific.h"
#include "base/file_util.h"
#include "base/string_util.h"
+#include "base/tracked.h"
#include "chrome/browser/sync/syncable/directory_manager.h"
#include "chrome/browser/sync/syncable/syncable.h"
#include "chrome/common/deprecated/event_sys-inl.h"
@@ -38,7 +39,7 @@ void TestDirectorySetterUpper::reset_directory_manager(DirectoryManager* d) {
void TestDirectorySetterUpper::SetUp() {
Init();
- ASSERT_TRUE(manager()->Open(name()));
+ ASSERT_TRUE(manager()->Open(name(), &delegate_));
}
void TestDirectorySetterUpper::TearDown() {
@@ -65,12 +66,12 @@ void TestDirectorySetterUpper::TearDown() {
void TestDirectorySetterUpper::RunInvariantCheck(const ScopedDirLookup& dir) {
{
// Check invariants for in-memory items.
- ReadTransaction trans(dir, __FILE__, __LINE__);
+ ReadTransaction trans(dir, FROM_HERE);
dir->CheckTreeInvariants(&trans, false);
}
{
// Check invariants for all items.
- ReadTransaction trans(dir, __FILE__, __LINE__);
+ ReadTransaction trans(dir, FROM_HERE);
dir->CheckTreeInvariants(&trans, true);
}
}
@@ -80,7 +81,7 @@ void ManuallyOpenedTestDirectorySetterUpper::SetUp() {
}
void ManuallyOpenedTestDirectorySetterUpper::Open() {
- ASSERT_TRUE(manager()->Open(name()));
+ ASSERT_TRUE(manager()->Open(name(), &delegate_));
was_opened_ = true;
}
@@ -111,7 +112,7 @@ void TriggeredOpenTestDirectorySetterUpper::TearDown() {
MockDirectorySetterUpper::MockDirectory::MockDirectory(
const std::string& name) {
- init_kernel(name);
+ InitKernel(name, &delegate_);
}
MockDirectorySetterUpper::MockDirectory::~MockDirectory() {}
« no previous file with comments | « chrome/test/sync/engine/test_directory_setter_upper.h ('k') | chrome/test/sync/null_directory_change_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698