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

Unified Diff: sync/internal_api/public/test/test_user_share.h

Issue 10911073: NOT FOR COMMIT: Add DeviceInfo type and ChangeProcessor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix several issues Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sync/internal_api/public/test/fake_sync_manager.h ('k') | sync/internal_api/public/user_share.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/internal_api/public/test/test_user_share.h
diff --git a/sync/internal_api/public/test/test_user_share.h b/sync/internal_api/public/test/test_user_share.h
index 5322d909615f411b43852af82e9e24ea7742ee63..fd2f1fe1c5f5043a392a81674b2200af1e5f0fed 100644
--- a/sync/internal_api/public/test/test_user_share.h
+++ b/sync/internal_api/public/test/test_user_share.h
@@ -31,14 +31,18 @@
#define SYNC_INTERNAL_API_PUBLIC_TEST_TEST_USER_SHARE_H_
#include "base/basictypes.h"
+#include "sync/internal_api/public/base/model_type.h"
#include "sync/internal_api/public/user_share.h"
namespace syncer {
class SyncEncryptionHandler;
-
class TestDirectorySetterUpper;
+namespace syncable {
+ class MockTransactionObserver;
+}
+
class TestUserShare {
public:
TestUserShare();
@@ -61,6 +65,15 @@ class TestUserShare {
// methods normally handled via the SyncBackendHost
SyncEncryptionHandler* encryption_handler();
+ // Returns the directory's transaction observer. This transaction observer
+ // has methods which can be helpful when writing test assertions.
+ syncable::MockTransactionObserver* transaction_observer();
+
+ // A helper function to pretend to download this type's root node.
+ static bool CreateRoot(syncer::ModelType model_type,
+ syncer::UserShare* service);
+
+
private:
scoped_ptr<TestDirectorySetterUpper> dir_maker_;
scoped_ptr<UserShare> user_share_;
« no previous file with comments | « sync/internal_api/public/test/fake_sync_manager.h ('k') | sync/internal_api/public/user_share.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698