Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: components/sync/syncable/test_user_share.cc

Issue 2407163004: [Sync] Move some directory-related things from core/ to syncable/. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/sync/syncable/test_user_share.h ('k') | components/sync/syncable/user_share.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/sync/syncable/test_user_share.h ('k') | components/sync/syncable/user_share.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698