Add generic entrypoint and run loop in TestWebKitAPI
authordon.olmstead@sony.com <don.olmstead@sony.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Sep 2018 01:57:00 +0000 (01:57 +0000)
committerdon.olmstead@sony.com <don.olmstead@sony.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Sep 2018 01:57:00 +0000 (01:57 +0000)
commit08830ee4833fc366aa6aea8ac472845ec1d04a32
tree8e3b5b82a02f57558d74813db1fa0fc72692be9e
parent9908bcfb6a2859a3ab02635cfc1b520cfdf87744
Add generic entrypoint and run loop in TestWebKitAPI
https://bugs.webkit.org/show_bug.cgi?id=189287

Reviewed by Michael Catanzaro.

The implementations in jsconly are platform agnostic.

* TestWebKitAPI/PlatformJSCOnly.cmake:
Use the glib implementation of Utilities when using that as a run loop
otherwise use the generic implementation.

* TestWebKitAPI/PlatformUtilities.h:
Remove repeated entries from Utilities.h.

* TestWebKitAPI/PlatformWPE.cmake:
Use the generic main.cpp.

* TestWebKitAPI/generic/UtilitiesGeneric.cpp: Renamed from Tools/TestWebKitAPI/jsconly/PlatformUtilitiesJSCOnly.cpp.
(TestWebKitAPI::Util::run):
(TestWebKitAPI::Util::spinRunLoop):
Moved to a generic implementation and added spinRunLoop.

* TestWebKitAPI/generic/main.cpp: Renamed from Tools/TestWebKitAPI/jsconly/main.cpp.
Share between JSCOnly and WPE

* TestWebKitAPI/wpe/main.cpp: Removed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@235654 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tools/ChangeLog
Tools/TestWebKitAPI/PlatformJSCOnly.cmake
Tools/TestWebKitAPI/PlatformUtilities.h
Tools/TestWebKitAPI/PlatformWPE.cmake
Tools/TestWebKitAPI/generic/UtilitiesGeneric.cpp [moved from Tools/TestWebKitAPI/jsconly/PlatformUtilitiesJSCOnly.cpp with 86% similarity]
Tools/TestWebKitAPI/generic/main.cpp [moved from Tools/TestWebKitAPI/jsconly/main.cpp with 100% similarity]
Tools/TestWebKitAPI/wpe/main.cpp [deleted file]