| Index: Source/modules/geolocation/testing/InternalsGeolocation.cpp
|
| diff --git a/Source/modules/geolocation/testing/InternalsGeolocation.cpp b/Source/modules/geolocation/testing/InternalsGeolocation.cpp
|
| index 6174a849c0ceb9f6375e29d033b4c3b1ba6aec6f..ff1f1b099563782fb9fe48432e63b86895229851 100644
|
| --- a/Source/modules/geolocation/testing/InternalsGeolocation.cpp
|
| +++ b/Source/modules/geolocation/testing/InternalsGeolocation.cpp
|
| @@ -41,45 +41,45 @@
|
|
|
| namespace WebCore {
|
|
|
| -void InternalsGeolocation::setGeolocationClientMock(Internals* internals, Document* document)
|
| +void InternalsGeolocation::setGeolocationClientMock(Internals&, Document* document)
|
| {
|
| - ASSERT(internals && document && document->page());
|
| + ASSERT(document && document->page());
|
| GeolocationController* controller = GeolocationController::from(document->page());
|
| GeolocationClientMock* client = new GeolocationClientMock();
|
| controller->setClientForTest(client);
|
| client->setController(controller);
|
| }
|
|
|
| -void InternalsGeolocation::setGeolocationPosition(Internals* internals, Document* document, double latitude, double longitude, double accuracy)
|
| +void InternalsGeolocation::setGeolocationPosition(Internals&, Document* document, double latitude, double longitude, double accuracy)
|
| {
|
| - ASSERT(internals && document && document->page());
|
| + ASSERT(document && document->page());
|
| GeolocationClientMock* client = geolocationClient(document);
|
| if (!client)
|
| return;
|
| client->setPosition(GeolocationPosition::create(currentTime(), latitude, longitude, accuracy));
|
| }
|
|
|
| -void InternalsGeolocation::setGeolocationPositionUnavailableError(Internals* internals, Document* document, const String& message)
|
| +void InternalsGeolocation::setGeolocationPositionUnavailableError(Internals&, Document* document, const String& message)
|
| {
|
| - ASSERT(internals && document && document->page());
|
| + ASSERT(document && document->page());
|
| GeolocationClientMock* client = geolocationClient(document);
|
| if (!client)
|
| return;
|
| client->setPositionUnavailableError(message);
|
| }
|
|
|
| -void InternalsGeolocation::setGeolocationPermission(Internals* internals, Document* document, bool allowed)
|
| +void InternalsGeolocation::setGeolocationPermission(Internals&, Document* document, bool allowed)
|
| {
|
| - ASSERT(internals && document && document->page());
|
| + ASSERT(document && document->page());
|
| GeolocationClientMock* client = geolocationClient(document);
|
| if (!client)
|
| return;
|
| client->setPermission(allowed);
|
| }
|
|
|
| -int InternalsGeolocation::numberOfPendingGeolocationPermissionRequests(Internals* internals, Document* document)
|
| +int InternalsGeolocation::numberOfPendingGeolocationPermissionRequests(Internals&, Document* document)
|
| {
|
| - ASSERT(internals && document && document->page());
|
| + ASSERT(document && document->page());
|
| GeolocationClientMock* client = geolocationClient(document);
|
| if (!client)
|
| return -1;
|
|
|