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

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

Issue 23526016: Autoconnect policy for CrOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Renamed policy. Created 7 years, 2 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 | Annotate | Revision Log
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 "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
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_
OLDNEW
« no previous file with comments | « chromeos/network/managed_network_configuration_handler_unittest.cc ('k') | chromeos/network/onc/onc_signature.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698