summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/mock
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform/mock')
-rw-r--r--Source/WebCore/platform/mock/GeolocationClientMock.cpp5
-rw-r--r--Source/WebCore/platform/mock/GeolocationClientMock.h1
2 files changed, 6 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);
diff --git a/Source/WebCore/platform/mock/GeolocationClientMock.h b/Source/WebCore/platform/mock/GeolocationClientMock.h
index df35316..b400166 100644
--- a/Source/WebCore/platform/mock/GeolocationClientMock.h
+++ b/Source/WebCore/platform/mock/GeolocationClientMock.h
@@ -59,6 +59,7 @@ public:
void setError(PassRefPtr<GeolocationError>);
void setPosition(PassRefPtr<GeolocationPosition>);
void setPermission(bool allowed);
+ int numberOfPendingPermissionRequests() const;
// GeolocationClient
virtual void geolocationDestroyed();