diff options
author | mmentovai@google.com <mmentovai@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-28 17:40:59 +0000 |
---|---|---|
committer | mmentovai@google.com <mmentovai@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-28 17:40:59 +0000 |
commit | b060bd427af7ea65e6afc74d9aef3f055894154e (patch) | |
tree | cfbc2a1a7fb30dd82033ada58a6575582b9571c8 /base/worker_pool_unittest.cc | |
parent | 7ec93dfb306b62e48cdf2498f4a2b5074074969a (diff) | |
download | chromium_src-b060bd427af7ea65e6afc74d9aef3f055894154e.zip chromium_src-b060bd427af7ea65e6afc74d9aef3f055894154e.tar.gz chromium_src-b060bd427af7ea65e6afc74d9aef3f055894154e.tar.bz2 |
WorkerPool implementation for Mac, using NSOperationQueue
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1493 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/worker_pool_unittest.cc')
-rw-r--r-- | base/worker_pool_unittest.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/base/worker_pool_unittest.cc b/base/worker_pool_unittest.cc index ba79766..aea78e6 100644 --- a/base/worker_pool_unittest.cc +++ b/base/worker_pool_unittest.cc @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include "base/platform_test.h" #include "base/task.h" #include "base/waitable_event.h" #include "base/worker_pool.h" @@ -9,6 +10,8 @@ using base::WaitableEvent; +typedef PlatformTest WorkerPoolTest; + namespace { class PostTaskTestTask : public Task { @@ -24,7 +27,7 @@ class PostTaskTestTask : public Task { WaitableEvent* event_; }; -TEST(WorkerPoolTest, PostTask) { +TEST_F(WorkerPoolTest, PostTask) { WaitableEvent test_event(false, false); WaitableEvent long_test_event(false, false); bool signaled; |