| Index: webrtc/base/criticalsection_unittest.cc
|
| diff --git a/webrtc/base/criticalsection_unittest.cc b/webrtc/base/criticalsection_unittest.cc
|
| index fb38737c9a652768ec1c53eac17bd7336d2e79ed..42679d987f4a6cfec4daa5007e1ee5d43c922374 100644
|
| --- a/webrtc/base/criticalsection_unittest.cc
|
| +++ b/webrtc/base/criticalsection_unittest.cc
|
| @@ -306,23 +306,6 @@ TEST(CriticalSectionTest, Basic) {
|
| EXPECT_EQ(0, runner.shared_value());
|
| }
|
|
|
| -#if !defined(NDEBUG) || defined(DCHECK_ALWAYS_ON)
|
| -TEST(CriticalSectionTest, IsLocked) {
|
| - // Simple single-threaded test of IsLocked.
|
| - CriticalSection cs;
|
| - EXPECT_FALSE(cs.IsLocked());
|
| - cs.Enter();
|
| - EXPECT_TRUE(cs.IsLocked());
|
| - cs.Leave();
|
| - EXPECT_FALSE(cs.IsLocked());
|
| - if (!cs.TryEnter())
|
| - FAIL();
|
| - EXPECT_TRUE(cs.IsLocked());
|
| - cs.Leave();
|
| - EXPECT_FALSE(cs.IsLocked());
|
| -}
|
| -#endif
|
| -
|
| class PerfTestData {
|
| public:
|
| PerfTestData(int expected_count, Event* event)
|
|
|