OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_COMMON_TEST_WM_SHELL_TEST_API_H_ | 5 #ifndef ASH_TEST_WM_SHELL_TEST_API_H_ |
6 #define ASH_COMMON_TEST_WM_SHELL_TEST_API_H_ | 6 #define ASH_TEST_WM_SHELL_TEST_API_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 | 11 |
12 namespace ash { | 12 namespace ash { |
13 | 13 |
14 class SystemTrayDelegate; | 14 class SystemTrayDelegate; |
15 | 15 |
16 // Test API to access the internal state of the singleton WmShell. | 16 // Test API to access the internal state of the singleton WmShell. |
17 class WmShellTestApi { | 17 class WmShellTestApi { |
18 public: | 18 public: |
19 WmShellTestApi(); | 19 WmShellTestApi(); |
20 ~WmShellTestApi(); | 20 ~WmShellTestApi(); |
21 | 21 |
22 void SetSystemTrayDelegate(std::unique_ptr<SystemTrayDelegate> delegate); | 22 void SetSystemTrayDelegate(std::unique_ptr<SystemTrayDelegate> delegate); |
23 | 23 |
24 private: | 24 private: |
25 DISALLOW_COPY_AND_ASSIGN(WmShellTestApi); | 25 DISALLOW_COPY_AND_ASSIGN(WmShellTestApi); |
26 }; | 26 }; |
27 | 27 |
28 } // namespace ash | 28 } // namespace ash |
29 | 29 |
30 #endif // ASH_COMMON_TEST_WM_SHELL_TEST_API_H_ | 30 #endif // ASH_TEST_WM_SHELL_TEST_API_H_ |
OLD | NEW |