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

Side by Side Diff: chrome/browser/extensions/extension_messages_apitest.cc

Issue 10965023: [Panels] Provide a tab id for web contents in Panels. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/panels/panel.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/panels/panel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698