| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/compiler_specific.h" | 5 #include "base/compiler_specific.h" |
| 6 #include "base/macros.h" |
| 6 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 7 #include "base/synchronization/lock.h" | 8 #include "base/synchronization/lock.h" |
| 8 #include "base/threading/platform_thread.h" | 9 #include "base/threading/platform_thread.h" |
| 9 #include "base/threading/simple_thread.h" | 10 #include "base/threading/simple_thread.h" |
| 10 #include "base/threading/thread_collision_warner.h" | 11 #include "base/threading/thread_collision_warner.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 12 | 13 |
| 13 // '' : local class member function does not have a body | 14 // '' : local class member function does not have a body |
| 14 MSVC_PUSH_DISABLE_WARNING(4822) | 15 MSVC_PUSH_DISABLE_WARNING(4822) |
| 15 | 16 |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 base::DelegateSimpleThread thread_b(&queue_user_b, "queue_user_thread_b"); | 371 base::DelegateSimpleThread thread_b(&queue_user_b, "queue_user_thread_b"); |
| 371 | 372 |
| 372 thread_a.Start(); | 373 thread_a.Start(); |
| 373 thread_b.Start(); | 374 thread_b.Start(); |
| 374 | 375 |
| 375 thread_a.Join(); | 376 thread_a.Join(); |
| 376 thread_b.Join(); | 377 thread_b.Join(); |
| 377 | 378 |
| 378 EXPECT_FALSE(local_reporter->fail_state()); | 379 EXPECT_FALSE(local_reporter->fail_state()); |
| 379 } | 380 } |
| OLD | NEW |