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

Unified Diff: sync/test/test_directory_backing_store.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 5 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
« no previous file with comments | « sync/test/test_directory_backing_store.h ('k') | sync/test/test_transaction_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/test/test_directory_backing_store.cc
diff --git a/sync/test/test_directory_backing_store.cc b/sync/test/test_directory_backing_store.cc
deleted file mode 100644
index d845252fd553855d4f384702e9a32ef5b7cc4289..0000000000000000000000000000000000000000
--- a/sync/test/test_directory_backing_store.cc
+++ /dev/null
@@ -1,51 +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 "sync/test/test_directory_backing_store.h"
-
-#include "base/logging.h"
-
-namespace syncer {
-namespace syncable {
-
-TestDirectoryBackingStore::TestDirectoryBackingStore(
- const std::string& dir_name, sql::Connection* db)
- : DirectoryBackingStore(dir_name, db) {
-}
-
-TestDirectoryBackingStore::~TestDirectoryBackingStore() {
- // This variant of the DirectoryBackingStore does not own its connection, so
- // we take care to not delete it here.
- ignore_result(db_.release());
-}
-
-DirOpenResult TestDirectoryBackingStore::Load(
- Directory::MetahandlesMap* handles_map,
- JournalIndex* delete_journals,
- MetahandleSet* metahandles_to_purge,
- Directory::KernelLoadInfo* kernel_load_info) {
- DCHECK(db_->is_open());
-
- if (!InitializeTables())
- return FAILED_OPEN_DATABASE;
-
- if (!LoadEntries(handles_map, metahandles_to_purge))
- return FAILED_DATABASE_CORRUPT;
- if (!LoadDeleteJournals(delete_journals))
- return FAILED_DATABASE_CORRUPT;
- if (!LoadInfo(kernel_load_info))
- return FAILED_DATABASE_CORRUPT;
- if (!VerifyReferenceIntegrity(handles_map))
- return FAILED_DATABASE_CORRUPT;
-
- return OPENED;
-}
-
-bool TestDirectoryBackingStore::DeleteEntries(const MetahandleSet& handles) {
- return DirectoryBackingStore::DeleteEntries(
- DirectoryBackingStore::METAS_TABLE, handles);
-}
-
-} // namespace syncable
-} // namespace syncer
« no previous file with comments | « sync/test/test_directory_backing_store.h ('k') | sync/test/test_transaction_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698