summaryrefslogtreecommitdiffstats
path: root/chrome/test/sync/engine/mock_connection_manager.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-21 04:55:52 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-21 04:55:52 +0000
commit20305ec6f1acf21392c2f3938a14a96f1e28e76d (patch)
tree6eff1f7be4bad1a1362d3466f0ac59292dc51acc /chrome/test/sync/engine/mock_connection_manager.h
parentc6e8346b56ab61b35845aefcf9b241c654fe1253 (diff)
downloadchromium_src-20305ec6f1acf21392c2f3938a14a96f1e28e76d.zip
chromium_src-20305ec6f1acf21392c2f3938a14a96f1e28e76d.tar.gz
chromium_src-20305ec6f1acf21392c2f3938a14a96f1e28e76d.tar.bz2
Remove obsolete base/lock.h and fix up callers to use the new header file and
the base namespace. Fix several files including lock.h unnecessarily. BUG=none TEST=none Original review=http://codereview.chromium.org/6142009/ Patch by leviw@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72106 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/sync/engine/mock_connection_manager.h')
-rw-r--r--chrome/test/sync/engine/mock_connection_manager.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/test/sync/engine/mock_connection_manager.h b/chrome/test/sync/engine/mock_connection_manager.h
index 5fe44b5..a764eaaae 100644
--- a/chrome/test/sync/engine/mock_connection_manager.h
+++ b/chrome/test/sync/engine/mock_connection_manager.h
@@ -191,7 +191,7 @@ class MockConnectionManager : public browser_sync::ServerConnectionManager {
void set_store_birthday(string new_birthday) {
// Multiple threads can set store_birthday_ in our tests, need to lock it to
// ensure atomic read/writes and avoid race conditions.
- AutoLock lock(store_birthday_lock_);
+ base::AutoLock lock(store_birthday_lock_);
store_birthday_ = new_birthday;
}
@@ -219,7 +219,7 @@ class MockConnectionManager : public browser_sync::ServerConnectionManager {
// Const necessary to avoid any hidden copy-on-write issues that would break
// in multithreaded scenarios (see |set_store_birthday|).
const std::string& store_birthday() {
- AutoLock lock(store_birthday_lock_);
+ base::AutoLock lock(store_birthday_lock_);
return store_birthday_;
}
@@ -285,7 +285,7 @@ class MockConnectionManager : public browser_sync::ServerConnectionManager {
// The store birthday we send to the client.
string store_birthday_;
- Lock store_birthday_lock_;
+ base::Lock store_birthday_lock_;
bool store_birthday_sent_;
bool client_stuck_;
string commit_time_rename_prepended_string_;
@@ -320,7 +320,7 @@ class MockConnectionManager : public browser_sync::ServerConnectionManager {
// Protected by |response_code_override_lock_|.
bool fail_with_auth_invalid_;
- Lock response_code_override_lock_;
+ base::Lock response_code_override_lock_;
// True if we are only accepting GetUpdatesCallerInfo::PERIODIC requests.
bool fail_non_periodic_get_updates_;