summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/mock/GeolocationClientMock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform/mock/GeolocationClientMock.cpp')
-rw-r--r--Source/WebCore/platform/mock/GeolocationClientMock.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/WebCore/platform/mock/GeolocationClientMock.cpp b/Source/WebCore/platform/mock/GeolocationClientMock.cpp
index 5255b34..d067c8a 100644
--- a/Source/WebCore/platform/mock/GeolocationClientMock.cpp
+++ b/Source/WebCore/platform/mock/GeolocationClientMock.cpp
@@ -79,6 +79,11 @@ void GeolocationClientMock::setPermission(bool allowed)
asyncUpdatePermission();
}
+int GeolocationClientMock::numberOfPendingPermissionRequests() const
+{
+ return m_pendingPermission.size();
+}
+
void GeolocationClientMock::requestPermission(Geolocation* geolocation)
{
m_pendingPermission.add(geolocation);