summaryrefslogtreecommitdiffstats
path: root/o3d
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-01 23:16:20 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-01 23:16:20 +0000
commitbc581a6829fe49e43f4869075781d6dc94843f09 (patch)
treea94363488dadff28fe2c03f3a169b6ad2eeb02e8 /o3d
parent10f33b1bd6c6adb6306759a45bf3a5c18221d878 (diff)
downloadchromium_src-bc581a6829fe49e43f4869075781d6dc94843f09.zip
chromium_src-bc581a6829fe49e43f4869075781d6dc94843f09.tar.gz
chromium_src-bc581a6829fe49e43f4869075781d6dc94843f09.tar.bz2
Move base/lock and base/condition_variable to base/synchronization/
I kept a base/lock.h in place with a using statement to avoid updating all callers in one CL. TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/6018013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70363 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d')
-rw-r--r--o3d/core/cross/message_queue_test.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/o3d/core/cross/message_queue_test.cc b/o3d/core/cross/message_queue_test.cc
index c94eb52..fd8840d 100644
--- a/o3d/core/cross/message_queue_test.cc
+++ b/o3d/core/cross/message_queue_test.cc
@@ -42,10 +42,10 @@
#include "core/cross/types.h"
#include "core/cross/renderer.h"
#include "tests/common/win/testing_common.h"
-#include "base/condition_variable.h"
-#include "base/lock.h"
#include "base/platform_thread.h"
#include "base/time.h"
+#include "base/synchronization/condition_variable.h"
+#include "base/synchronization/lock.h"
using ::base::Time;
using ::base::TimeDelta;
@@ -81,8 +81,8 @@ class WallClockTimeSource : public TimeSource {
// of times, this indicates one failure mode of the test.
class TestWatchdog {
private:
- Lock lock_;
- ConditionVariable condition_;
+ base::Lock lock_;
+ base::ConditionVariable condition_;
int expected_num_signals_;
TimeDelta time_to_run_;
TimeSource* time_source_;
@@ -98,7 +98,7 @@ class TestWatchdog {
time_source_(time_source) {}
void Signal() {
- AutoLock locker(lock_);
+ base::AutoLock locker(lock_);
ASSERT_GE(expected_num_signals_, 0);
--expected_num_signals_;
condition_.Broadcast();
@@ -107,7 +107,7 @@ class TestWatchdog {
// Pause the current thread briefly waiting for a signal so we don't
// consume all CPU
void WaitBrieflyForSignal() {
- AutoLock locker(lock_);
+ base::AutoLock locker(lock_);
condition_.TimedWait(TimeDelta::FromMilliseconds(5));
}