1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
ash / public / cpp / test / test_system_tray_client.h [blame]
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_PUBLIC_CPP_TEST_TEST_SYSTEM_TRAY_CLIENT_H_
#define ASH_PUBLIC_CPP_TEST_TEST_SYSTEM_TRAY_CLIENT_H_
#include <optional>
#include <string_view>
#include "ash/public/cpp/ash_public_export.h"
#include "ash/public/cpp/system_tray_client.h"
#include "components/access_code_cast/common/access_code_cast_metrics.h"
namespace ash {
// A SystemTrayClient that does nothing. Used by AshTestBase.
class ASH_PUBLIC_EXPORT TestSystemTrayClient : public SystemTrayClient {
public:
TestSystemTrayClient();
TestSystemTrayClient(const TestSystemTrayClient&) = delete;
TestSystemTrayClient& operator=(const TestSystemTrayClient&) = delete;
~TestSystemTrayClient() override;
// SystemTrayClient:
void ShowSettings(int64_t display_id) override;
void ShowAccountSettings() override;
void ShowBluetoothSettings() override;
void ShowBluetoothSettings(const std::string& device_id) override;
void ShowBluetoothPairingDialog(
std::optional<std::string_view> device_address) override;
void ShowDateSettings() override;
void ShowSetTimeDialog() override;
void ShowDisplaySettings() override;
void ShowDarkModeSettings() override;
void ShowStorageSettings() override;
void ShowPowerSettings() override;
void ShowChromeSlow() override;
void ShowIMESettings() override;
void ShowConnectedDevicesSettings() override;
void ShowTetherNetworkSettings() override;
void ShowWifiSyncSettings() override;
void ShowAboutChromeOS() override;
void ShowAboutChromeOSDetails() override;
void ShowAccessibilityHelp() override;
void ShowAccessibilitySettings() override;
void ShowColorCorrectionSettings() override;
void ShowGestureEducationHelp() override;
void ShowPaletteHelp() override;
void ShowPaletteSettings() override;
void ShowPrivacyAndSecuritySettings() override;
void ShowPrivacyHubSettings() override;
void ShowSpeakOnMuteDetectionSettings() override;
void ShowSmartPrivacySettings() override;
void ShowEnterpriseInfo() override;
void ShowNetworkConfigure(const std::string& network_id) override;
void ShowNetworkCreate(const std::string& type) override;
void ShowSettingsCellularSetup(bool show_psim_flow) override;
void ShowMobileDataSubpage() override;
void ShowSettingsSimUnlock() override;
void ShowApnSubpage(const std::string& network_id) override;
void ShowThirdPartyVpnCreate(const std::string& extension_id) override;
void ShowArcVpnCreate(const std::string& app_id) override;
void ShowNetworkSettings(const std::string& network_id) override;
void ShowHotspotSubpage() override;
void ShowMultiDeviceSetup() override;
void ShowFirmwareUpdate() override;
void SetLocaleAndExit(const std::string& locale_iso_code) override;
void ShowAccessCodeCastingDialog(
AccessCodeCastDialogOpenLocation open_location) override;
void ShowCalendarEvent(const std::optional<GURL>& event_url,
const base::Time& date,
bool& opened_pwa,
GURL& final_event_url) override;
void ShowVideoConference(const GURL& video_conference_url) override;
void ShowChannelInfoAdditionalDetails() override;
void ShowChannelInfoGiveFeedback() override;
void ShowAudioSettings() override;
bool IsUserFeedbackEnabled() override;
void ShowEolInfoPage() override;
void RecordEolNoticeShown() override;
void ShowGraphicsTabletSettings() override;
void ShowMouseSettings() override;
void ShowTouchpadSettings() override;
void ShowRemapKeysSubpage(int device_id) override;
void ShowYouTubeMusicPremiumPage() override;
void ShowChromebookPerksYouTubePage() override;
void ShowKeyboardSettings() override;
void ShowPointingStickSettings() override;
void ShowNearbyShareSettings() override;
int show_account_settings_count() const {
return show_account_settings_count_;
}
int show_bluetooth_settings_count() const {
return show_bluetooth_settings_count_;
}
int show_network_settings_count() const {
return show_network_settings_count_;
}
int show_bluetooth_pairing_dialog_count() const {
return show_bluetooth_pairing_dialog_count_;
}
int show_hotspot_subpage_count() const { return show_hotspot_subpage_count_; }
int show_multi_device_setup_count() const {
return show_multi_device_setup_count_;
}
int show_connected_devices_settings_count() const {
return show_connected_devices_settings_count_;
}
int show_about_chromeos_count() const { return show_about_chromeos_count_; }
int show_os_settings_privacy_and_security_count() const {
return show_os_settings_privacy_and_security_count_;
}
int show_os_settings_privacy_hub_count() const {
return show_os_settings_privacy_hub_count_;
}
int show_speak_on_mute_detection_count() const {
return show_speak_on_mute_detection_count_;
}
int show_os_smart_privacy_settings_count() const {
return show_os_smart_privacy_settings_count_;
}
int show_wifi_sync_settings_count() const {
return show_wifi_sync_settings_count_;
}
int show_sim_unlock_settings_count() const {
return show_sim_unlock_settings_count_;
}
int show_apn_subpage_count() const { return show_apn_subpage_count_; }
int show_mobile_data_subpage_count() const {
return show_mobile_data_subpage_count_;
}
const std::string& last_apn_subpage_network_id() const {
return last_apn_subpage_network_id_;
}
int show_third_party_vpn_create_count() const {
return show_third_party_vpn_create_count_;
}
const std::string& last_third_party_vpn_extension_id() const {
return last_third_party_vpn_extension_id_;
}
int show_arc_vpn_create_count() const { return show_arc_vpn_create_count_; }
const std::string& last_arc_vpn_app_id() const {
return last_arc_vpn_app_id_;
}
int show_network_create_count() const { return show_network_create_count_; }
int show_access_code_casting_dialog_count() const {
return show_access_code_casting_dialog_count_;
}
int show_calendar_event_count() const { return show_calendar_event_count_; }
int show_video_conference_count() const {
return show_video_conference_count_;
}
const std::string& last_network_type() const { return last_network_type_; }
int show_firmware_update_count() const { return show_firmware_update_count_; }
const std::string& last_bluetooth_settings_device_id() const {
return last_bluetooth_settings_device_id_;
}
const std::string& last_network_settings_network_id() const {
return last_network_settings_network_id_;
}
int show_channel_info_additional_details_count() const {
return show_channel_info_additional_details_count_;
}
int show_channel_info_give_feedback_count() const {
return show_channel_info_give_feedback_count_;
}
int show_audio_settings_count() const { return show_audio_settings_count_; }
void set_user_feedback_enabled(bool user_feedback_enabled) {
user_feedback_enabled_ = user_feedback_enabled;
}
int show_eol_info_count() const { return show_eol_info_count_; }
int show_color_correction_settings_count() const {
return show_color_correction_settings_count_;
}
int show_graphics_tablet_settings_count() const {
return show_graphics_tablet_settings_count_;
}
int show_mouse_settings_count() const { return show_mouse_settings_count_; }
int show_touchpad_settings_count() const {
return show_touchpad_settings_count_;
}
int show_remap_keys_subpage_count() const {
return show_remap_keys_subpage_count_;
}
int show_youtube_music_premium_page_count() const {
return show_youtube_music_premium_page_count_;
}
int show_chromebook_perks_youtube_page_count() const {
return show_chromebook_perks_youtube_page_count_;
}
int show_keyboard_settings_count() const {
return show_keyboard_settings_count_;
}
int show_pointing_stick_settings_count() const {
return show_pointing_stick_settings_count_;
}
int show_nearby_share_settings_count() const {
return show_nearby_share_settings_count_;
}
private:
int show_account_settings_count_ = 0;
int show_network_settings_count_ = 0;
int show_bluetooth_settings_count_ = 0;
int show_bluetooth_pairing_dialog_count_ = 0;
int show_hotspot_subpage_count_ = 0;
int show_multi_device_setup_count_ = 0;
int show_connected_devices_settings_count_ = 0;
int show_about_chromeos_count_ = 0;
int show_os_settings_privacy_and_security_count_ = 0;
int show_os_settings_privacy_hub_count_ = 0;
int show_speak_on_mute_detection_count_ = 0;
int show_os_smart_privacy_settings_count_ = 0;
int show_wifi_sync_settings_count_ = 0;
int show_sim_unlock_settings_count_ = 0;
int show_apn_subpage_count_ = 0;
int show_mobile_data_subpage_count_ = 0;
int show_third_party_vpn_create_count_ = 0;
std::string last_third_party_vpn_extension_id_;
int show_arc_vpn_create_count_ = 0;
std::string last_arc_vpn_app_id_;
int show_firmware_update_count_ = 0;
int show_network_create_count_ = 0;
int show_access_code_casting_dialog_count_ = 0;
int show_calendar_event_count_ = 0;
int show_video_conference_count_ = 0;
std::string last_bluetooth_settings_device_id_;
std::string last_apn_subpage_network_id_;
std::string last_network_settings_network_id_;
std::string last_network_type_;
int show_channel_info_additional_details_count_ = 0;
int show_channel_info_give_feedback_count_ = 0;
int show_audio_settings_count_ = 0;
bool user_feedback_enabled_ = false;
int show_eol_info_count_ = 0;
int show_color_correction_settings_count_ = 0;
int show_graphics_tablet_settings_count_ = 0;
int show_mouse_settings_count_ = 0;
int show_touchpad_settings_count_ = 0;
int show_remap_keys_subpage_count_ = 0;
int show_youtube_music_premium_page_count_ = 0;
int show_chromebook_perks_youtube_page_count_ = 0;
int show_keyboard_settings_count_ = 0;
int show_pointing_stick_settings_count_ = 0;
int show_nearby_share_settings_count_ = 0;
};
} // namespace ash
#endif // ASH_PUBLIC_CPP_TEST_TEST_SYSTEM_TRAY_CLIENT_H_