diff options
author | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-01 02:17:08 +0000 |
---|---|---|
committer | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-01 02:17:08 +0000 |
commit | f214f8797150f49e1233110c1dafe4e8b601d9ea (patch) | |
tree | 191f4f5b9ee1d9c20fc02dd4f1c940ad4d04267c /chrome/common/deprecated/event_sys_unittest.cc | |
parent | 34b9963c187a733bef76535521f3de688fffd34f (diff) | |
download | chromium_src-f214f8797150f49e1233110c1dafe4e8b601d9ea.zip chromium_src-f214f8797150f49e1233110c1dafe4e8b601d9ea.tar.gz chromium_src-f214f8797150f49e1233110c1dafe4e8b601d9ea.tar.bz2 |
Remove base/platform_thread.h stub and fix up all callers to use the new location and namespace.
TEST=none
BUG=none
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70346 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/deprecated/event_sys_unittest.cc')
-rw-r--r-- | chrome/common/deprecated/event_sys_unittest.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/common/deprecated/event_sys_unittest.cc b/chrome/common/deprecated/event_sys_unittest.cc index 3e7957e..1d35d5f 100644 --- a/chrome/common/deprecated/event_sys_unittest.cc +++ b/chrome/common/deprecated/event_sys_unittest.cc @@ -9,8 +9,8 @@ #include "base/basictypes.h" #include "base/message_loop.h" -#include "base/platform_thread.h" #include "base/port.h" +#include "base/threading/platform_thread.h" #include "build/build_config.h" #include "chrome/common/deprecated/event_sys-inl.h" #include "testing/gtest/include/gtest/gtest.h" @@ -140,7 +140,7 @@ TEST(EventSys, Basic) { // This goes pretty far beyond the normal use pattern, so don't use // ThreadTester as an example of what to do. class ThreadTester : public EventListener<TestEvent>, - public PlatformThread::Delegate { + public base::PlatformThread::Delegate { public: explicit ThreadTester(Pair* pair) : pair_(pair), remove_event_(&remove_event_mutex_), @@ -150,12 +150,12 @@ class ThreadTester : public EventListener<TestEvent>, ~ThreadTester() { pair_->event_channel()->RemoveListener(this); for (size_t i = 0; i < threads_.size(); i++) { - PlatformThread::Join(threads_[i].thread); + base::PlatformThread::Join(threads_[i].thread); } } struct ThreadInfo { - PlatformThreadHandle thread; + base::PlatformThreadHandle thread; }; struct ThreadArgs { @@ -173,7 +173,7 @@ class ThreadTester : public EventListener<TestEvent>, args.thread_running_mutex = &(thread_running_mutex); args.thread_running = false; args_ = args; - ASSERT_TRUE(PlatformThread::Create(0, this, &info.thread)); + ASSERT_TRUE(base::PlatformThread::Create(0, this, &info.thread)); thread_running_mutex.Acquire(); while ((args_.thread_running) == false) { thread_running_cond.Wait(); @@ -216,7 +216,7 @@ class ThreadTester : public EventListener<TestEvent>, remove_event_.Broadcast(); remove_event_mutex_.Release(); - PlatformThread::YieldCurrentThread(); + base::PlatformThread::YieldCurrentThread(); completed_mutex_.Acquire(); if (completed_) |