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

Side by Side Diff: ash/system/tray/system_tray_test_api.h

Issue 2931643002: chromeos: Introduce ash::SystemTrayTestApi (Closed)
Patch Set: review comments Created 3 years, 6 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 unified diff | Download patch
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/test/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef ASH_SYSTEM_TRAY_SYSTEM_TRAY_TEST_API_H_
6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_TEST_API_H_
7
8 #include "ash/system/tray/system_tray.h"
9 #include "base/macros.h"
10
11 namespace ash {
12
13 // Use by tests to access private state of SystemTray.
14 class SystemTrayTestApi {
15 public:
16 explicit SystemTrayTestApi(SystemTray* tray) : tray_(tray) {}
17 ~SystemTrayTestApi() = default;
18
19 TrayAccessibility* tray_accessibility() { return tray_->tray_accessibility_; }
20 TrayCast* tray_cast() { return tray_->tray_cast_; }
21 TrayEnterprise* tray_enterprise() { return tray_->tray_enterprise_; }
22 TrayNetwork* tray_network() { return tray_->tray_network_; }
23 TraySessionLengthLimit* tray_session_length_limit() {
24 return tray_->tray_session_length_limit_;
25 }
26 TraySupervisedUser* tray_supervised_user() {
27 return tray_->tray_supervised_user_;
28 }
29 TraySystemInfo* tray_system_info() { return tray_->tray_system_info_; }
30 TrayTiles* tray_tiles() { return tray_->tray_tiles_; }
31
32 private:
33 SystemTray* const tray_;
34
35 DISALLOW_COPY_AND_ASSIGN(SystemTrayTestApi);
36 };
37
38 } // namespace ash
39
40 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_TEST_API_H_
OLDNEW
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698