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
3 // found in the LICENSE file.
5 #ifndef CHROMEOS_NETWORK_FAKE_NETWORK_DEVICE_HANDLER_H_
6 #define CHROMEOS_NETWORK_FAKE_NETWORK_DEVICE_HANDLER_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "chromeos/chromeos_export.h"
11 #include "chromeos/network/network_device_handler.h"
15 // This is a fake implementation which does nothing. Use this as a base class
16 // for concrete fake handlers.
17 class CHROMEOS_EXPORT FakeNetworkDeviceHandler
: public NetworkDeviceHandler
{
19 FakeNetworkDeviceHandler();
20 virtual ~FakeNetworkDeviceHandler();
22 // NetworkDeviceHandler overrides
23 virtual void GetDeviceProperties(
24 const std::string
& device_path
,
25 const network_handler::DictionaryResultCallback
& callback
,
26 const network_handler::ErrorCallback
& error_callback
) const override
;
28 virtual void SetDeviceProperty(
29 const std::string
& device_path
,
30 const std::string
& property_name
,
31 const base::Value
& value
,
32 const base::Closure
& callback
,
33 const network_handler::ErrorCallback
& error_callback
) override
;
35 virtual void RequestRefreshIPConfigs(
36 const std::string
& device_path
,
37 const base::Closure
& callback
,
38 const network_handler::ErrorCallback
& error_callback
) override
;
40 virtual void ProposeScan(const std::string
& device_path
,
41 const base::Closure
& callback
,
42 const network_handler::ErrorCallback
& error_callback
)
45 virtual void RegisterCellularNetwork(
46 const std::string
& device_path
,
47 const std::string
& network_id
,
48 const base::Closure
& callback
,
49 const network_handler::ErrorCallback
& error_callback
) override
;
51 virtual void SetCarrier(const std::string
& device_path
,
52 const std::string
& carrier
,
53 const base::Closure
& callback
,
54 const network_handler::ErrorCallback
& error_callback
)
57 virtual void RequirePin(const std::string
& device_path
,
59 const std::string
& pin
,
60 const base::Closure
& callback
,
61 const network_handler::ErrorCallback
& error_callback
)
64 virtual void EnterPin(const std::string
& device_path
,
65 const std::string
& pin
,
66 const base::Closure
& callback
,
67 const network_handler::ErrorCallback
& error_callback
)
70 virtual void UnblockPin(const std::string
& device_path
,
71 const std::string
& puk
,
72 const std::string
& new_pin
,
73 const base::Closure
& callback
,
74 const network_handler::ErrorCallback
& error_callback
)
77 virtual void ChangePin(const std::string
& device_path
,
78 const std::string
& old_pin
,
79 const std::string
& new_pin
,
80 const base::Closure
& callback
,
81 const network_handler::ErrorCallback
& error_callback
)
84 virtual void SetCellularAllowRoaming(bool allow_roaming
) override
;
86 virtual void SetWifiTDLSEnabled(
87 const std::string
& ip_or_mac_address
,
89 const network_handler::StringResultCallback
& callback
,
90 const network_handler::ErrorCallback
& error_callback
) override
;
92 virtual void GetWifiTDLSStatus(
93 const std::string
& ip_or_mac_address
,
94 const network_handler::StringResultCallback
& callback
,
95 const network_handler::ErrorCallback
& error_callback
) override
;
98 DISALLOW_COPY_AND_ASSIGN(FakeNetworkDeviceHandler
);
101 } // namespace chromeos
103 #endif // CHROMEOS_NETWORK_FAKE_NETWORK_DEVICE_HANDLER_H_