tizen 2.4 release
[framework/web/wrt-commons.git] / tests / event / test_controller.cpp
index 5308720..6b2e8b3 100644 (file)
 #include <dpl/waitable_event.h>
 #include <dpl/type_list.h>
 #include <dpl/application.h>
-#include <dpl/atomic.h>
+
+#include <atomic>
 #include <list>
-#include <vector>
 #include <memory>
+#include <vector>
 
 RUNNER_TEST_GROUP_INIT(DPL)
 
@@ -344,8 +345,14 @@ struct TestContext
     ControllerList controllers;
     ThreadList threads;
     QuitController quitter;
-    DPL::Atomic g_ReceivedCounter;
-    DPL::Atomic g_SentCounter;
+    std::atomic<int> g_ReceivedCounter;
+    std::atomic<int> g_SentCounter;
+
+    TestContext()
+        : g_ReceivedCounter(0)
+        , g_SentCounter(0)
+    {
+    }
 };
 typedef std::unique_ptr<TestContext> TestContextPtr;
 TestContextPtr testContextPtr;