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

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

Issue 267433005: Provide IPConfigs in networkingPrivate.GetProperties (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 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 | 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"
11 #include "chromeos/network/managed_network_configuration_handler.h" 11 #include "chromeos/network/managed_network_configuration_handler.h"
12 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
13 13
14 namespace chromeos { 14 namespace chromeos {
15 15
16 class CHROMEOS_EXPORT MockManagedNetworkConfigurationHandler 16 class CHROMEOS_EXPORT MockManagedNetworkConfigurationHandler
17 : public ManagedNetworkConfigurationHandler { 17 : public ManagedNetworkConfigurationHandler {
18 public: 18 public:
19 MockManagedNetworkConfigurationHandler(); 19 MockManagedNetworkConfigurationHandler();
20 virtual ~MockManagedNetworkConfigurationHandler(); 20 virtual ~MockManagedNetworkConfigurationHandler();
21 21
22 // ManagedNetworkConfigurationHandler overrides 22 // ManagedNetworkConfigurationHandler overrides
23 MOCK_METHOD1(AddObserver, void(NetworkPolicyObserver* observer)); 23 MOCK_METHOD1(AddObserver, void(NetworkPolicyObserver* observer));
24 MOCK_METHOD1(RemoveObserver, void(NetworkPolicyObserver* observer)); 24 MOCK_METHOD1(RemoveObserver, void(NetworkPolicyObserver* observer));
25 MOCK_CONST_METHOD3( 25 MOCK_METHOD3(GetProperties,
26 GetProperties, 26 void(const std::string& service_path,
27 void(const std::string& service_path, 27 const network_handler::DictionaryResultCallback& callback,
28 const network_handler::DictionaryResultCallback& callback, 28 const network_handler::ErrorCallback& error_callback));
29 const network_handler::ErrorCallback& error_callback));
30 MOCK_METHOD4(GetManagedProperties, 29 MOCK_METHOD4(GetManagedProperties,
31 void(const std::string& userhash, 30 void(const std::string& userhash,
32 const std::string& service_path, 31 const std::string& service_path,
33 const network_handler::DictionaryResultCallback& callback, 32 const network_handler::DictionaryResultCallback& callback,
34 const network_handler::ErrorCallback& error_callback)); 33 const network_handler::ErrorCallback& error_callback));
35 MOCK_CONST_METHOD4( 34 MOCK_CONST_METHOD4(
36 SetProperties, 35 SetProperties,
37 void(const std::string& service_path, 36 void(const std::string& service_path,
38 const base::DictionaryValue& user_settings, 37 const base::DictionaryValue& user_settings,
39 const base::Closure& callback, 38 const base::Closure& callback,
(...skipping 26 matching lines...) Expand all
66 const base::DictionaryValue*(const std::string& guid, 65 const base::DictionaryValue*(const std::string& guid,
67 const std::string& profile_path)); 66 const std::string& profile_path));
68 67
69 private: 68 private:
70 DISALLOW_COPY_AND_ASSIGN(MockManagedNetworkConfigurationHandler); 69 DISALLOW_COPY_AND_ASSIGN(MockManagedNetworkConfigurationHandler);
71 }; 70 };
72 71
73 } // namespace chromeos 72 } // namespace chromeos
74 73
75 #endif // CHROMEOS_NETWORK_MOCK_MANAGED_NETWORK_CONFIGURATION_HANDLER_H_ 74 #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_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698