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