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

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

Issue 1028243007: Call Device.SetCarrier when the ONC Carrier property is specified. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@onc_clang
Patch Set: Fix components_unittests Created 5 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
« no previous file with comments | « components/onc/onc_constants.cc ('k') | extensions/common/api/networking_private.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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
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
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
OLDNEW
« no previous file with comments | « components/onc/onc_constants.cc ('k') | extensions/common/api/networking_private.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698