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

Side by Side Diff: ash/test/launcher_item_delegate_manager_test_api.cc

Issue 23606016: Refactor LauncherItemController and LauncherItemDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix for unittest.. Created 7 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 | « ash/test/launcher_item_delegate_manager_test_api.h ('k') | ash/test/test_launcher_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "ash/test/launcher_item_delegate_manager_test_api.h"
6
7 #include "ash/launcher/launcher_item_delegate.h"
8 #include "ash/launcher/launcher_item_delegate_manager.h"
9 #include "base/stl_util.h"
10
11 namespace ash {
12 namespace test {
13
14 LauncherItemDelegateManagerTestAPI::LauncherItemDelegateManagerTestAPI(
15 LauncherItemDelegateManager* manager)
16 : manager_(manager) {
17 DCHECK(manager_);
18 }
19
20 void
21 LauncherItemDelegateManagerTestAPI::RemoveAllLauncherItemDelegateForTest() {
22 STLDeleteContainerPairSecondPointers(
23 manager_->id_to_item_delegate_map_.begin(),
24 manager_->id_to_item_delegate_map_.end());
25 manager_->id_to_item_delegate_map_.clear();
26 }
27
28 } // namespace test
29 } // namespace ash
OLDNEW
« no previous file with comments | « ash/test/launcher_item_delegate_manager_test_api.h ('k') | ash/test/test_launcher_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698