summaryrefslogtreecommitdiffstats
path: root/chromeos/network/fake_network_device_handler.cc
diff options
context:
space:
mode:
authorpneubeck@chromium.org <pneubeck@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-26 13:20:59 +0000
committerpneubeck@chromium.org <pneubeck@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-26 13:20:59 +0000
commit7887f0a31d8de627d47fa5fdaa9c0d9b638e9950 (patch)
treea76ae658fc180fbb30a88ca428a2b0cc41436dd0 /chromeos/network/fake_network_device_handler.cc
parentd7743eb367139eb5e218ec3c2dbaa6a3793866c5 (diff)
downloadchromium_src-7887f0a31d8de627d47fa5fdaa9c0d9b638e9950.zip
chromium_src-7887f0a31d8de627d47fa5fdaa9c0d9b638e9950.tar.gz
chromium_src-7887f0a31d8de627d47fa5fdaa9c0d9b638e9950.tar.bz2
policy: Extract data roaming policy from DeviceSettingsProvider.
This moves the code applying the AllowDataRoaming settings from DeviceSettings to the NetworkConfigurationUpdater which is responsible to apply all other device wide network policies. - As additional code is required in the updater (listen for device setting changes), this also adds the so far missing (because not strictly required) DeviceNetworkConfigurationUpdater. - For unit tests of the updater, a interface and implementation of the NetworkDeviceHandler had to be separated. - The actual application of the AllowDataRoaming setting is now handled in chromeos/network/ . BUG=323537 Review URL: https://codereview.chromium.org/101593004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242528 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/network/fake_network_device_handler.cc')
-rw-r--r--chromeos/network/fake_network_device_handler.cc76
1 files changed, 76 insertions, 0 deletions
diff --git a/chromeos/network/fake_network_device_handler.cc b/chromeos/network/fake_network_device_handler.cc
new file mode 100644
index 0000000..dd737ac
--- /dev/null
+++ b/chromeos/network/fake_network_device_handler.cc
@@ -0,0 +1,76 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chromeos/network/fake_network_device_handler.h"
+
+namespace chromeos {
+
+FakeNetworkDeviceHandler::FakeNetworkDeviceHandler() {}
+
+FakeNetworkDeviceHandler::~FakeNetworkDeviceHandler() {}
+
+void FakeNetworkDeviceHandler::GetDeviceProperties(
+ const std::string& device_path,
+ const network_handler::DictionaryResultCallback& callback,
+ const network_handler::ErrorCallback& error_callback) const {}
+
+void FakeNetworkDeviceHandler::SetDeviceProperty(
+ const std::string& device_path,
+ const std::string& property_name,
+ const base::Value& value,
+ const base::Closure& callback,
+ const network_handler::ErrorCallback& error_callback) {}
+
+void FakeNetworkDeviceHandler::RequestRefreshIPConfigs(
+ const std::string& device_path,
+ const base::Closure& callback,
+ const network_handler::ErrorCallback& error_callback) {}
+
+void FakeNetworkDeviceHandler::ProposeScan(
+ const std::string& device_path,
+ const base::Closure& callback,
+ const network_handler::ErrorCallback& error_callback) {}
+
+void FakeNetworkDeviceHandler::RegisterCellularNetwork(
+ const std::string& device_path,
+ const std::string& network_id,
+ const base::Closure& callback,
+ const network_handler::ErrorCallback& error_callback) {}
+
+void FakeNetworkDeviceHandler::SetCarrier(
+ const std::string& device_path,
+ const std::string& carrier,
+ const base::Closure& callback,
+ const network_handler::ErrorCallback& error_callback) {}
+
+void FakeNetworkDeviceHandler::RequirePin(
+ const std::string& device_path,
+ bool require_pin,
+ const std::string& pin,
+ const base::Closure& callback,
+ const network_handler::ErrorCallback& error_callback) {}
+
+void FakeNetworkDeviceHandler::EnterPin(
+ const std::string& device_path,
+ const std::string& pin,
+ const base::Closure& callback,
+ const network_handler::ErrorCallback& error_callback) {}
+
+void FakeNetworkDeviceHandler::UnblockPin(
+ const std::string& device_path,
+ const std::string& puk,
+ const std::string& new_pin,
+ const base::Closure& callback,
+ const network_handler::ErrorCallback& error_callback) {}
+
+void FakeNetworkDeviceHandler::ChangePin(
+ const std::string& device_path,
+ const std::string& old_pin,
+ const std::string& new_pin,
+ const base::Closure& callback,
+ const network_handler::ErrorCallback& error_callback) {}
+
+void FakeNetworkDeviceHandler::SetCellularAllowRoaming(bool allow_roaming) {}
+
+} // namespace chromeos