Index: chrome/browser/extensions/notifications_apitest.cc |
=================================================================== |
--- chrome/browser/extensions/notifications_apitest.cc (revision 101732) |
+++ chrome/browser/extensions/notifications_apitest.cc (working copy) |
@@ -9,13 +9,27 @@ |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/ui/browser.h" |
-IN_PROC_BROWSER_TEST_F(ExtensionApiTest, Notifications) { |
+IN_PROC_BROWSER_TEST_F(ExtensionApiTest, NotificationsNoPermission) { |
#if defined(OS_LINUX) && defined(TOOLKIT_VIEWS) |
// Notifications not supported on linux/views yet. |
#else |
ASSERT_TRUE(RunExtensionTest("notifications/has_not_permission")) << message_; |
+#endif |
+} |
+ |
+IN_PROC_BROWSER_TEST_F(ExtensionApiTest, NotificationsHasPermissionManifest) { |
+#if defined(OS_LINUX) && defined(TOOLKIT_VIEWS) |
+ // Notifications not supported on linux/views yet. |
rafaelw
2011/09/19 18:12:00
indent
|
+#else |
ASSERT_TRUE(RunExtensionTest("notifications/has_permission_manifest")) |
<< message_; |
+#endif |
+} |
+ |
+IN_PROC_BROWSER_TEST_F(ExtensionApiTest, NotificationsHasPermission) { |
+#if defined(OS_LINUX) && defined(TOOLKIT_VIEWS) |
+ // Notifications not supported on linux/views yet. |
rafaelw
2011/09/19 18:12:00
indent
|
+#else |
DesktopNotificationServiceFactory::GetForProfile(browser()->profile()) |
->GrantPermission(GURL( |
"chrome-extension://peoadpeiejnhkmpaakpnompolbglelel")); |