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

Side by Side Diff: ash/system/tray/test_system_tray_delegate.cc

Issue 15350002: Deprecate kAshDisableNewNetworkStatusArea (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 #include "ash/system/tray/test_system_tray_delegate.h" 5 #include "ash/system/tray/test_system_tray_delegate.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "ash/session_state_delegate.h" 9 #include "ash/session_state_delegate.h"
10 #include "ash/shell.h" 10 #include "ash/shell.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 virtual void SetVolumeLevel(float level) OVERRIDE { 46 virtual void SetVolumeLevel(float level) OVERRIDE {
47 } 47 }
48 48
49 private: 49 private:
50 DISALLOW_COPY_AND_ASSIGN(TestVolumeControlDelegate); 50 DISALLOW_COPY_AND_ASSIGN(TestVolumeControlDelegate);
51 }; 51 };
52 52
53 } // namespace 53 } // namespace
54 54
55 TestSystemTrayDelegate::TestSystemTrayDelegate() 55 TestSystemTrayDelegate::TestSystemTrayDelegate()
56 : wifi_enabled_(true), 56 : bluetooth_enabled_(true),
57 cellular_enabled_(true),
58 bluetooth_enabled_(true),
59 caps_lock_enabled_(false), 57 caps_lock_enabled_(false),
60 volume_control_delegate_(new TestVolumeControlDelegate) { 58 volume_control_delegate_(new TestVolumeControlDelegate) {
61 } 59 }
62 60
63 TestSystemTrayDelegate::~TestSystemTrayDelegate() { 61 TestSystemTrayDelegate::~TestSystemTrayDelegate() {
64 } 62 }
65 63
66 void TestSystemTrayDelegate::Initialize() { 64 void TestSystemTrayDelegate::Initialize() {
67 } 65 }
68 66
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 void TestSystemTrayDelegate::ActivateIMEProperty(const std::string& key) { 224 void TestSystemTrayDelegate::ActivateIMEProperty(const std::string& key) {
227 } 225 }
228 226
229 void TestSystemTrayDelegate::CancelDriveOperation(int32 operation_id) { 227 void TestSystemTrayDelegate::CancelDriveOperation(int32 operation_id) {
230 } 228 }
231 229
232 void TestSystemTrayDelegate::GetDriveOperationStatusList( 230 void TestSystemTrayDelegate::GetDriveOperationStatusList(
233 ash::DriveOperationStatusList*) { 231 ash::DriveOperationStatusList*) {
234 } 232 }
235 233
236 void TestSystemTrayDelegate::GetMostRelevantNetworkIcon(NetworkIconInfo* info,
237 bool large) {
238 }
239
240 void TestSystemTrayDelegate::GetVirtualNetworkIcon(ash::NetworkIconInfo* info) {
241 }
242
243 void TestSystemTrayDelegate::GetAvailableNetworks(
244 std::vector<NetworkIconInfo>* list) {
245 }
246
247 void TestSystemTrayDelegate::GetVirtualNetworks(
248 std::vector<NetworkIconInfo>* list) {
249 }
250
251 void TestSystemTrayDelegate::ConfigureNetwork(const std::string& network_id) { 234 void TestSystemTrayDelegate::ConfigureNetwork(const std::string& network_id) {
252 } 235 }
253 236
254 void TestSystemTrayDelegate::ConnectToNetwork(const std::string& network_id) { 237 void TestSystemTrayDelegate::ConnectToNetwork(const std::string& network_id) {
255 } 238 }
256 239
257 void TestSystemTrayDelegate::GetNetworkAddresses(
258 std::string* ip_address,
259 std::string* ethernet_mac_address,
260 std::string* wifi_mac_address) {
261 *ip_address = "127.0.0.1";
262 *ethernet_mac_address = "00:11:22:33:44:55";
263 *wifi_mac_address = "66:77:88:99:00:11";
264 }
265
266 void TestSystemTrayDelegate::RequestNetworkScan() {
267 }
268
269 void TestSystemTrayDelegate::AddBluetoothDevice() { 240 void TestSystemTrayDelegate::AddBluetoothDevice() {
270 } 241 }
271 242
272 void TestSystemTrayDelegate::ToggleAirplaneMode() {
273 }
274
275 void TestSystemTrayDelegate::ToggleWifi() {
276 wifi_enabled_ = !wifi_enabled_;
277 }
278
279 void TestSystemTrayDelegate::ToggleMobile() {
280 cellular_enabled_ = !cellular_enabled_;
281 }
282
283 void TestSystemTrayDelegate::ToggleBluetooth() { 243 void TestSystemTrayDelegate::ToggleBluetooth() {
284 bluetooth_enabled_ = !bluetooth_enabled_; 244 bluetooth_enabled_ = !bluetooth_enabled_;
285 } 245 }
286 246
287 bool TestSystemTrayDelegate::IsBluetoothDiscovering() { 247 bool TestSystemTrayDelegate::IsBluetoothDiscovering() {
288 return false; 248 return false;
289 } 249 }
290 250
291 void TestSystemTrayDelegate::ShowMobileSimDialog() { 251 void TestSystemTrayDelegate::ShowMobileSimDialog() {
292 } 252 }
293 253
294 void TestSystemTrayDelegate::ShowOtherWifi() { 254 void TestSystemTrayDelegate::ShowOtherWifi() {
295 } 255 }
296 256
297 void TestSystemTrayDelegate::ShowOtherVPN() { 257 void TestSystemTrayDelegate::ShowOtherVPN() {
298 } 258 }
299 259
300 void TestSystemTrayDelegate::ShowOtherCellular() { 260 void TestSystemTrayDelegate::ShowOtherCellular() {
301 } 261 }
302 262
303 bool TestSystemTrayDelegate::IsNetworkConnected() {
304 return true;
305 }
306
307 bool TestSystemTrayDelegate::GetWifiAvailable() {
308 return true;
309 }
310
311 bool TestSystemTrayDelegate::GetMobileAvailable() {
312 return true;
313 }
314
315 bool TestSystemTrayDelegate::GetBluetoothAvailable() { 263 bool TestSystemTrayDelegate::GetBluetoothAvailable() {
316 return true; 264 return true;
317 } 265 }
318 266
319 bool TestSystemTrayDelegate::GetWifiEnabled() {
320 return wifi_enabled_;
321 }
322
323 bool TestSystemTrayDelegate::GetMobileEnabled() {
324 return cellular_enabled_;
325 }
326
327 bool TestSystemTrayDelegate::GetBluetoothEnabled() { 267 bool TestSystemTrayDelegate::GetBluetoothEnabled() {
328 return bluetooth_enabled_; 268 return bluetooth_enabled_;
329 } 269 }
330 270
331 bool TestSystemTrayDelegate::GetMobileScanSupported() {
332 return true;
333 }
334
335 bool TestSystemTrayDelegate::GetCellularCarrierInfo(std::string* carrier_id, 271 bool TestSystemTrayDelegate::GetCellularCarrierInfo(std::string* carrier_id,
336 std::string* topup_url, 272 std::string* topup_url,
337 std::string* setup_url) { 273 std::string* setup_url) {
338 return false; 274 return false;
339 } 275 }
340 276
341 bool TestSystemTrayDelegate::GetWifiScanning() {
342 return false;
343 }
344
345 bool TestSystemTrayDelegate::GetCellularInitializing() {
346 return false;
347 }
348
349 void TestSystemTrayDelegate::ShowCellularURL(const std::string& url) { 277 void TestSystemTrayDelegate::ShowCellularURL(const std::string& url) {
350 } 278 }
351 279
352 void TestSystemTrayDelegate::ChangeProxySettings() { 280 void TestSystemTrayDelegate::ChangeProxySettings() {
353 } 281 }
354 282
355 VolumeControlDelegate* TestSystemTrayDelegate::GetVolumeControlDelegate() 283 VolumeControlDelegate* TestSystemTrayDelegate::GetVolumeControlDelegate()
356 const { 284 const {
357 return volume_control_delegate_.get(); 285 return volume_control_delegate_.get();
358 } 286 }
(...skipping 21 matching lines...) Expand all
380 base::string16 TestSystemTrayDelegate::FormatTimeDuration( 308 base::string16 TestSystemTrayDelegate::FormatTimeDuration(
381 const base::TimeDelta& delta) const { 309 const base::TimeDelta& delta) const {
382 return base::string16(); 310 return base::string16();
383 } 311 }
384 312
385 void TestSystemTrayDelegate::MaybeSpeak(const std::string& utterance) const { 313 void TestSystemTrayDelegate::MaybeSpeak(const std::string& utterance) const {
386 } 314 }
387 315
388 } // namespace test 316 } // namespace test
389 } // namespace ash 317 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698