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

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

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 years, 9 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/browser/sync/test/engine/test_directory_setter_upper.cc
diff --git a/chrome/browser/sync/test/engine/test_directory_setter_upper.cc b/chrome/browser/sync/test/engine/test_directory_setter_upper.cc
deleted file mode 100644
index c4e71be96ffef0d8344b665911a26b3d32ec0a74..0000000000000000000000000000000000000000
--- a/chrome/browser/sync/test/engine/test_directory_setter_upper.cc
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/sync/test/engine/test_directory_setter_upper.h"
-
-#include "base/compiler_specific.h"
-#include "base/file_util.h"
-#include "base/location.h"
-#include "base/string_util.h"
-#include "chrome/browser/sync/syncable/syncable.h"
-#include "chrome/browser/sync/test/null_transaction_observer.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-using syncable::NullTransactionObserver;
-using syncable::ReadTransaction;
-
-namespace browser_sync {
-
-TestDirectorySetterUpper::TestDirectorySetterUpper() : name_("Test") {}
-
-TestDirectorySetterUpper::~TestDirectorySetterUpper() {}
-
-void TestDirectorySetterUpper::SetUp() {
- directory_.reset(new syncable::Directory(&encryptor_, &handler_, NULL));
- ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
- ASSERT_EQ(syncable::OPENED, directory_->OpenInMemoryForTest(
- name_, &delegate_, NullTransactionObserver()));
-}
-
-void TestDirectorySetterUpper::TearDown() {
- if (!directory()->good())
- return;
-
- {
- RunInvariantCheck();
- directory()->SaveChanges();
- RunInvariantCheck();
- directory()->SaveChanges();
- }
- directory_.reset();
-
- ASSERT_TRUE(temp_dir_.Delete());
-}
-
-void TestDirectorySetterUpper::RunInvariantCheck() {
- {
- // Check invariants for in-memory items.
- ReadTransaction trans(FROM_HERE, directory());
- directory()->CheckTreeInvariants(&trans, false);
- }
- {
- // Check invariants for all items.
- ReadTransaction trans(FROM_HERE, directory());
- directory()->CheckTreeInvariants(&trans, true);
- }
-}
-
-} // namespace browser_sync
« no previous file with comments | « chrome/browser/sync/test/engine/test_directory_setter_upper.h ('k') | chrome/browser/sync/test/engine/test_id_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698