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

Unified Diff: ash/test/launcher_item_delegate_manager_test_api.h

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
Index: ash/test/launcher_item_delegate_manager_test_api.h
diff --git a/ash/test/launcher_item_delegate_manager_test_api.h b/ash/test/launcher_item_delegate_manager_test_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..d916a0558cfb3afc37dd5816c47f0f20e41cf8bc
--- /dev/null
+++ b/ash/test/launcher_item_delegate_manager_test_api.h
@@ -0,0 +1,34 @@
+// 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.
+
+#ifndef ASH_TEST_LAUNCHER_ITEM_DELEGATE_MANAGER_TEST_API_H_
+#define ASH_TEST_LAUNCHER_ITEM_DELEGATE_MANAGER_TEST_API_H_
+
+#include "base/basictypes.h"
+
+namespace ash {
+
+class LauncherItemDelegateManager;
+
+namespace test {
+
+// Accesses private methods from a LauncherItemDelegateManager for testing.
+class LauncherItemDelegateManagerTestAPI {
+ public:
+ explicit LauncherItemDelegateManagerTestAPI(
+ LauncherItemDelegateManager* manager);
+
+ // Clear all exsiting LauncherItemDelegate for test.
+ void RemoveAllLauncherItemDelegateForTest();
+
+ private:
+ LauncherItemDelegateManager* manager_; // Not owned.
+
+ DISALLOW_COPY_AND_ASSIGN(LauncherItemDelegateManagerTestAPI);
+};
+
+} // namespace test
+} // namespace ash
+
+#endif // ASH_TEST_LAUNCHER_ITEM_DELEGATE_MANAGER_TEST_API_H_
« no previous file with comments | « ash/shell/window_watcher_launcher_item_delegate.cc ('k') | ash/test/launcher_item_delegate_manager_test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698