Extract SIGPIPE ignoring code to a common place.
[chromium-blink-merge.git] / sync / syncable / syncable_mock.cc
blob9bc68e4171ea6cfdeef813638af4511937167765
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"
12 namespace syncer {
13 namespace syncable {
15 MockDirectory::MockDirectory(UnrecoverableErrorHandler* handler)
16 : Directory(new syncable::InMemoryDirectoryBackingStore("store"),
17 handler,
18 NULL,
19 NULL,
20 NULL) {
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
32 } // namespace syncer