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

Side by Side Diff: components/sync/core_impl/test/test_user_share.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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
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 "sync/internal_api/public/test/test_user_share.h" 5 #include "components/sync/core/test/test_user_share.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "sync/syncable/directory.h" 10 #include "components/sync/syncable/directory.h"
11 #include "sync/syncable/mutable_entry.h" 11 #include "components/sync/syncable/mutable_entry.h"
12 #include "sync/syncable/syncable_read_transaction.h" 12 #include "components/sync/syncable/syncable_read_transaction.h"
13 #include "sync/syncable/syncable_write_transaction.h" 13 #include "components/sync/syncable/syncable_write_transaction.h"
14 #include "sync/test/engine/test_directory_setter_upper.h" 14 #include "components/sync/test/engine/test_directory_setter_upper.h"
15 #include "sync/test/engine/test_id_factory.h" 15 #include "components/sync/test/engine/test_id_factory.h"
16 #include "sync/test/engine/test_syncable_utils.h" 16 #include "components/sync/test/engine/test_syncable_utils.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 18
19 namespace syncer { 19 namespace syncer {
20 20
21 TestUserShare::TestUserShare() : dir_maker_(new TestDirectorySetterUpper()) {} 21 TestUserShare::TestUserShare() : dir_maker_(new TestDirectorySetterUpper()) {}
22 22
23 TestUserShare::~TestUserShare() { 23 TestUserShare::~TestUserShare() {
24 if (user_share_) 24 if (user_share_)
25 ADD_FAILURE() << "Should have called TestUserShare::TearDown()"; 25 ADD_FAILURE() << "Should have called TestUserShare::TearDown()";
26 } 26 }
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 CreateTypeRoot(&wtrans, directory, model_type); 76 CreateTypeRoot(&wtrans, directory, model_type);
77 return true; 77 return true;
78 } 78 }
79 79
80 size_t TestUserShare::GetDeleteJournalSize() const { 80 size_t TestUserShare::GetDeleteJournalSize() const {
81 syncable::ReadTransaction trans(FROM_HERE, user_share_->directory.get()); 81 syncable::ReadTransaction trans(FROM_HERE, user_share_->directory.get());
82 return user_share_->directory->delete_journal()->GetDeleteJournalSize(&trans); 82 return user_share_->directory->delete_journal()->GetDeleteJournalSize(&trans);
83 } 83 }
84 84
85 } // namespace syncer 85 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/core_impl/test/test_internal_components_factory.cc ('k') | components/sync/engine/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698