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

Side by Side Diff: chromeos/dbus/mock_shill_network_client.h

Issue 10949030: This converts the Shill clients to allow propagation of shill errors (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 3 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_DBUS_MOCK_SHILL_NETWORK_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_MOCK_SHILL_NETWORK_CLIENT_H_
6 #define CHROMEOS_DBUS_MOCK_SHILL_NETWORK_CLIENT_H_ 6 #define CHROMEOS_DBUS_MOCK_SHILL_NETWORK_CLIENT_H_
7 7
8 #include "chromeos/dbus/shill_network_client.h" 8 #include "chromeos/dbus/shill_network_client.h"
9 #include "dbus/object_path.h" 9 #include "dbus/object_path.h"
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
11 11
12 namespace chromeos { 12 namespace chromeos {
13 13
14 class MockShillNetworkClient : public ShillNetworkClient { 14 class MockShillNetworkClient : public ShillNetworkClient {
15 public: 15 public:
16 MockShillNetworkClient(); 16 MockShillNetworkClient();
17 virtual ~MockShillNetworkClient(); 17 virtual ~MockShillNetworkClient();
18 18
19 MOCK_METHOD2(SetPropertyChangedHandler, 19 MOCK_METHOD2(AddPropertyChangedObserver,
20 void(const dbus::ObjectPath& network_path, 20 void(const dbus::ObjectPath& network_path,
21 const PropertyChangedHandler& handler)); 21 PropertyChangedObserver* observer));
22 MOCK_METHOD1(ResetPropertyChangedHandler, 22 MOCK_METHOD2(RemovePropertyChangedObserver,
23 void(const dbus::ObjectPath& network_path)); 23 void(const dbus::ObjectPath& network_path,
24 PropertyChangedObserver* observer));
24 MOCK_METHOD2(GetProperties, void(const dbus::ObjectPath& network_path, 25 MOCK_METHOD2(GetProperties, void(const dbus::ObjectPath& network_path,
25 const DictionaryValueCallback& callback)); 26 const DictionaryValueCallback& callback));
26 MOCK_METHOD1(CallGetPropertiesAndBlock, 27 MOCK_METHOD1(CallGetPropertiesAndBlock,
27 base::DictionaryValue*(const dbus::ObjectPath& network_path)); 28 base::DictionaryValue*(const dbus::ObjectPath& network_path));
28 }; 29 };
29 30
30 } // namespace chromeos 31 } // namespace chromeos
31 32
32 #endif // CHROMEOS_DBUS_MOCK_SHILL_NETWORK_CLIENT_H_ 33 #endif // CHROMEOS_DBUS_MOCK_SHILL_NETWORK_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698