OLD | NEW |
1 // Copyright 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 #include "sync/internal_api/public/test/test_user_share.h" | 5 #include "sync/internal_api/public/test/test_user_share.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
8 #include "sync/syncable/directory.h" | 10 #include "sync/syncable/directory.h" |
9 #include "sync/syncable/mutable_entry.h" | 11 #include "sync/syncable/mutable_entry.h" |
10 #include "sync/syncable/syncable_read_transaction.h" | 12 #include "sync/syncable/syncable_read_transaction.h" |
11 #include "sync/syncable/syncable_write_transaction.h" | 13 #include "sync/syncable/syncable_write_transaction.h" |
12 #include "sync/test/engine/test_directory_setter_upper.h" | 14 #include "sync/test/engine/test_directory_setter_upper.h" |
13 #include "sync/test/engine/test_id_factory.h" | 15 #include "sync/test/engine/test_id_factory.h" |
14 #include "sync/test/engine/test_syncable_utils.h" | 16 #include "sync/test/engine/test_syncable_utils.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
16 | 18 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 CreateTypeRoot(&wtrans, directory, model_type); | 76 CreateTypeRoot(&wtrans, directory, model_type); |
75 return true; | 77 return true; |
76 } | 78 } |
77 | 79 |
78 size_t TestUserShare::GetDeleteJournalSize() const { | 80 size_t TestUserShare::GetDeleteJournalSize() const { |
79 syncable::ReadTransaction trans(FROM_HERE, user_share_->directory.get()); | 81 syncable::ReadTransaction trans(FROM_HERE, user_share_->directory.get()); |
80 return user_share_->directory->delete_journal()->GetDeleteJournalSize(&trans); | 82 return user_share_->directory->delete_journal()->GetDeleteJournalSize(&trans); |
81 } | 83 } |
82 | 84 |
83 } // namespace syncer | 85 } // namespace syncer |
OLD | NEW |