| Index: chrome/test/sync/engine/mock_server_connection.h
|
| ===================================================================
|
| --- chrome/test/sync/engine/mock_server_connection.h (revision 27087)
|
| +++ chrome/test/sync/engine/mock_server_connection.h (working copy)
|
| @@ -31,6 +31,10 @@
|
| // activity would normally take place. This aids simulation of race
|
| // conditions.
|
| typedef bool (*TestCallbackFunction)(syncable::Directory* dir);
|
| + class MidCommitObserver {
|
| + public:
|
| + virtual void Observe() = 0;
|
| + };
|
|
|
| MockConnectionManager(syncable::DirectoryManager* dirmgr, PathString name);
|
| virtual ~MockConnectionManager();
|
| @@ -45,6 +49,7 @@
|
|
|
| // Control of commit response.
|
| void SetMidCommitCallbackFunction(TestCallbackFunction callback);
|
| + void SetMidCommitObserver(MidCommitObserver* observer);
|
|
|
| // Set this if you want commit to perform commit time rename. Will request
|
| // that the client renames all commited entries, prepending this string.
|
| @@ -177,11 +182,13 @@
|
| bool fail_next_postbuffer_;
|
|
|
| // Our directory.
|
| - syncable::ScopedDirLookup directory_;
|
| + syncable::DirectoryManager* directory_manager_;
|
| + PathString directory_name_;
|
|
|
| // The updates we'll return to the next request.
|
| sync_pb::GetUpdatesResponse updates_;
|
| TestCallbackFunction mid_commit_callback_function_;
|
| + MidCommitObserver* mid_commit_observer_;
|
|
|
| scoped_ptr<sync_pb::ClientCommand> client_command_;
|
|
|
|
|