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

Side by Side Diff: chromeos/network/fake_network_device_handler.h

Issue 628883002: replace OVERRIDE and FINAL with override and final in chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROMEOS_NETWORK_FAKE_NETWORK_DEVICE_HANDLER_H_ 5 #ifndef CHROMEOS_NETWORK_FAKE_NETWORK_DEVICE_HANDLER_H_
6 #define CHROMEOS_NETWORK_FAKE_NETWORK_DEVICE_HANDLER_H_ 6 #define CHROMEOS_NETWORK_FAKE_NETWORK_DEVICE_HANDLER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "chromeos/chromeos_export.h" 10 #include "chromeos/chromeos_export.h"
11 #include "chromeos/network/network_device_handler.h" 11 #include "chromeos/network/network_device_handler.h"
12 12
13 namespace chromeos { 13 namespace chromeos {
14 14
15 // This is a fake implementation which does nothing. Use this as a base class 15 // This is a fake implementation which does nothing. Use this as a base class
16 // for concrete fake handlers. 16 // for concrete fake handlers.
17 class CHROMEOS_EXPORT FakeNetworkDeviceHandler : public NetworkDeviceHandler { 17 class CHROMEOS_EXPORT FakeNetworkDeviceHandler : public NetworkDeviceHandler {
18 public: 18 public:
19 FakeNetworkDeviceHandler(); 19 FakeNetworkDeviceHandler();
20 virtual ~FakeNetworkDeviceHandler(); 20 virtual ~FakeNetworkDeviceHandler();
21 21
22 // NetworkDeviceHandler overrides 22 // NetworkDeviceHandler overrides
23 virtual void GetDeviceProperties( 23 virtual void GetDeviceProperties(
24 const std::string& device_path, 24 const std::string& device_path,
25 const network_handler::DictionaryResultCallback& callback, 25 const network_handler::DictionaryResultCallback& callback,
26 const network_handler::ErrorCallback& error_callback) const OVERRIDE; 26 const network_handler::ErrorCallback& error_callback) const override;
27 27
28 virtual void SetDeviceProperty( 28 virtual void SetDeviceProperty(
29 const std::string& device_path, 29 const std::string& device_path,
30 const std::string& property_name, 30 const std::string& property_name,
31 const base::Value& value, 31 const base::Value& value,
32 const base::Closure& callback, 32 const base::Closure& callback,
33 const network_handler::ErrorCallback& error_callback) OVERRIDE; 33 const network_handler::ErrorCallback& error_callback) override;
34 34
35 virtual void RequestRefreshIPConfigs( 35 virtual void RequestRefreshIPConfigs(
36 const std::string& device_path, 36 const std::string& device_path,
37 const base::Closure& callback, 37 const base::Closure& callback,
38 const network_handler::ErrorCallback& error_callback) OVERRIDE; 38 const network_handler::ErrorCallback& error_callback) override;
39 39
40 virtual void ProposeScan(const std::string& device_path, 40 virtual void ProposeScan(const std::string& device_path,
41 const base::Closure& callback, 41 const base::Closure& callback,
42 const network_handler::ErrorCallback& error_callback) 42 const network_handler::ErrorCallback& error_callback)
43 OVERRIDE; 43 override;
44 44
45 virtual void RegisterCellularNetwork( 45 virtual void RegisterCellularNetwork(
46 const std::string& device_path, 46 const std::string& device_path,
47 const std::string& network_id, 47 const std::string& network_id,
48 const base::Closure& callback, 48 const base::Closure& callback,
49 const network_handler::ErrorCallback& error_callback) OVERRIDE; 49 const network_handler::ErrorCallback& error_callback) override;
50 50
51 virtual void SetCarrier(const std::string& device_path, 51 virtual void SetCarrier(const std::string& device_path,
52 const std::string& carrier, 52 const std::string& carrier,
53 const base::Closure& callback, 53 const base::Closure& callback,
54 const network_handler::ErrorCallback& error_callback) 54 const network_handler::ErrorCallback& error_callback)
55 OVERRIDE; 55 override;
56 56
57 virtual void RequirePin(const std::string& device_path, 57 virtual void RequirePin(const std::string& device_path,
58 bool require_pin, 58 bool require_pin,
59 const std::string& pin, 59 const std::string& pin,
60 const base::Closure& callback, 60 const base::Closure& callback,
61 const network_handler::ErrorCallback& error_callback) 61 const network_handler::ErrorCallback& error_callback)
62 OVERRIDE; 62 override;
63 63
64 virtual void EnterPin(const std::string& device_path, 64 virtual void EnterPin(const std::string& device_path,
65 const std::string& pin, 65 const std::string& pin,
66 const base::Closure& callback, 66 const base::Closure& callback,
67 const network_handler::ErrorCallback& error_callback) 67 const network_handler::ErrorCallback& error_callback)
68 OVERRIDE; 68 override;
69 69
70 virtual void UnblockPin(const std::string& device_path, 70 virtual void UnblockPin(const std::string& device_path,
71 const std::string& puk, 71 const std::string& puk,
72 const std::string& new_pin, 72 const std::string& new_pin,
73 const base::Closure& callback, 73 const base::Closure& callback,
74 const network_handler::ErrorCallback& error_callback) 74 const network_handler::ErrorCallback& error_callback)
75 OVERRIDE; 75 override;
76 76
77 virtual void ChangePin(const std::string& device_path, 77 virtual void ChangePin(const std::string& device_path,
78 const std::string& old_pin, 78 const std::string& old_pin,
79 const std::string& new_pin, 79 const std::string& new_pin,
80 const base::Closure& callback, 80 const base::Closure& callback,
81 const network_handler::ErrorCallback& error_callback) 81 const network_handler::ErrorCallback& error_callback)
82 OVERRIDE; 82 override;
83 83
84 virtual void SetCellularAllowRoaming(bool allow_roaming) OVERRIDE; 84 virtual void SetCellularAllowRoaming(bool allow_roaming) override;
85 85
86 virtual void SetWifiTDLSEnabled( 86 virtual void SetWifiTDLSEnabled(
87 const std::string& ip_or_mac_address, 87 const std::string& ip_or_mac_address,
88 bool enabled, 88 bool enabled,
89 const network_handler::StringResultCallback& callback, 89 const network_handler::StringResultCallback& callback,
90 const network_handler::ErrorCallback& error_callback) OVERRIDE; 90 const network_handler::ErrorCallback& error_callback) override;
91 91
92 virtual void GetWifiTDLSStatus( 92 virtual void GetWifiTDLSStatus(
93 const std::string& ip_or_mac_address, 93 const std::string& ip_or_mac_address,
94 const network_handler::StringResultCallback& callback, 94 const network_handler::StringResultCallback& callback,
95 const network_handler::ErrorCallback& error_callback) OVERRIDE; 95 const network_handler::ErrorCallback& error_callback) override;
96 96
97 private: 97 private:
98 DISALLOW_COPY_AND_ASSIGN(FakeNetworkDeviceHandler); 98 DISALLOW_COPY_AND_ASSIGN(FakeNetworkDeviceHandler);
99 }; 99 };
100 100
101 } // namespace chromeos 101 } // namespace chromeos
102 102
103 #endif // CHROMEOS_NETWORK_FAKE_NETWORK_DEVICE_HANDLER_H_ 103 #endif // CHROMEOS_NETWORK_FAKE_NETWORK_DEVICE_HANDLER_H_
OLDNEW
« no previous file with comments | « chromeos/network/dhcp_proxy_script_fetcher_chromeos.h ('k') | chromeos/network/geolocation_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698