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

Side by Side Diff: chromeos/components/tether/fake_managed_network_configuration_handler.cc

Issue 2821103003: Remove the configuration of Tether-associated Wi-Fi networks once connectivity is lost. (Closed)
Patch Set: Created 3 years, 8 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
(Empty)
1 // Copyright 2017 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.
4
5 #include "chromeos/components/tether/fake_managed_network_configuration_handler. h"
6
7 namespace chromeos {
8
9 namespace tether {
10
11 FakeManagedNetworkConfigurationHandler::FakeManagedNetworkConfigurationHandler()
12 : last_removed_configuration_path_(std::string()) {}
13
14 void FakeManagedNetworkConfigurationHandler::AddObserver(
15 NetworkPolicyObserver* observer) {}
16 void FakeManagedNetworkConfigurationHandler::RemoveObserver(
17 NetworkPolicyObserver* observer) {}
18
19 void FakeManagedNetworkConfigurationHandler::GetProperties(
20 const std::string& userhash,
21 const std::string& service_path,
22 const network_handler::DictionaryResultCallback& callback,
23 const network_handler::ErrorCallback& error_callback) {}
24
25 void FakeManagedNetworkConfigurationHandler::GetManagedProperties(
26 const std::string& userhash,
27 const std::string& service_path,
28 const network_handler::DictionaryResultCallback& callback,
29 const network_handler::ErrorCallback& error_callback) {}
30
31 void FakeManagedNetworkConfigurationHandler::SetProperties(
32 const std::string& service_path,
33 const base::DictionaryValue& user_settings,
34 const base::Closure& callback,
35 const network_handler::ErrorCallback& error_callback) {}
36
37 void FakeManagedNetworkConfigurationHandler::CreateConfiguration(
38 const std::string& userhash,
39 const base::DictionaryValue& properties,
40 const network_handler::ServiceResultCallback& callback,
41 const network_handler::ErrorCallback& error_callback) const {}
42
43 void FakeManagedNetworkConfigurationHandler::RemoveConfiguration(
44 const std::string& service_path,
45 const base::Closure& callback,
46 const network_handler::ErrorCallback& error_callback) const {
47 // last_removed_configuration_path_ = service_path;
Kyle Horimoto 2017/04/17 20:34:53 Can't you just use this line? You should be able t
Ryan Hansberry 2017/04/20 20:57:57 Removed this file.
48 const_cast<std::string&>(last_removed_configuration_path_) = service_path;
stevenjb 2017/04/18 21:03:35 I'm pretty sure you can do the same thing with a m
Ryan Hansberry 2017/04/20 20:57:57 Removed this file.
49 }
50
51 void FakeManagedNetworkConfigurationHandler::
52 RemoveConfigurationFromCurrentProfile(
53 const std::string& service_path,
54 const base::Closure& callback,
55 const network_handler::ErrorCallback& error_callback) const {}
56
57 void FakeManagedNetworkConfigurationHandler::SetPolicy(
58 ::onc::ONCSource onc_source,
59 const std::string& userhash,
60 const base::ListValue& network_configs_onc,
61 const base::DictionaryValue& global_network_config) {}
62
63 bool FakeManagedNetworkConfigurationHandler::IsAnyPolicyApplicationRunning()
64 const {
65 return false;
66 }
67
68 const base::DictionaryValue*
69 FakeManagedNetworkConfigurationHandler::FindPolicyByGUID(
70 const std::string userhash,
71 const std::string& guid,
72 ::onc::ONCSource* onc_source) const {
73 return nullptr;
74 }
75
76 const GuidToPolicyMap*
77 FakeManagedNetworkConfigurationHandler::GetNetworkConfigsFromPolicy(
78 const std::string& userhash) const {
79 return nullptr;
80 }
81
82 const base::DictionaryValue*
83 FakeManagedNetworkConfigurationHandler::GetGlobalConfigFromPolicy(
84 const std::string& userhash) const {
85 return nullptr;
86 }
87
88 const base::DictionaryValue*
89 FakeManagedNetworkConfigurationHandler::FindPolicyByGuidAndProfile(
90 const std::string& guid,
91 const std::string& profile_path) const {
92 return nullptr;
93 }
94
95 const std::string&
96 FakeManagedNetworkConfigurationHandler::last_removed_configuration_path()
97 const {
98 return last_removed_configuration_path_;
99 }
100
101 } // namespace tether
102
103 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698