| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/values.h" | 5 #include "base/values.h" |
| 6 #include "chrome/browser/extensions/event_router.h" | 6 #include "chrome/browser/extensions/event_router.h" |
| 7 #include "chrome/browser/extensions/extension_apitest.h" | 7 #include "chrome/browser/extensions/extension_apitest.h" |
| 8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
| 9 #include "chrome/common/chrome_notification_types.h" | 9 #include "chrome/common/chrome_notification_types.h" |
| 10 #include "content/public/browser/notification_registrar.h" | 10 #include "content/public/browser/notification_registrar.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 83 |
| 84 ASSERT_TRUE(RunExtensionTest("messaging/connect_external")) << message_; | 84 ASSERT_TRUE(RunExtensionTest("messaging/connect_external")) << message_; |
| 85 } | 85 } |
| 86 | 86 |
| 87 // Tests that messages with event_urls are only passed to extensions with | 87 // Tests that messages with event_urls are only passed to extensions with |
| 88 // appropriate permissions. | 88 // appropriate permissions. |
| 89 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, MessagingEventURL) { | 89 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, MessagingEventURL) { |
| 90 MessageSender sender; | 90 MessageSender sender; |
| 91 ASSERT_TRUE(RunExtensionTest("messaging/event_url")) << message_; | 91 ASSERT_TRUE(RunExtensionTest("messaging/event_url")) << message_; |
| 92 } | 92 } |
| 93 |
| 94 // Tests connecting from a panel to its extension. |
| 95 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, MessagingPanel) { |
| 96 ASSERT_TRUE(RunExtensionTest("messaging/connect_panel")) << message_; |
| 97 } |
| OLD | NEW |