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

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

Issue 5783006: Cleanup: Remove unneeded includes of notification_service.h in other headers.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "chrome/browser/extensions/extension_apitest.h" 5 #include "chrome/browser/extensions/extension_apitest.h"
6 #include "chrome/browser/extensions/extension_event_router.h" 6 #include "chrome/browser/extensions/extension_event_router.h"
7 #include "chrome/browser/profiles/profile.h" 7 #include "chrome/browser/profiles/profile.h"
8 #include "chrome/common/notification_registrar.h" 8 #include "chrome/common/notification_registrar.h"
9 #include "chrome/common/notification_service.h"
9 #include "googleurl/src/gurl.h" 10 #include "googleurl/src/gurl.h"
10 11
11 namespace { 12 namespace {
12 13
13 class MessageSender : public NotificationObserver { 14 class MessageSender : public NotificationObserver {
14 public: 15 public:
15 MessageSender() { 16 MessageSender() {
16 registrar_.Add(this, NotificationType::EXTENSION_HOST_DID_STOP_LOADING, 17 registrar_.Add(this, NotificationType::EXTENSION_HOST_DID_STOP_LOADING,
17 NotificationService::AllSources()); 18 NotificationService::AllSources());
18 } 19 }
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 66
66 ASSERT_TRUE(RunExtensionTest("messaging/connect_external")) << message_; 67 ASSERT_TRUE(RunExtensionTest("messaging/connect_external")) << message_;
67 } 68 }
68 69
69 // Tests that messages with event_urls are only passed to extensions with 70 // Tests that messages with event_urls are only passed to extensions with
70 // appropriate permissions. 71 // appropriate permissions.
71 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, MessagingEventURL) { 72 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, MessagingEventURL) {
72 MessageSender sender; 73 MessageSender sender;
73 ASSERT_TRUE(RunExtensionTest("messaging/event_url")) << message_; 74 ASSERT_TRUE(RunExtensionTest("messaging/event_url")) << message_;
74 } 75 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_menu_manager.cc ('k') | chrome/browser/extensions/extension_metrics_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698