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

Side by Side Diff: components/sync/core/test/test_user_share.h

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 // A handy class that takes care of setting up and destroying a 5 // A handy class that takes care of setting up and destroying a
6 // UserShare instance for unit tests that require one. 6 // UserShare instance for unit tests that require one.
7 // 7 //
8 // The expected usage is to make this a component of your test fixture: 8 // The expected usage is to make this a component of your test fixture:
9 // 9 //
10 // class AwesomenessTest : public testing::Test { 10 // class AwesomenessTest : public testing::Test {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 // Sync's encryption handler. Used by tests to invoke the sync encryption 69 // Sync's encryption handler. Used by tests to invoke the sync encryption
70 // methods normally handled via the SyncBackendHost 70 // methods normally handled via the SyncBackendHost
71 SyncEncryptionHandler* encryption_handler(); 71 SyncEncryptionHandler* encryption_handler();
72 72
73 // Returns the directory's transaction observer. This transaction observer 73 // Returns the directory's transaction observer. This transaction observer
74 // has methods which can be helpful when writing test assertions. 74 // has methods which can be helpful when writing test assertions.
75 syncable::TestTransactionObserver* transaction_observer(); 75 syncable::TestTransactionObserver* transaction_observer();
76 76
77 // A helper function to pretend to download this type's root node. 77 // A helper function to pretend to download this type's root node.
78 static bool CreateRoot(ModelType model_type, UserShare* service); 78 static bool CreateRoot(syncer::ModelType model_type,
79 syncer::UserShare* service);
79 80
80 size_t GetDeleteJournalSize() const; 81 size_t GetDeleteJournalSize() const;
81 82
82 private: 83 private:
83 std::unique_ptr<TestDirectorySetterUpper> dir_maker_; 84 std::unique_ptr<TestDirectorySetterUpper> dir_maker_;
84 std::unique_ptr<UserShare> user_share_; 85 std::unique_ptr<UserShare> user_share_;
85 86
86 DISALLOW_COPY_AND_ASSIGN(TestUserShare); 87 DISALLOW_COPY_AND_ASSIGN(TestUserShare);
87 }; 88 };
88 89
89 } // namespace syncer 90 } // namespace syncer
90 91
91 #endif // COMPONENTS_SYNC_CORE_TEST_TEST_USER_SHARE_H_ 92 #endif // COMPONENTS_SYNC_CORE_TEST_TEST_USER_SHARE_H_
OLDNEW
« no previous file with comments | « components/sync/core/test/test_internal_components_factory.h ('k') | components/sync/core/write_transaction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698