OLD | NEW |
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 #ifndef ASH_TEST_LAUNCHER_TEST_API_H_ | 5 #ifndef ASH_TEST_SHELF_TEST_API_H_ |
6 #define ASH_TEST_LAUNCHER_TEST_API_H_ | 6 #define ASH_TEST_SHELF_TEST_API_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 | 9 |
10 namespace ash { | 10 namespace ash { |
11 | 11 |
12 class Launcher; | 12 class Shelf; |
13 class ShelfDelegate; | 13 class ShelfDelegate; |
14 | 14 |
15 namespace internal { | 15 namespace internal { |
16 class ShelfView; | 16 class ShelfView; |
17 } | 17 } |
18 | 18 |
19 namespace test { | 19 namespace test { |
20 | 20 |
21 // Use the api in this class to access private members of Launcher. | 21 // Use the api in this class to access private members of Shelf. |
22 class LauncherTestAPI { | 22 class ShelfTestAPI { |
23 public: | 23 public: |
24 explicit LauncherTestAPI(Launcher* launcher); | 24 explicit ShelfTestAPI(Shelf* shelf); |
25 | 25 |
26 ~LauncherTestAPI(); | 26 ~ShelfTestAPI(); |
27 | 27 |
28 // An accessor for |shelf_view|. | 28 // An accessor for |shelf_view|. |
29 internal::ShelfView* shelf_view(); | 29 internal::ShelfView* shelf_view(); |
30 | 30 |
31 // Set ShelfDelegate. | 31 // Set ShelfDelegate. |
32 void SetShelfDelegate(ShelfDelegate* delegate); | 32 void SetShelfDelegate(ShelfDelegate* delegate); |
33 | 33 |
34 private: | 34 private: |
35 Launcher* launcher_; | 35 Shelf* shelf_; |
36 | 36 |
37 DISALLOW_COPY_AND_ASSIGN(LauncherTestAPI); | 37 DISALLOW_COPY_AND_ASSIGN(ShelfTestAPI); |
38 }; | 38 }; |
39 | 39 |
40 } // namespace test | 40 } // namespace test |
41 } // namespace ash | 41 } // namespace ash |
42 | 42 |
43 #endif // ASH_TEST_LAUNCHER_TEST_API_H_ | 43 #endif // ASH_TEST_SHELF_TEST_API_H_ |
OLD | NEW |