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

Side by Side Diff: base/threading/worker_pool_unittest.cc

Issue 9114020: Remove task.h and finish base::Bind() migration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 8 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/threading/worker_pool_posix.cc ('k') | base/threading/worker_pool_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/threading/worker_pool.h" 5 #include "base/threading/worker_pool.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
11 #include "base/task.h"
12 #include "base/test/test_timeouts.h" 11 #include "base/test/test_timeouts.h"
13 #include "base/time.h" 12 #include "base/time.h"
14 #include "base/threading/thread_checker_impl.h" 13 #include "base/threading/thread_checker_impl.h"
15 #include "base/synchronization/waitable_event.h" 14 #include "base/synchronization/waitable_event.h"
16 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
17 #include "testing/platform_test.h" 16 #include "testing/platform_test.h"
18 17
19 typedef PlatformTest WorkerPoolTest; 18 typedef PlatformTest WorkerPoolTest;
20 19
21 namespace base { 20 namespace base {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 const TimeDelta kMaxDuration = 89 const TimeDelta kMaxDuration =
91 TimeDelta::FromMilliseconds(TestTimeouts::tiny_timeout_ms()); 90 TimeDelta::FromMilliseconds(TestTimeouts::tiny_timeout_ms());
92 TimeTicks start = TimeTicks::Now(); 91 TimeTicks start = TimeTicks::Now();
93 while (!tester->finished() && TimeTicks::Now() - start < kMaxDuration) { 92 while (!tester->finished() && TimeTicks::Now() - start < kMaxDuration) {
94 MessageLoop::current()->RunAllPending(); 93 MessageLoop::current()->RunAllPending();
95 } 94 }
96 EXPECT_TRUE(tester->finished()); 95 EXPECT_TRUE(tester->finished());
97 } 96 }
98 97
99 } // namespace base 98 } // namespace base
OLDNEW
« no previous file with comments | « base/threading/worker_pool_posix.cc ('k') | base/threading/worker_pool_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698