| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "extensions/browser/event_router.h" | 5 #include "extensions/browser/event_router.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" |
| 11 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/values.h" | 13 #include "base/values.h" |
| 13 #include "content/public/browser/notification_service.h" | 14 #include "content/public/browser/notification_service.h" |
| 14 #include "extensions/browser/event_listener_map.h" | 15 #include "extensions/browser/event_listener_map.h" |
| 15 #include "extensions/browser/extensions_test.h" | 16 #include "extensions/browser/extensions_test.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 17 | 18 |
| 18 namespace extensions { | 19 namespace extensions { |
| 19 | 20 |
| 20 namespace { | 21 namespace { |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 RunEventRouterObserverTest( | 165 RunEventRouterObserverTest( |
| 165 base::Bind(&CreateEventListenerForExtension, "extension_id")); | 166 base::Bind(&CreateEventListenerForExtension, "extension_id")); |
| 166 } | 167 } |
| 167 | 168 |
| 168 TEST_F(EventRouterTest, EventRouterObserverForURLs) { | 169 TEST_F(EventRouterTest, EventRouterObserverForURLs) { |
| 169 RunEventRouterObserverTest( | 170 RunEventRouterObserverTest( |
| 170 base::Bind(&CreateEventListenerForURL, GURL("http://google.com/path"))); | 171 base::Bind(&CreateEventListenerForURL, GURL("http://google.com/path"))); |
| 171 } | 172 } |
| 172 | 173 |
| 173 } // namespace extensions | 174 } // namespace extensions |
| OLD | NEW |