OLD | NEW |
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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chromeos/chromeos_export.h" | 10 #include "chromeos/chromeos_export.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 CreateConfiguration, | 42 CreateConfiguration, |
43 void(const std::string& userhash, | 43 void(const std::string& userhash, |
44 const base::DictionaryValue& properties, | 44 const base::DictionaryValue& properties, |
45 const network_handler::StringResultCallback& callback, | 45 const network_handler::StringResultCallback& callback, |
46 const network_handler::ErrorCallback& error_callback)); | 46 const network_handler::ErrorCallback& error_callback)); |
47 MOCK_CONST_METHOD3( | 47 MOCK_CONST_METHOD3( |
48 RemoveConfiguration, | 48 RemoveConfiguration, |
49 void(const std::string& service_path, | 49 void(const std::string& service_path, |
50 const base::Closure& callback, | 50 const base::Closure& callback, |
51 const network_handler::ErrorCallback& error_callback)); | 51 const network_handler::ErrorCallback& error_callback)); |
52 MOCK_METHOD3(SetPolicy, | 52 MOCK_METHOD4(SetPolicy, |
53 void(::onc::ONCSource onc_source, | 53 void(::onc::ONCSource onc_source, |
54 const std::string& userhash, | 54 const std::string& userhash, |
55 const base::ListValue& network_configs_onc)); | 55 const base::ListValue& network_configs_onc, |
| 56 const base::DictionaryValue& global_network_config)); |
56 MOCK_CONST_METHOD3(FindPolicyByGUID, | 57 MOCK_CONST_METHOD3(FindPolicyByGUID, |
57 const base::DictionaryValue*( | 58 const base::DictionaryValue*( |
58 const std::string userhash, | 59 const std::string userhash, |
59 const std::string& guid, | 60 const std::string& guid, |
60 ::onc::ONCSource* onc_source)); | 61 ::onc::ONCSource* onc_source)); |
61 MOCK_CONST_METHOD2( | 62 MOCK_CONST_METHOD2( |
62 FindPolicyByGuidAndProfile, | 63 FindPolicyByGuidAndProfile, |
63 const base::DictionaryValue*(const std::string& guid, | 64 const base::DictionaryValue*(const std::string& guid, |
64 const std::string& profile_path)); | 65 const std::string& profile_path)); |
65 | 66 |
66 private: | 67 private: |
67 DISALLOW_COPY_AND_ASSIGN(MockManagedNetworkConfigurationHandler); | 68 DISALLOW_COPY_AND_ASSIGN(MockManagedNetworkConfigurationHandler); |
68 }; | 69 }; |
69 | 70 |
70 } // namespace chromeos | 71 } // namespace chromeos |
71 | 72 |
72 #endif // CHROMEOS_NETWORK_MOCK_MANAGED_NETWORK_CONFIGURATION_HANDLER_H_ | 73 #endif // CHROMEOS_NETWORK_MOCK_MANAGED_NETWORK_CONFIGURATION_HANDLER_H_ |
OLD | NEW |