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

Side by Side Diff: dbus/mock_object_manager.h

Issue 2239123002: dbus: Make Bus::GetManagedObjects skip unavailable services. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make initialization more serial Created 4 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 DBUS_MOCK_OBJECT_MANAGER_H_ 5 #ifndef DBUS_MOCK_OBJECT_MANAGER_H_
6 #define DBUS_MOCK_OBJECT_MANAGER_H_ 6 #define DBUS_MOCK_OBJECT_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "dbus/message.h" 10 #include "dbus/message.h"
(...skipping 13 matching lines...) Expand all
24 24
25 MOCK_METHOD2(RegisterInterface, void(const std::string&, 25 MOCK_METHOD2(RegisterInterface, void(const std::string&,
26 Interface*)); 26 Interface*));
27 MOCK_METHOD1(UnregisterInterface, void(const std::string&)); 27 MOCK_METHOD1(UnregisterInterface, void(const std::string&));
28 MOCK_METHOD0(GetObjects, std::vector<ObjectPath>()); 28 MOCK_METHOD0(GetObjects, std::vector<ObjectPath>());
29 MOCK_METHOD1(GetObjectsWithInterface, 29 MOCK_METHOD1(GetObjectsWithInterface,
30 std::vector<ObjectPath>(const std::string&)); 30 std::vector<ObjectPath>(const std::string&));
31 MOCK_METHOD1(GetObjectProxy, ObjectProxy*(const ObjectPath&)); 31 MOCK_METHOD1(GetObjectProxy, ObjectProxy*(const ObjectPath&));
32 MOCK_METHOD2(GetProperties, PropertySet*(const ObjectPath&, 32 MOCK_METHOD2(GetProperties, PropertySet*(const ObjectPath&,
33 const std::string&)); 33 const std::string&));
34 MOCK_METHOD0(GetManagedObjects, void());
35 34
36 protected: 35 protected:
37 virtual ~MockObjectManager(); 36 virtual ~MockObjectManager();
38 }; 37 };
39 38
40 } // namespace dbus 39 } // namespace dbus
41 40
42 #endif // DBUS_MOCK_OBJECT_MANAGER_H_ 41 #endif // DBUS_MOCK_OBJECT_MANAGER_H_
OLDNEW
« no previous file with comments | « dbus/bus.cc ('k') | dbus/object_manager.h » ('j') | dbus/object_manager.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698