summaryrefslogtreecommitdiff
path: root/Tools/TestWebKitAPI/Tests/WebKit2/Geolocation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/TestWebKitAPI/Tests/WebKit2/Geolocation.cpp')
-rw-r--r--Tools/TestWebKitAPI/Tests/WebKit2/Geolocation.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/Tools/TestWebKitAPI/Tests/WebKit2/Geolocation.cpp b/Tools/TestWebKitAPI/Tests/WebKit2/Geolocation.cpp
index b6d872f4c..bf7a93726 100644
--- a/Tools/TestWebKitAPI/Tests/WebKit2/Geolocation.cpp
+++ b/Tools/TestWebKitAPI/Tests/WebKit2/Geolocation.cpp
@@ -24,13 +24,10 @@
*/
#include "config.h"
-
-#if WK_HAVE_C_SPI
-
#include "PlatformUtilities.h"
#include "PlatformWebView.h"
#include "Test.h"
-#include <WebKit/WKRetainPtr.h>
+#include <WebKit2/WKRetainPtr.h>
#include <string.h>
#include <vector>
@@ -106,7 +103,7 @@ void decidePolicyForGeolocationPermissionRequestCallBack(WKPageRef page, WKFrame
void setupGeolocationProvider(WKContextRef context, void *clientInfo)
{
WKGeolocationProviderV1 providerCallback;
- memset(&providerCallback, 0, sizeof(WKGeolocationProviderV1));
+ memset(&providerCallback, 0, sizeof(WKGeolocationProvider));
providerCallback.base.version = 1;
providerCallback.base.clientInfo = clientInfo;
@@ -338,5 +335,3 @@ TEST(WebKit2, GeolocationTransitionToLowAccuracy)
}
} // namespace TestWebKitAPI
-
-#endif