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

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

Issue 2828713002: Enable client certificate patterns in device ONC policy (Closed)
Patch Set: Addressed comments - more DCHECKs, use PostTask..WithReply in client_cert_resolver.cc. Created 3 years, 7 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 | « chromeos/test/data/network/invalid_settings_with_repairs.json ('k') | no next file » | 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/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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 NOTIMPLEMENTED(); 102 NOTIMPLEMENTED();
103 return nullptr; 103 return nullptr;
104 } 104 }
105 const base::DictionaryValue* GetGlobalConfigFromPolicy( 105 const base::DictionaryValue* GetGlobalConfigFromPolicy(
106 const std::string& userhash) const override { 106 const std::string& userhash) const override {
107 NOTIMPLEMENTED(); 107 NOTIMPLEMENTED();
108 return nullptr; 108 return nullptr;
109 } 109 }
110 const base::DictionaryValue* FindPolicyByGuidAndProfile( 110 const base::DictionaryValue* FindPolicyByGuidAndProfile(
111 const std::string& guid, 111 const std::string& guid,
112 const std::string& profile_path) const override { 112 const std::string& profile_path,
113 ::onc::ONCSource* onc_source) const override {
113 NOTIMPLEMENTED(); 114 NOTIMPLEMENTED();
114 return nullptr; 115 return nullptr;
115 } 116 }
116 117
117 bool create_configuration_called() const { 118 bool create_configuration_called() const {
118 return create_configuration_called_; 119 return create_configuration_called_;
119 } 120 }
120 const ServiceResultCallback& create_configuration_success_callback() const { 121 const ServiceResultCallback& create_configuration_success_callback() const {
121 return create_configuration_success_callback_; 122 return create_configuration_success_callback_;
122 } 123 }
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 AddToLocalNetworks(MakeCredential(kSsid, SECURITY_CLASS_NONE, "")); 221 AddToLocalNetworks(MakeCredential(kSsid, SECURITY_CLASS_NONE, ""));
221 EXPECT_TRUE(create_configuration_called()); 222 EXPECT_TRUE(create_configuration_called());
222 if (!create_configuration_error_callback().is_null()) { 223 if (!create_configuration_error_callback().is_null()) {
223 create_configuration_error_callback().Run( 224 create_configuration_error_callback().Run(
224 "Config.CreateConfiguration Failed", 225 "Config.CreateConfiguration Failed",
225 base::MakeUnique<base::DictionaryValue>()); 226 base::MakeUnique<base::DictionaryValue>());
226 } 227 }
227 } 228 }
228 229
229 } // namespace sync_wifi 230 } // namespace sync_wifi
OLDNEW
« no previous file with comments | « chromeos/test/data/network/invalid_settings_with_repairs.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698