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

Unified Diff: chrome/browser/notifications/platform_notification_service_unittest.cc

Issue 1898153002: Migrate notifications to use the PermissionStatus enum (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix type traits conflicts Created 4 years, 8 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
« no previous file with comments | « chrome/browser/notifications/platform_notification_service_impl.cc ('k') | content/browser/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/notifications/platform_notification_service_unittest.cc
diff --git a/chrome/browser/notifications/platform_notification_service_unittest.cc b/chrome/browser/notifications/platform_notification_service_unittest.cc
index d9bf4090b335b5040d4b669b42ff01f58743cb29..94236ac498a05bdacd2f086a2c9736c7e5f5708e 100644
--- a/chrome/browser/notifications/platform_notification_service_unittest.cc
+++ b/chrome/browser/notifications/platform_notification_service_unittest.cc
@@ -24,6 +24,7 @@
#include "content/public/test/test_browser_thread_bundle.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
+#include "third_party/WebKit/public/platform/modules/permissions/permission_status.mojom.h"
#if defined(ENABLE_EXTENSIONS)
#include "base/command_line.h"
@@ -365,7 +366,7 @@ TEST_F(PlatformNotificationServiceTest, ExtensionPermissionChecks) {
// Verify that the service indicates that permission has been granted. We only
// check the UI thread-method for now, as that's the one guarding the behavior
// in the browser process.
- EXPECT_EQ(blink::WebNotificationPermissionAllowed,
+ EXPECT_EQ(blink::mojom::PermissionStatus::GRANTED,
service()->CheckPermissionOnUIThread(profile(),
extension->url(),
kFakeRenderProcessId));
« no previous file with comments | « chrome/browser/notifications/platform_notification_service_impl.cc ('k') | content/browser/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698