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

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

Issue 2899743002: Remove raw base::DictionaryValue::Set in //extensions (Closed)
Patch Set: Addressed nit Created 3 years, 6 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/computed_hashes.cc ('k') | extensions/browser/extension_prefs.cc » ('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 <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
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
OLDNEW
« no previous file with comments | « extensions/browser/computed_hashes.cc ('k') | extensions/browser/extension_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698