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