Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2001)

Unified Diff: Source/testing/runner/TestRunner.cpp

Issue 23135009: Improve IDB module's SecurityError messages. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: test Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/testing/runner/TestRunner.cpp
diff --git a/Source/testing/runner/TestRunner.cpp b/Source/testing/runner/TestRunner.cpp
index 555b811a216faa2bdd363b7c209830a78575b9b3..2bd778bc9498b3a33cfc203417048c1c12571869 100644
--- a/Source/testing/runner/TestRunner.cpp
+++ b/Source/testing/runner/TestRunner.cpp
@@ -283,6 +283,7 @@ TestRunner::TestRunner(TestInterfaces* interfaces)
#if ENABLE_NOTIFICATIONS
bindMethod("grantWebNotificationPermission", &TestRunner::grantWebNotificationPermission);
bindMethod("simulateLegacyWebNotificationClick", &TestRunner::simulateLegacyWebNotificationClick);
+ bindMethod("removeAllWebNotificationPermissions", &TestRunner::removeAllWebNotificationPermissions);
#endif
bindMethod("addMockSpeechInputResult", &TestRunner::addMockSpeechInputResult);
bindMethod("setMockSpeechInputDumpRect", &TestRunner::setMockSpeechInputDumpRect);
@@ -311,7 +312,6 @@ TestRunner::TestRunner(TestInterfaces* interfaces)
// The following are stubs.
bindMethod("dumpDatabaseCallbacks", &TestRunner::notImplemented);
bindMethod("denyWebNotificationPermission", &TestRunner::notImplemented);
- bindMethod("removeAllWebNotificationPermissions", &TestRunner::notImplemented);
bindMethod("simulateWebNotificationClick", &TestRunner::notImplemented);
bindMethod("setIconDatabaseEnabled", &TestRunner::notImplemented);
bindMethod("setScrollbarPolicy", &TestRunner::notImplemented);
@@ -1858,6 +1858,11 @@ void TestRunner::simulateLegacyWebNotificationClick(const CppArgumentList& argum
}
result->set(m_notificationPresenter->simulateClick(WebString::fromUTF8(arguments[0].toString())));
}
+void TestRunner::removeAllWebNotificationPermissions(const CppArgumentList& arguments, CppVariant* result)
+{
+ m_notificationPresenter->removeAllWebNotificationPermissions();
jochen (gone - plz use gerrit) 2013/08/21 08:48:15 why not do this in TestRunner::reset automatically
+ result->setNull();
+}
#endif
void TestRunner::addMockSpeechInputResult(const CppArgumentList& arguments, CppVariant* result)
« Source/modules/indexeddb/IDBFactory.cpp ('K') | « Source/testing/runner/TestRunner.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698