| 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 "chrome/browser/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 "chrome/browser/sync/test/null_transaction_observer.h" | 8 #include "sync/test/null_transaction_observer.h" |
| 9 | 9 |
| 10 MockDirectory::MockDirectory(browser_sync::UnrecoverableErrorHandler* handler) | 10 MockDirectory::MockDirectory(browser_sync::UnrecoverableErrorHandler* handler) |
| 11 : Directory(&encryptor_, handler, NULL) { | 11 : Directory(&encryptor_, handler, NULL) { |
| 12 InitKernelForTest("myk", &delegate_, syncable::NullTransactionObserver()); | 12 InitKernelForTest("myk", &delegate_, syncable::NullTransactionObserver()); |
| 13 } | 13 } |
| 14 | 14 |
| 15 MockDirectory::~MockDirectory() {} | 15 MockDirectory::~MockDirectory() {} |
| 16 | 16 |
| 17 MockSyncableWriteTransaction::MockSyncableWriteTransaction( | 17 MockSyncableWriteTransaction::MockSyncableWriteTransaction( |
| 18 const tracked_objects::Location& from_here, Directory *directory) | 18 const tracked_objects::Location& from_here, Directory *directory) |
| 19 : WriteTransaction(from_here, syncable::UNITTEST, directory) { | 19 : WriteTransaction(from_here, syncable::UNITTEST, directory) { |
| 20 } | 20 } |
| OLD | NEW |