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

Unified Diff: webrtc/base/criticalsection_unittest.cc

Issue 2128583003: Remove unused CriticalSection::IsLocked() (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/base/criticalsection.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « webrtc/base/criticalsection.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698