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

Unified Diff: chrome/test/sync/engine/mock_server_connection.h

Issue 214033: Use chrome/base synchronization primitives and threads instead of... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | « chrome/common/chrome_switches.cc ('k') | chrome/test/sync/engine/mock_server_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | chrome/test/sync/engine/mock_server_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698