Browse Source

test: update notification_provenance.patch to fix unittests compilation (#15060)

Alexey Kuzmin 6 years ago
parent
commit
6c3d29712f
1 changed files with 37 additions and 0 deletions
  1. 37 0
      patches/common/chromium/notification_provenance.patch

+ 37 - 0
patches/common/chromium/notification_provenance.patch

@@ -50,6 +50,19 @@ index 193f5d241c31..3cfcc6b86ae1 100644
    BrowserContext* browser_context_;
  
    scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_;
+diff --git a/content/browser/notifications/blink_notification_service_impl_unittest.cc b/content/browser/notifications/blink_notification_service_impl_unittest.cc
+index 618c7bd88cde..f528be53cffe 100644
+--- a/content/browser/notifications/blink_notification_service_impl_unittest.cc
++++ b/content/browser/notifications/blink_notification_service_impl_unittest.cc
+@@ -113,7 +113,7 @@ class BlinkNotificationServiceImplTest : public ::testing::Test {
+     blink::mojom::NotificationServicePtr notification_service_ptr;
+     notification_service_ = std::make_unique<BlinkNotificationServiceImpl>(
+         notification_context_.get(), &browser_context_,
+-        embedded_worker_helper_->context_wrapper(),
++        embedded_worker_helper_->context_wrapper(), nullptr,
+         url::Origin::Create(GURL(kTestOrigin)),
+         mojo::MakeRequest(&notification_service_ptr));
+ 
 diff --git a/content/browser/notifications/platform_notification_context_impl.cc b/content/browser/notifications/platform_notification_context_impl.cc
 index 627e8dbd251d..48c290470e48 100644
 --- a/content/browser/notifications/platform_notification_context_impl.cc
@@ -125,6 +138,30 @@ index 228fc30240c5..fd3e20c5335a 100644
        BrowserContext* browser_context,
        const std::string& notification_id,
        const GURL& origin,
+diff --git a/content/test/mock_platform_notification_service.cc b/content/test/mock_platform_notification_service.cc
+index 28dc2651a326..646817070e7f 100644
+--- a/content/test/mock_platform_notification_service.cc
++++ b/content/test/mock_platform_notification_service.cc
+@@ -20,6 +20,7 @@ MockPlatformNotificationService::MockPlatformNotificationService() = default;
+ MockPlatformNotificationService::~MockPlatformNotificationService() = default;
+ 
+ void MockPlatformNotificationService::DisplayNotification(
++    RenderProcessHost* render_process_host,
+     BrowserContext* browser_context,
+     const std::string& notification_id,
+     const GURL& origin,
+diff --git a/content/test/mock_platform_notification_service.h b/content/test/mock_platform_notification_service.h
+index baf24f9effc9..98a128e5d249 100644
+--- a/content/test/mock_platform_notification_service.h
++++ b/content/test/mock_platform_notification_service.h
+@@ -42,6 +42,7 @@ class MockPlatformNotificationService : public PlatformNotificationService {
+ 
+   // PlatformNotificationService implementation.
+   void DisplayNotification(
++      RenderProcessHost* render_process_host,
+       BrowserContext* browser_context,
+       const std::string& notification_id,
+       const GURL& origin,
 -- 
 2.17.0