OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #ifndef SYNC_SYNCABLE_SYNCABLE_MOCK_H_ | 5 #ifndef SYNC_SYNCABLE_SYNCABLE_MOCK_H_ |
6 #define SYNC_SYNCABLE_SYNCABLE_MOCK_H_ | 6 #define SYNC_SYNCABLE_SYNCABLE_MOCK_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "sync/syncable/directory.h" | 10 #include "sync/syncable/directory.h" |
11 #include "sync/syncable/write_transaction.h" | 11 #include "sync/syncable/syncable_write_transaction.h" |
12 #include "sync/test/null_directory_change_delegate.h" | 12 #include "sync/test/null_directory_change_delegate.h" |
13 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 | 15 |
16 namespace syncer { | 16 namespace syncer { |
17 namespace syncable { | 17 namespace syncable { |
18 | 18 |
19 class MockDirectory : public Directory { | 19 class MockDirectory : public Directory { |
20 public: | 20 public: |
21 explicit MockDirectory(UnrecoverableErrorHandler* handler); | 21 explicit MockDirectory(UnrecoverableErrorHandler* handler); |
(...skipping 15 matching lines...) Expand all Loading... |
37 class MockSyncableWriteTransaction : public syncable::WriteTransaction { | 37 class MockSyncableWriteTransaction : public syncable::WriteTransaction { |
38 public: | 38 public: |
39 MockSyncableWriteTransaction( | 39 MockSyncableWriteTransaction( |
40 const tracked_objects::Location& from_here, Directory *directory); | 40 const tracked_objects::Location& from_here, Directory *directory); |
41 }; | 41 }; |
42 | 42 |
43 } // namespace syncable | 43 } // namespace syncable |
44 } // namespace syncer | 44 } // namespace syncer |
45 | 45 |
46 #endif // SYNC_SYNCABLE_SYNCABLE_MOCK_H_ | 46 #endif // SYNC_SYNCABLE_SYNCABLE_MOCK_H_ |
OLD | NEW |