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

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

Issue 299403012: Clean up shill fake implementations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 6 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_DBUS_FAKE_SHILL_SERVICE_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_SHILL_SERVICE_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_SHILL_SERVICE_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_SHILL_SERVICE_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 virtual void GetLoadableProfileEntries( 73 virtual void GetLoadableProfileEntries(
74 const dbus::ObjectPath& service_path, 74 const dbus::ObjectPath& service_path,
75 const DictionaryValueCallback& callback) OVERRIDE; 75 const DictionaryValueCallback& callback) OVERRIDE;
76 virtual ShillServiceClient::TestInterface* GetTestInterface() OVERRIDE; 76 virtual ShillServiceClient::TestInterface* GetTestInterface() OVERRIDE;
77 77
78 // ShillServiceClient::TestInterface overrides. 78 // ShillServiceClient::TestInterface overrides.
79 virtual void AddService(const std::string& service_path, 79 virtual void AddService(const std::string& service_path,
80 const std::string& name, 80 const std::string& name,
81 const std::string& type, 81 const std::string& type,
82 const std::string& state, 82 const std::string& state,
83 bool add_to_visible_list, 83 bool add_to_visible_list) OVERRIDE;
84 bool add_to_watch_list) OVERRIDE;
85 virtual void AddServiceWithIPConfig(const std::string& service_path, 84 virtual void AddServiceWithIPConfig(const std::string& service_path,
86 const std::string& guid, 85 const std::string& guid,
87 const std::string& name, 86 const std::string& name,
88 const std::string& type, 87 const std::string& type,
89 const std::string& state, 88 const std::string& state,
90 const std::string& ipconfig_path, 89 const std::string& ipconfig_path,
91 bool add_to_visible_list, 90 bool add_to_visible_list) OVERRIDE;
92 bool add_to_watch_list) OVERRIDE;
93 virtual void RemoveService(const std::string& service_path) OVERRIDE; 91 virtual void RemoveService(const std::string& service_path) OVERRIDE;
94 virtual bool SetServiceProperty(const std::string& service_path, 92 virtual bool SetServiceProperty(const std::string& service_path,
95 const std::string& property, 93 const std::string& property,
96 const base::Value& value) OVERRIDE; 94 const base::Value& value) OVERRIDE;
97 virtual const base::DictionaryValue* GetServiceProperties( 95 virtual const base::DictionaryValue* GetServiceProperties(
98 const std::string& service_path) const OVERRIDE; 96 const std::string& service_path) const OVERRIDE;
99 virtual void ClearServices() OVERRIDE; 97 virtual void ClearServices() OVERRIDE;
100 virtual void SetConnectBehavior(const std::string& service_path, 98 virtual void SetConnectBehavior(const std::string& service_path,
101 const base::Closure& behavior) OVERRIDE; 99 const base::Closure& behavior) OVERRIDE;
102 100
(...skipping 24 matching lines...) Expand all
127 // Note: This should remain the last member so it'll be destroyed and 125 // Note: This should remain the last member so it'll be destroyed and
128 // invalidate its weak pointers before any other members are destroyed. 126 // invalidate its weak pointers before any other members are destroyed.
129 base::WeakPtrFactory<FakeShillServiceClient> weak_ptr_factory_; 127 base::WeakPtrFactory<FakeShillServiceClient> weak_ptr_factory_;
130 128
131 DISALLOW_COPY_AND_ASSIGN(FakeShillServiceClient); 129 DISALLOW_COPY_AND_ASSIGN(FakeShillServiceClient);
132 }; 130 };
133 131
134 } // namespace chromeos 132 } // namespace chromeos
135 133
136 #endif // CHROMEOS_DBUS_FAKE_SHILL_SERVICE_CLIENT_H_ 134 #endif // CHROMEOS_DBUS_FAKE_SHILL_SERVICE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698