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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/launcher_item_delegate_manager_test_api.cc
diff --git a/ash/test/launcher_item_delegate_manager_test_api.cc b/ash/test/launcher_item_delegate_manager_test_api.cc
new file mode 100644
index 0000000000000000000000000000000000000000..159f7dafa90daa293b0ecd768c4339da44259c87
--- /dev/null
+++ b/ash/test/launcher_item_delegate_manager_test_api.cc
@@ -0,0 +1,29 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ash/test/launcher_item_delegate_manager_test_api.h"
+
+#include "ash/launcher/launcher_item_delegate.h"
+#include "ash/launcher/launcher_item_delegate_manager.h"
+#include "base/stl_util.h"
+
+namespace ash {
+namespace test {
+
+LauncherItemDelegateManagerTestAPI::LauncherItemDelegateManagerTestAPI(
+ LauncherItemDelegateManager* manager)
+ : manager_(manager) {
+ DCHECK(manager_);
+}
+
+void
+LauncherItemDelegateManagerTestAPI::RemoveAllLauncherItemDelegateForTest() {
+ STLDeleteContainerPairSecondPointers(
+ manager_->id_to_item_delegate_map_.begin(),
+ manager_->id_to_item_delegate_map_.end());
+ manager_->id_to_item_delegate_map_.clear();
+}
+
+} // namespace test
+} // namespace ash
« 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