OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "sync/syncable/syncable_mock.h" | 5 #include "sync/syncable/syncable_mock.h" |
6 | 6 |
7 #include "base/location.h" | 7 #include "base/location.h" |
8 #include "sync/syncable/in_memory_directory_backing_store.h" | 8 #include "sync/syncable/in_memory_directory_backing_store.h" |
9 | 9 |
10 #include "sync/test/null_transaction_observer.h" | 10 #include "sync/test/null_transaction_observer.h" |
11 | 11 |
12 namespace syncer { | 12 namespace syncer { |
13 namespace syncable { | 13 namespace syncable { |
14 | 14 |
15 MockDirectory::MockDirectory(UnrecoverableErrorHandler* handler) | 15 MockDirectory::MockDirectory(UnrecoverableErrorHandler* handler) |
16 : Directory(&encryptor_, handler, NULL, | 16 : Directory(new syncable::InMemoryDirectoryBackingStore("store"), |
17 new syncable::InMemoryDirectoryBackingStore("store")) { | 17 handler, |
| 18 NULL, |
| 19 NULL, |
| 20 NULL) { |
18 InitKernelForTest("myk", &delegate_, syncable::NullTransactionObserver()); | 21 InitKernelForTest("myk", &delegate_, syncable::NullTransactionObserver()); |
19 } | 22 } |
20 | 23 |
21 MockDirectory::~MockDirectory() {} | 24 MockDirectory::~MockDirectory() {} |
22 | 25 |
23 MockSyncableWriteTransaction::MockSyncableWriteTransaction( | 26 MockSyncableWriteTransaction::MockSyncableWriteTransaction( |
24 const tracked_objects::Location& from_here, Directory *directory) | 27 const tracked_objects::Location& from_here, Directory *directory) |
25 : WriteTransaction(from_here, syncable::UNITTEST, directory) { | 28 : WriteTransaction(from_here, syncable::UNITTEST, directory) { |
26 } | 29 } |
27 | 30 |
28 } // namespace syncable | 31 } // namespace syncable |
29 } // namespace syncer | 32 } // namespace syncer |
OLD | NEW |