| Index: chrome/browser/sync/syncable/syncable.h
|
| diff --git a/chrome/browser/sync/syncable/syncable.h b/chrome/browser/sync/syncable/syncable.h
|
| index c26232f7cb694be5285495defa450ad4be44fc0b..c0fdc4cdbc4503eb8f5ba577b75f8cf7a4045d07 100644
|
| --- a/chrome/browser/sync/syncable/syncable.h
|
| +++ b/chrome/browser/sync/syncable/syncable.h
|
| @@ -775,9 +775,9 @@ class Directory {
|
| protected: // for friends, mainly used by Entry constructors
|
| EntryKernel* GetEntryByHandle(const int64 handle);
|
| EntryKernel* GetEntryByHandle(const int64 metahandle, ScopedKernelLock* lock);
|
| - EntryKernel* GetEntryById(const Id& id);
|
| + virtual EntryKernel* GetEntryById(const Id& id);
|
| EntryKernel* GetEntryByServerTag(const std::string& tag);
|
| - EntryKernel* GetEntryByClientTag(const std::string& tag);
|
| + virtual EntryKernel* GetEntryByClientTag(const std::string& tag);
|
| EntryKernel* GetRootEntry();
|
| bool ReindexId(EntryKernel* const entry, const Id& new_id);
|
| void ReindexParentId(EntryKernel* const entry, const Id& new_parent_id);
|
| @@ -1058,6 +1058,9 @@ class BaseTransaction {
|
| BaseTransaction(Directory* directory, const char* name,
|
| const char* source_file, int line, WriterTag writer);
|
|
|
| + // For unit testing. Everything will be mocked out no point initializing.
|
| + BaseTransaction(Directory* directory);
|
| +
|
| void UnlockAndLog(OriginalEntries* entries);
|
| bool NotifyTransactionChangingAndEnding(OriginalEntries* entries);
|
| virtual void NotifyTransactionComplete();
|
| @@ -1112,6 +1115,8 @@ class WriteTransaction : public BaseTransaction {
|
| // is done.
|
| OriginalEntries* const originals_;
|
|
|
| + WriteTransaction(Directory *directory);
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(WriteTransaction);
|
| };
|
|
|
|
|