| OLD | NEW |
| 1 // Copyright (c) 2010 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 #include "base/message_loop.h" | 5 #include "base/message_loop.h" |
| 6 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" | 6 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" |
| 7 #include "base/thread.h" | 7 #include "base/threading/thread.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 | 9 |
| 10 namespace base { | 10 namespace base { |
| 11 | 11 |
| 12 namespace { | 12 namespace { |
| 13 | 13 |
| 14 // We use caps here just to ensure that the method name doesn't interfere with | 14 // We use caps here just to ensure that the method name doesn't interfere with |
| 15 // the wildcarded suppressions. | 15 // the wildcarded suppressions. |
| 16 class TOOLS_SANITY_TEST_CONCURRENT_THREAD : public PlatformThread::Delegate { | 16 class TOOLS_SANITY_TEST_CONCURRENT_THREAD : public PlatformThread::Delegate { |
| 17 public: | 17 public: |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 PlatformThread::Create(0, thread1, &a); | 133 PlatformThread::Create(0, thread1, &a); |
| 134 PlatformThread::Create(0, thread2, &b); | 134 PlatformThread::Create(0, thread2, &b); |
| 135 PlatformThread::Join(a); | 135 PlatformThread::Join(a); |
| 136 PlatformThread::Join(b); | 136 PlatformThread::Join(b); |
| 137 EXPECT_TRUE(shared); | 137 EXPECT_TRUE(shared); |
| 138 delete thread1; | 138 delete thread1; |
| 139 delete thread2; | 139 delete thread2; |
| 140 } | 140 } |
| 141 | 141 |
| 142 } // namespace base | 142 } // namespace base |
| OLD | NEW |