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

Unified Diff: sync/syncable/directory_unittest.h

Issue 247983002: Keep track of which attachments are referenced by which sync entries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rework tests and move AttachmentIdProto creation to avoid violating DEPS. Created 6 years, 8 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/syncable/directory_backing_store.cc ('k') | sync/syncable/directory_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/syncable/directory_unittest.h
diff --git a/sync/syncable/directory_unittest.h b/sync/syncable/directory_unittest.h
index 14e1a998eee96e700208555874e0a374bba73c7e..81e388823a4517f8660c57a5cb9fb8b056a0ef22 100644
--- a/sync/syncable/directory_unittest.h
+++ b/sync/syncable/directory_unittest.h
@@ -31,7 +31,6 @@ class BaseTransaction;
//
// Serves as base class for several other test fixtures.
class SyncableDirectoryTest : public testing::Test {
- private:
protected:
static const char kDirectoryName[];
@@ -47,12 +46,24 @@ class SyncableDirectoryTest : public testing::Test {
DirOpenResult ReopenDirectory();
// Creates an empty entry and sets the ID field to a default one.
- void CreateEntry(const std::string& entryname);
+ void CreateEntry(const ModelType& model_type, const std::string& entryname);
// Creates an empty entry and sets the ID field to id.
- void CreateEntry(const std::string& entryname, const int id);
+ void CreateEntry(const ModelType& model_type,
+ const std::string& entryname,
+ const int id);
+
+ void CreateEntry(const ModelType& model_type,
+ const std::string& entryname,
+ const Id& id);
+
+ void CreateEntryWithAttachmentMetadata(
+ const ModelType& model_type,
+ const std::string& entryname,
+ const Id& id,
+ const sync_pb::AttachmentMetadata& attachment_metadata);
- void CreateEntry(const std::string& entryname, Id id);
+ void DeleteEntry(const Id& id);
// When a directory is saved then loaded from disk, it will pass through
// DropDeletedEntries(). This will remove some entries from the directory.
« no previous file with comments | « sync/syncable/directory_backing_store.cc ('k') | sync/syncable/directory_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698