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

Side by Side Diff: components/sync_wifi/wifi_config_delegate_chromeos_unittest.cc

Issue 2754903002: Prevent networkingPrivate.forgetNetwork from removing shared configs (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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "components/sync_wifi/wifi_config_delegate_chromeos.h" 5 #include "components/sync_wifi/wifi_config_delegate_chromeos.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 10
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 EXPECT_FALSE(create_configuration_called_); 67 EXPECT_FALSE(create_configuration_called_);
68 create_configuration_called_ = true; 68 create_configuration_called_ = true;
69 create_configuration_success_callback_ = callback; 69 create_configuration_success_callback_ = callback;
70 create_configuration_error_callback_ = error_callback; 70 create_configuration_error_callback_ = error_callback;
71 } 71 }
72 void RemoveConfiguration(const std::string& service_path, 72 void RemoveConfiguration(const std::string& service_path,
73 const base::Closure& callback, 73 const base::Closure& callback,
74 const ErrorCallback& error_callback) const override { 74 const ErrorCallback& error_callback) const override {
75 NOTIMPLEMENTED(); 75 NOTIMPLEMENTED();
76 } 76 }
77 void RemoveConfigurationFromCurrentProfile(
78 const std::string& service_path,
79 const base::Closure& callback,
80 const ErrorCallback& error_callback) const override {
81 NOTIMPLEMENTED();
82 }
77 void SetPolicy(::onc::ONCSource onc_source, 83 void SetPolicy(::onc::ONCSource onc_source,
78 const std::string& userhash, 84 const std::string& userhash,
79 const base::ListValue& network_configs_onc, 85 const base::ListValue& network_configs_onc,
80 const base::DictionaryValue& global_network_config) override { 86 const base::DictionaryValue& global_network_config) override {
81 NOTIMPLEMENTED(); 87 NOTIMPLEMENTED();
82 } 88 }
83 bool IsAnyPolicyApplicationRunning() const override { 89 bool IsAnyPolicyApplicationRunning() const override {
84 NOTIMPLEMENTED(); 90 NOTIMPLEMENTED();
85 return false; 91 return false;
86 } 92 }
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 AddToLocalNetworks(MakeCredential(kSsid, SECURITY_CLASS_NONE, "")); 220 AddToLocalNetworks(MakeCredential(kSsid, SECURITY_CLASS_NONE, ""));
215 EXPECT_TRUE(create_configuration_called()); 221 EXPECT_TRUE(create_configuration_called());
216 if (!create_configuration_error_callback().is_null()) { 222 if (!create_configuration_error_callback().is_null()) {
217 create_configuration_error_callback().Run( 223 create_configuration_error_callback().Run(
218 "Config.CreateConfiguration Failed", 224 "Config.CreateConfiguration Failed",
219 base::MakeUnique<base::DictionaryValue>()); 225 base::MakeUnique<base::DictionaryValue>());
220 } 226 }
221 } 227 }
222 228
223 } // namespace sync_wifi 229 } // namespace sync_wifi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698