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

Side by Side Diff: base/condition_variable_unittest.cc

Issue 6001010: Move platform_thread to base/threading and put in the base namespace. I left ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 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/cancellation_flag.h ('k') | base/debug/debugger.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // Multi-threaded tests of ConditionVariable class. 5 // Multi-threaded tests of ConditionVariable class.
6 6
7 #include <time.h> 7 #include <time.h>
8 #include <algorithm> 8 #include <algorithm>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/condition_variable.h" 11 #include "base/condition_variable.h"
12 #include "base/lock.h" 12 #include "base/lock.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/platform_thread.h"
15 #include "base/scoped_ptr.h" 14 #include "base/scoped_ptr.h"
16 #include "base/spin_wait.h" 15 #include "base/spin_wait.h"
16 #include "base/threading/platform_thread.h"
17 #include "base/thread_collision_warner.h" 17 #include "base/thread_collision_warner.h"
18 #include "base/time.h" 18 #include "base/time.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 #include "testing/platform_test.h" 20 #include "testing/platform_test.h"
21 21
22 using base::PlatformThread;
23 using base::PlatformThreadHandle;
22 using base::TimeDelta; 24 using base::TimeDelta;
23 using base::TimeTicks; 25 using base::TimeTicks;
24 26
25 namespace { 27 namespace {
26 //------------------------------------------------------------------------------ 28 //------------------------------------------------------------------------------
27 // Define our test class, with several common variables. 29 // Define our test class, with several common variables.
28 //------------------------------------------------------------------------------ 30 //------------------------------------------------------------------------------
29 31
30 class ConditionVariableTest : public PlatformTest { 32 class ConditionVariableTest : public PlatformTest {
31 public: 33 public:
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 742
741 { 743 {
742 AutoLock auto_lock(lock_); 744 AutoLock auto_lock(lock_);
743 // Send notification that we completed our "work." 745 // Send notification that we completed our "work."
744 WorkIsCompleted(thread_id); 746 WorkIsCompleted(thread_id);
745 } 747 }
746 } 748 }
747 } 749 }
748 750
749 } // namespace 751 } // namespace
OLDNEW
« no previous file with comments | « base/cancellation_flag.h ('k') | base/debug/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698