OLD | NEW |
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/wifi_sync/wifi_config_delegate_chromeos.h" | 5 #include "components/wifi_sync/wifi_config_delegate_chromeos.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chromeos/network/managed_network_configuration_handler.h" | 10 #include "chromeos/network/managed_network_configuration_handler.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 const std::string& userhash, | 48 const std::string& userhash, |
49 const std::string& service_path, | 49 const std::string& service_path, |
50 const DictionaryResultCallback& callback, | 50 const DictionaryResultCallback& callback, |
51 const ErrorCallback& error_callback) override { | 51 const ErrorCallback& error_callback) override { |
52 NOTIMPLEMENTED(); | 52 NOTIMPLEMENTED(); |
53 } | 53 } |
54 void SetProperties( | 54 void SetProperties( |
55 const std::string& service_path, | 55 const std::string& service_path, |
56 const base::DictionaryValue& user_settings, | 56 const base::DictionaryValue& user_settings, |
57 const base::Closure& callback, | 57 const base::Closure& callback, |
58 const ErrorCallback& error_callback) const override { | 58 const ErrorCallback& error_callback) override { |
59 NOTIMPLEMENTED(); | 59 NOTIMPLEMENTED(); |
60 } | 60 } |
61 void CreateConfiguration( | 61 void CreateConfiguration( |
62 const std::string& userhash, | 62 const std::string& userhash, |
63 const base::DictionaryValue& properties, | 63 const base::DictionaryValue& properties, |
64 const StringResultCallback& callback, | 64 const StringResultCallback& callback, |
65 const ErrorCallback& error_callback) const override { | 65 const ErrorCallback& error_callback) const override { |
66 EXPECT_FALSE(create_configuration_called_); | 66 EXPECT_FALSE(create_configuration_called_); |
67 create_configuration_called_ = true; | 67 create_configuration_called_ = true; |
68 create_configuration_success_callback_ = callback; | 68 create_configuration_success_callback_ = callback; |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 AddToLocalNetworks(MakeCredential(kSsid, SECURITY_CLASS_NONE, "")); | 220 AddToLocalNetworks(MakeCredential(kSsid, SECURITY_CLASS_NONE, "")); |
221 EXPECT_TRUE(create_configuration_called()); | 221 EXPECT_TRUE(create_configuration_called()); |
222 if (!create_configuration_error_callback().is_null()) { | 222 if (!create_configuration_error_callback().is_null()) { |
223 create_configuration_error_callback().Run( | 223 create_configuration_error_callback().Run( |
224 "Config.CreateConfiguration Failed", | 224 "Config.CreateConfiguration Failed", |
225 make_scoped_ptr(new base::DictionaryValue())); | 225 make_scoped_ptr(new base::DictionaryValue())); |
226 } | 226 } |
227 } | 227 } |
228 | 228 |
229 } // namespace wifi_sync | 229 } // namespace wifi_sync |
OLD | NEW |