Separate Simple Backend creation from initialization.
[chromium-blink-merge.git] / ash / system / tray / test_system_tray_delegate.h
blob8fd54054befc0f793f0cdb96aa64f5badd0af54c
1 // Copyright (c) 2012 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.
5 #ifndef ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_
6 #define ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_
8 #include "ash/system/tray/system_tray_delegate.h"
9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h"
12 // TODO(oshima/stevenjb): Move this to ash/test. crbug.com/159693.
14 namespace ash {
15 namespace test {
17 class TestSystemTrayDelegate : public SystemTrayDelegate {
18 public:
19 TestSystemTrayDelegate();
21 virtual ~TestSystemTrayDelegate();
23 public:
24 virtual void Initialize() OVERRIDE;
25 virtual void Shutdown() OVERRIDE;
26 virtual bool GetTrayVisibilityOnStartup() OVERRIDE;
28 // Overridden from SystemTrayDelegate:
29 virtual const string16 GetUserDisplayName() const OVERRIDE;
30 virtual const std::string GetUserEmail() const OVERRIDE;
31 virtual const gfx::ImageSkia& GetUserImage() const OVERRIDE;
32 virtual user::LoginStatus GetUserLoginStatus() const OVERRIDE;
33 virtual bool IsOobeCompleted() const OVERRIDE;
34 virtual void ChangeProfilePicture() OVERRIDE;
35 virtual const std::string GetEnterpriseDomain() const OVERRIDE;
36 virtual const string16 GetEnterpriseMessage() const OVERRIDE;
37 virtual bool SystemShouldUpgrade() const OVERRIDE;
38 virtual base::HourClockType GetHourClockType() const OVERRIDE;
39 virtual PowerSupplyStatus GetPowerSupplyStatus() const OVERRIDE;
40 virtual void RequestStatusUpdate() const OVERRIDE;
41 virtual void ShowSettings() OVERRIDE;
42 virtual void ShowDateSettings() OVERRIDE;
43 virtual void ShowNetworkSettings() OVERRIDE;
44 virtual void ShowBluetoothSettings() OVERRIDE;
45 virtual void ShowDisplaySettings() OVERRIDE;
46 virtual void ShowDriveSettings() OVERRIDE;
47 virtual void ShowIMESettings() OVERRIDE;
48 virtual void ShowHelp() OVERRIDE;
49 virtual void ShowAccessibilityHelp() OVERRIDE;
50 virtual void ShowPublicAccountInfo() OVERRIDE;
51 virtual void ShowEnterpriseInfo() OVERRIDE;
52 virtual void ShutDown() OVERRIDE;
53 virtual void SignOut() OVERRIDE;
54 virtual void RequestLockScreen() OVERRIDE;
55 virtual void RequestRestart() OVERRIDE;
56 virtual void GetAvailableBluetoothDevices(BluetoothDeviceList* list) OVERRIDE;
57 virtual void BluetoothStartDiscovering() OVERRIDE;
58 virtual void BluetoothStopDiscovering() OVERRIDE;
59 virtual void ToggleBluetoothConnection(const std::string& address) OVERRIDE;
60 virtual void GetCurrentIME(IMEInfo* info) OVERRIDE;
61 virtual void GetAvailableIMEList(IMEInfoList* list) OVERRIDE;
62 virtual void GetCurrentIMEProperties(IMEPropertyInfoList* list) OVERRIDE;
63 virtual void SwitchIME(const std::string& ime_id) OVERRIDE;
64 virtual void ActivateIMEProperty(const std::string& key) OVERRIDE;
65 virtual void CancelDriveOperation(const base::FilePath&) OVERRIDE;
66 virtual void GetDriveOperationStatusList(
67 ash::DriveOperationStatusList*) OVERRIDE;
68 virtual void GetMostRelevantNetworkIcon(NetworkIconInfo* info,
69 bool large) OVERRIDE;
70 virtual void GetVirtualNetworkIcon(ash::NetworkIconInfo* info) OVERRIDE;
71 virtual void GetAvailableNetworks(
72 std::vector<NetworkIconInfo>* list) OVERRIDE;
73 virtual void GetVirtualNetworks(std::vector<NetworkIconInfo>* list) OVERRIDE;
74 virtual void ConnectToNetwork(const std::string& network_id) OVERRIDE;
75 virtual void GetNetworkAddresses(std::string* ip_address,
76 std::string* ethernet_mac_address,
77 std::string* wifi_mac_address) OVERRIDE;
78 virtual void RequestNetworkScan() OVERRIDE;
79 virtual void AddBluetoothDevice() OVERRIDE;
80 virtual void ToggleAirplaneMode() OVERRIDE;
81 virtual void ToggleWifi() OVERRIDE;
82 virtual void ToggleMobile() OVERRIDE;
83 virtual void ToggleBluetooth() OVERRIDE;
84 virtual bool IsBluetoothDiscovering() OVERRIDE;
85 virtual void ShowOtherWifi() OVERRIDE;
86 virtual void ShowOtherVPN() OVERRIDE;
87 virtual void ShowOtherCellular() OVERRIDE;
88 virtual bool IsNetworkConnected() OVERRIDE;
89 virtual bool GetWifiAvailable() OVERRIDE;
90 virtual bool GetMobileAvailable() OVERRIDE;
91 virtual bool GetBluetoothAvailable() OVERRIDE;
92 virtual bool GetWifiEnabled() OVERRIDE;
93 virtual bool GetMobileEnabled() OVERRIDE;
94 virtual bool GetBluetoothEnabled() OVERRIDE;
95 virtual bool GetMobileScanSupported() OVERRIDE;
96 virtual bool GetCellularCarrierInfo(std::string* carrier_id,
97 std::string* topup_url,
98 std::string* setup_url) OVERRIDE;
99 virtual bool GetWifiScanning() OVERRIDE;
100 virtual bool GetCellularInitializing() OVERRIDE;
101 virtual void ShowCellularURL(const std::string& url) OVERRIDE;
102 virtual void ChangeProxySettings() OVERRIDE;
103 virtual VolumeControlDelegate* GetVolumeControlDelegate() const OVERRIDE;
104 virtual void SetVolumeControlDelegate(
105 scoped_ptr<VolumeControlDelegate> delegate) OVERRIDE;
106 virtual bool GetSessionStartTime(
107 base::TimeTicks* session_start_time) OVERRIDE;
108 virtual bool GetSessionLengthLimit(
109 base::TimeDelta* session_length_limit) OVERRIDE;
110 virtual int GetSystemTrayMenuWidth() OVERRIDE;
111 virtual string16 FormatTimeDuration(
112 const base::TimeDelta& delta) const OVERRIDE;
113 virtual void MaybeSpeak(const std::string& utterance) const OVERRIDE;
115 private:
116 bool wifi_enabled_;
117 bool cellular_enabled_;
118 bool bluetooth_enabled_;
119 bool caps_lock_enabled_;
120 gfx::ImageSkia null_image_;
121 scoped_ptr<VolumeControlDelegate> volume_control_delegate_;
123 DISALLOW_COPY_AND_ASSIGN(TestSystemTrayDelegate);
126 } // namespace test
127 } // namespace ash
129 #endif // ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_