Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / content / shell / renderer / test_runner / mock_web_push_client.cc
index 193e63f..98bd8d2 100644 (file)
@@ -15,9 +15,8 @@ using blink::WebString;
 namespace content {
 
 MockWebPushClient::MockWebPushClient()
-  // The default state should be be an error with "Registration failed." message
-  // because LayoutTests are currently depending on that.
-  : error_message_("Registration failed.") {
+    : error_message_(
+          "Registration failed (default mock client error message)") {
 }
 
 MockWebPushClient::~MockWebPushClient() {}
@@ -36,8 +35,8 @@ void MockWebPushClient::SetMockErrorValues(const std::string& message) {
 }
 
 void MockWebPushClient::registerPushMessaging(
-    const WebString& sender_id,
-    blink::WebPushRegistrationCallbacks* callbacks) {
+    blink::WebPushRegistrationCallbacks* callbacks,
+    blink::WebServiceWorkerProvider* service_worker_provider) {
   DCHECK(callbacks);
 
   if (!error_message_.empty()) {