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

Unified Diff: ash/test/launcher_test_api.h

Issue 23449033: [ash] Remove Launcher::GetLauncherViewForTest() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing class keyword Created 7 years, 3 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/shelf/shelf_widget_unittest.cc ('k') | ash/test/launcher_test_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/launcher_test_api.h
diff --git a/ash/test/launcher_test_api.h b/ash/test/launcher_test_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..57424af0eb8aad621ed8c52a376ee35f8c00c543
--- /dev/null
+++ b/ash/test/launcher_test_api.h
@@ -0,0 +1,39 @@
+// 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_TEST_API_H_
+#define ASH_TEST_LAUNCHER_TEST_API_H_
+
+#include "base/basictypes.h"
+
+namespace ash {
+
+class Launcher;
+
+namespace internal {
+class LauncherView;
+}
+
+namespace test {
+
+// Use the api in this class to access private members of Launcher.
+class LauncherTestAPI {
+ public:
+ explicit LauncherTestAPI(Launcher* launcher);
+
+ ~LauncherTestAPI();
+
+ // An accessor for |launcher_view|.
+ internal::LauncherView* launcher_view();
+
+ private:
+ Launcher* launcher_;
+
+ DISALLOW_COPY_AND_ASSIGN(LauncherTestAPI);
+};
+
+} // namespace test
+} // namespace ash
+
+#endif // ASH_TEST_LAUNCHER_VIEW_TEST_API_H_
« no previous file with comments | « ash/shelf/shelf_widget_unittest.cc ('k') | ash/test/launcher_test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698