Unreviewed, rolling out r235784.
[WebKit-https.git] / Tools / TestWebKitAPI / Tests / WTF / RunLoop.cpp
index 33c69ff..93b3d8c 100644 (file)
@@ -85,7 +85,6 @@ TEST(WTF_RunLoop, OneShotTimer)
 
         void fired()
         {
-            EXPECT_FALSE(isActive());
             m_testFinished = true;
             stop();
         }
@@ -101,44 +100,6 @@ TEST(WTF_RunLoop, OneShotTimer)
     }
 }
 
-TEST(WTF_RunLoop, ChainingOneShotTimer)
-{
-    RunLoop::initializeMainRunLoop();
-
-    bool testFinished = false;
-
-    class DerivedTimer : public RunLoop::Timer<DerivedTimer> {
-    public:
-        DerivedTimer(bool& testFinished)
-            : RunLoop::Timer<DerivedTimer>(RunLoop::current(), this, &DerivedTimer::fired)
-            , m_testFinished(testFinished)
-        {
-        }
-
-        void fired()
-        {
-            EXPECT_FALSE(isActive());
-            if (++m_count != 2) {
-                startOneShot(100_ms);
-                EXPECT_TRUE(isActive());
-            } else {
-                m_testFinished = true;
-                stop();
-            }
-        }
-
-    private:
-        unsigned m_count { 0 };
-        bool& m_testFinished;
-    };
-
-    {
-        DerivedTimer timer(testFinished);
-        timer.startOneShot(100_ms);
-        Util::run(&testFinished);
-    }
-}
-
 TEST(WTF_RunLoop, RepeatingTimer)
 {
     RunLoop::initializeMainRunLoop();
@@ -155,7 +116,6 @@ TEST(WTF_RunLoop, RepeatingTimer)
 
         void fired()
         {
-            EXPECT_TRUE(isActive());
             if (++m_count == 10) {
                 m_testFinished = true;
                 stop();