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

Unified Diff: extensions/browser/event_router_unittest.cc

Issue 411733002: WIP: diff which plumbs through the event URL. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | « extensions/browser/event_router.cc ('k') | extensions/browser/extension_function_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/event_router_unittest.cc
diff --git a/extensions/browser/event_router_unittest.cc b/extensions/browser/event_router_unittest.cc
index c47b7f20eddcee16cdd382e476cfefd5898118f1..d3ba28cadb94f16793287ce1b74bd32a3f0ccbe8 100644
--- a/extensions/browser/event_router_unittest.cc
+++ b/extensions/browser/event_router_unittest.cc
@@ -68,8 +68,11 @@ TEST_F(EventRouterTest, GetBaseEventName) {
// Tests adding and removing observers from EventRouter.
TEST_F(EventRouterTest, EventRouterObserver) {
EventRouter router(NULL, NULL);
- EventListener listener(
- "event_name", "extension_id", NULL, scoped_ptr<base::DictionaryValue>());
+ EventListener listener("event_name",
+ "extension_id",
+ GURL(),
+ NULL,
+ scoped_ptr<base::DictionaryValue>());
// Add/remove works without any observers.
router.OnListenerAdded(&listener);
@@ -106,6 +109,7 @@ TEST_F(EventRouterTest, EventRouterObserver) {
matching_observer.Reset();
EventListener sub_event_listener("event_name/1",
"extension_id",
+ GURL(),
NULL,
scoped_ptr<base::DictionaryValue>());
router.OnListenerAdded(&sub_event_listener);
« no previous file with comments | « extensions/browser/event_router.cc ('k') | extensions/browser/extension_function_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698