1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "sync/syncable/syncable_mock.h"
7 #include "base/location.h"
8 #include "sync/syncable/in_memory_directory_backing_store.h"
10 #include "sync/test/null_transaction_observer.h"
15 MockDirectory::MockDirectory(UnrecoverableErrorHandler
* handler
)
16 : Directory(new syncable::InMemoryDirectoryBackingStore("store"),
21 InitKernelForTest("myk", &delegate_
, syncable::NullTransactionObserver());
24 MockDirectory::~MockDirectory() {}
26 MockSyncableWriteTransaction::MockSyncableWriteTransaction(
27 const tracked_objects::Location
& from_here
, Directory
*directory
)
28 : WriteTransaction(from_here
, syncable::UNITTEST
, directory
) {
31 } // namespace syncable