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

Side by Side Diff: extensions/browser/event_listener_map_unittest.cc

Issue 622343002: replace OVERRIDE and FINAL with override and final in extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « extensions/browser/error_map_unittest.cc ('k') | extensions/browser/event_router.h » ('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 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 "base/bind.h" 7 #include "base/bind.h"
8 #include "content/public/test/mock_render_process_host.h" 8 #include "content/public/test/mock_render_process_host.h"
9 #include "content/public/test/test_browser_context.h" 9 #include "content/public/test/test_browser_context.h"
10 #include "extensions/browser/event_router.h" 10 #include "extensions/browser/event_router.h"
(...skipping 14 matching lines...) Expand all
25 const char kEvent2Name[] = "event2"; 25 const char kEvent2Name[] = "event2";
26 const char kURL[] = "https://google.com/some/url"; 26 const char kURL[] = "https://google.com/some/url";
27 27
28 typedef base::Callback<scoped_ptr<EventListener>( 28 typedef base::Callback<scoped_ptr<EventListener>(
29 const std::string&, // event_name 29 const std::string&, // event_name
30 content::RenderProcessHost*, // process 30 content::RenderProcessHost*, // process
31 base::DictionaryValue* // filter (takes ownership) 31 base::DictionaryValue* // filter (takes ownership)
32 )> EventListenerConstructor; 32 )> EventListenerConstructor;
33 33
34 class EmptyDelegate : public EventListenerMap::Delegate { 34 class EmptyDelegate : public EventListenerMap::Delegate {
35 virtual void OnListenerAdded(const EventListener* listener) OVERRIDE {}; 35 virtual void OnListenerAdded(const EventListener* listener) override {};
36 virtual void OnListenerRemoved(const EventListener* listener) OVERRIDE {}; 36 virtual void OnListenerRemoved(const EventListener* listener) override {};
37 }; 37 };
38 38
39 class EventListenerMapTest : public testing::Test { 39 class EventListenerMapTest : public testing::Test {
40 public: 40 public:
41 EventListenerMapTest() 41 EventListenerMapTest()
42 : delegate_(new EmptyDelegate), 42 : delegate_(new EmptyDelegate),
43 listeners_(new EventListenerMap(delegate_.get())), 43 listeners_(new EventListenerMap(delegate_.get())),
44 browser_context_(new content::TestBrowserContext), 44 browser_context_(new content::TestBrowserContext),
45 process_(new content::MockRenderProcessHost(browser_context_.get())) {} 45 process_(new content::MockRenderProcessHost(browser_context_.get())) {}
46 46
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 380
381 scoped_ptr<Event> event(CreateEvent(kEvent1Name, 381 scoped_ptr<Event> event(CreateEvent(kEvent1Name,
382 GURL("http://www.google.com"))); 382 GURL("http://www.google.com")));
383 std::set<const EventListener*> targets(listeners_->GetEventListeners(*event)); 383 std::set<const EventListener*> targets(listeners_->GetEventListeners(*event));
384 ASSERT_EQ(0u, targets.size()); 384 ASSERT_EQ(0u, targets.size());
385 } 385 }
386 386
387 } // namespace 387 } // namespace
388 388
389 } // namespace extensions 389 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/error_map_unittest.cc ('k') | extensions/browser/event_router.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698