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

Side by Side Diff: chromeos/network/mock_managed_network_configuration_handler.h

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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CHROMEOS_NETWORK_MOCK_MANAGED_NETWORK_CONFIGURATION_HANDLER_H_ 5 #ifndef CHROMEOS_NETWORK_MOCK_MANAGED_NETWORK_CONFIGURATION_HANDLER_H_
6 #define CHROMEOS_NETWORK_MOCK_MANAGED_NETWORK_CONFIGURATION_HANDLER_H_ 6 #define CHROMEOS_NETWORK_MOCK_MANAGED_NETWORK_CONFIGURATION_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 CreateConfiguration, 43 CreateConfiguration,
44 void(const std::string& userhash, 44 void(const std::string& userhash,
45 const base::DictionaryValue& properties, 45 const base::DictionaryValue& properties,
46 const network_handler::ServiceResultCallback& callback, 46 const network_handler::ServiceResultCallback& callback,
47 const network_handler::ErrorCallback& error_callback)); 47 const network_handler::ErrorCallback& error_callback));
48 MOCK_CONST_METHOD3( 48 MOCK_CONST_METHOD3(
49 RemoveConfiguration, 49 RemoveConfiguration,
50 void(const std::string& service_path, 50 void(const std::string& service_path,
51 const base::Closure& callback, 51 const base::Closure& callback,
52 const network_handler::ErrorCallback& error_callback)); 52 const network_handler::ErrorCallback& error_callback));
53 MOCK_CONST_METHOD3(
54 RemoveConfigurationFromCurrentProfile,
55 void(const std::string& service_path,
56 const base::Closure& callback,
57 const network_handler::ErrorCallback& error_callback));
53 MOCK_METHOD4(SetPolicy, 58 MOCK_METHOD4(SetPolicy,
54 void(::onc::ONCSource onc_source, 59 void(::onc::ONCSource onc_source,
55 const std::string& userhash, 60 const std::string& userhash,
56 const base::ListValue& network_configs_onc, 61 const base::ListValue& network_configs_onc,
57 const base::DictionaryValue& global_network_config)); 62 const base::DictionaryValue& global_network_config));
58 MOCK_CONST_METHOD0(IsAnyPolicyApplicationRunning, bool()); 63 MOCK_CONST_METHOD0(IsAnyPolicyApplicationRunning, bool());
59 MOCK_CONST_METHOD3(FindPolicyByGUID, 64 MOCK_CONST_METHOD3(FindPolicyByGUID,
60 const base::DictionaryValue*( 65 const base::DictionaryValue*(
61 const std::string userhash, 66 const std::string userhash,
62 const std::string& guid, 67 const std::string& guid,
63 ::onc::ONCSource* onc_source)); 68 ::onc::ONCSource* onc_source));
64 MOCK_CONST_METHOD1(GetNetworkConfigsFromPolicy, 69 MOCK_CONST_METHOD1(GetNetworkConfigsFromPolicy,
65 const GuidToPolicyMap*(const std::string& userhash)); 70 const GuidToPolicyMap*(const std::string& userhash));
66 MOCK_CONST_METHOD1(GetGlobalConfigFromPolicy, 71 MOCK_CONST_METHOD1(GetGlobalConfigFromPolicy,
67 const base::DictionaryValue*(const std::string& userhash)); 72 const base::DictionaryValue*(const std::string& userhash));
68 MOCK_CONST_METHOD2( 73 MOCK_CONST_METHOD2(
69 FindPolicyByGuidAndProfile, 74 FindPolicyByGuidAndProfile,
70 const base::DictionaryValue*(const std::string& guid, 75 const base::DictionaryValue*(const std::string& guid,
71 const std::string& profile_path)); 76 const std::string& profile_path));
72 77
73 private: 78 private:
74 DISALLOW_COPY_AND_ASSIGN(MockManagedNetworkConfigurationHandler); 79 DISALLOW_COPY_AND_ASSIGN(MockManagedNetworkConfigurationHandler);
75 }; 80 };
76 81
77 } // namespace chromeos 82 } // namespace chromeos
78 83
79 #endif // CHROMEOS_NETWORK_MOCK_MANAGED_NETWORK_CONFIGURATION_HANDLER_H_ 84 #endif // CHROMEOS_NETWORK_MOCK_MANAGED_NETWORK_CONFIGURATION_HANDLER_H_
OLDNEW
« no previous file with comments | « chromeos/network/managed_network_configuration_handler_impl.cc ('k') | chromeos/network/network_configuration_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698