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

Unified Diff: sync/test/test_directory_backing_store.h

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/sessions/test_scoped_session_event_listener.h ('k') | sync/test/test_directory_backing_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/test/test_directory_backing_store.h
diff --git a/sync/test/test_directory_backing_store.h b/sync/test/test_directory_backing_store.h
deleted file mode 100644
index 013cbfa6eaf7f283c77fe422d50e5e3d9e65ba3f..0000000000000000000000000000000000000000
--- a/sync/test/test_directory_backing_store.h
+++ /dev/null
@@ -1,71 +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.
-
-#ifndef SYNC_TEST_TEST_DIRECTORY_BACKING_STORE_H_
-#define SYNC_TEST_TEST_DIRECTORY_BACKING_STORE_H_
-
-#include <string>
-
-#include "base/gtest_prod_util.h"
-#include "sync/syncable/directory_backing_store.h"
-
-namespace syncer {
-namespace syncable {
-
-// This implementation of DirectoryBackingStore does not manage its own
-// database. This makes it more flexible (and more complex) than the
-// InMemoryDirectoryBackingStore.
-class TestDirectoryBackingStore : public DirectoryBackingStore {
- public:
- // This constructor takes a handle to a database. The caller maintains
- // ownership of this handle.
- //
- // This is very brittle. You should not be using this class or this
- // constructor unless you understand and intend to test the
- // DirectoryBackingStore's internals.
- TestDirectoryBackingStore(const std::string& dir_name,
- sql::Connection* connection);
- ~TestDirectoryBackingStore() override;
- DirOpenResult Load(Directory::MetahandlesMap* handles_map,
- JournalIndex* delete_journals,
- MetahandleSet* metahandles_to_purge,
- Directory::KernelLoadInfo* kernel_load_info) override;
- bool DeleteEntries(const MetahandleSet& handles);
- FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion67To68);
- FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion68To69);
- FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion69To70);
- FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion70To71);
- FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion71To72);
- FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion72To73);
- FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion73To74);
- FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion74To75);
- FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion75To76);
- FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion76To77);
- FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion77To78);
- FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion78To79);
- FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion79To80);
- FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion80To81);
- FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion81To82);
- FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion82To83);
- FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion83To84);
- FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion84To85);
- FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion85To86);
- FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion86To87);
- FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion87To88);
- FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion88To89);
- FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion89To90);
- FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, DetectInvalidPosition);
- FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, ModelTypeIds);
- FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, Corruption);
- FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, DeleteEntries);
- FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, GenerateCacheGUID);
- FRIEND_TEST_ALL_PREFIXES(MigrationTest, ToCurrentVersion);
- FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateToLatestAndDump);
- friend class MigrationTest;
-};
-
-} // namespace syncable
-} // namespace syncer
-
-#endif // SYNC_TEST_TEST_DIRECTORY_BACKING_STORE_H_
« no previous file with comments | « sync/test/sessions/test_scoped_session_event_listener.h ('k') | sync/test/test_directory_backing_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698