| OLD | NEW | 
|    1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |    1 // Copyright (c) 2006-2008 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/logging.h" |   13 #include "base/logging.h" | 
|   13 #include "base/platform_thread.h" |   14 #include "base/platform_thread.h" | 
|   14 #include "base/scoped_ptr.h" |   15 #include "base/scoped_ptr.h" | 
|   15 #include "base/spin_wait.h" |   16 #include "base/spin_wait.h" | 
|   16 #include "base/thread_collision_warner.h" |   17 #include "base/thread_collision_warner.h" | 
|   17 #include "base/time.h" |   18 #include "base/time.h" | 
|   18 #include "testing/gtest/include/gtest/gtest.h" |   19 #include "testing/gtest/include/gtest/gtest.h" | 
|   19 #include "testing/platform_test.h" |   20 #include "testing/platform_test.h" | 
|   20  |   21  | 
|   21 using base::TimeDelta; |   22 using base::TimeDelta; | 
| (...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  729  |  730  | 
|  730     { |  731     { | 
|  731       AutoLock auto_lock(lock_); |  732       AutoLock auto_lock(lock_); | 
|  732       // Send notification that we completed our "work." |  733       // Send notification that we completed our "work." | 
|  733       WorkIsCompleted(thread_id); |  734       WorkIsCompleted(thread_id); | 
|  734     } |  735     } | 
|  735   } |  736   } | 
|  736 } |  737 } | 
|  737  |  738  | 
|  738 }  // namespace |  739 }  // namespace | 
| OLD | NEW |