| 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_listener_map.h" | 5 #include "extensions/browser/event_listener_map.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| 11 #include "base/values.h" |
| 11 #include "content/public/test/mock_render_process_host.h" | 12 #include "content/public/test/mock_render_process_host.h" |
| 12 #include "content/public/test/test_browser_context.h" | 13 #include "content/public/test/test_browser_context.h" |
| 13 #include "extensions/browser/event_router.h" | 14 #include "extensions/browser/event_router.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 15 #include "url/gurl.h" | 16 #include "url/gurl.h" |
| 16 | 17 |
| 17 using base::DictionaryValue; | 18 using base::DictionaryValue; |
| 18 using base::ListValue; | 19 using base::ListValue; |
| 19 using base::Value; | 20 using base::Value; |
| 20 | 21 |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 | 375 |
| 375 std::unique_ptr<Event> event( | 376 std::unique_ptr<Event> event( |
| 376 CreateEvent(kEvent1Name, GURL("http://www.google.com"))); | 377 CreateEvent(kEvent1Name, GURL("http://www.google.com"))); |
| 377 std::set<const EventListener*> targets(listeners_->GetEventListeners(*event)); | 378 std::set<const EventListener*> targets(listeners_->GetEventListeners(*event)); |
| 378 ASSERT_EQ(0u, targets.size()); | 379 ASSERT_EQ(0u, targets.size()); |
| 379 } | 380 } |
| 380 | 381 |
| 381 } // namespace | 382 } // namespace |
| 382 | 383 |
| 383 } // namespace extensions | 384 } // namespace extensions |
| OLD | NEW |