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

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

Issue 275543005: Use GUID instead of ServicePath in networkingPrivate API (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_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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
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,
84 bool add_to_watch_list) OVERRIDE; 84 bool add_to_watch_list) OVERRIDE;
85 virtual void AddServiceWithIPConfig(const std::string& service_path, 85 virtual void AddServiceWithIPConfig(const std::string& service_path,
86 const std::string& guid,
86 const std::string& name, 87 const std::string& name,
87 const std::string& type, 88 const std::string& type,
88 const std::string& state, 89 const std::string& state,
89 const std::string& ipconfig_path, 90 const std::string& ipconfig_path,
90 bool add_to_visible_list, 91 bool add_to_visible_list,
91 bool add_to_watch_list) OVERRIDE; 92 bool add_to_watch_list) OVERRIDE;
92 virtual void RemoveService(const std::string& service_path) OVERRIDE; 93 virtual void RemoveService(const std::string& service_path) OVERRIDE;
93 virtual bool SetServiceProperty(const std::string& service_path, 94 virtual bool SetServiceProperty(const std::string& service_path,
94 const std::string& property, 95 const std::string& property,
95 const base::Value& value) OVERRIDE; 96 const base::Value& value) OVERRIDE;
(...skipping 30 matching lines...) Expand all
126 // Note: This should remain the last member so it'll be destroyed and 127 // Note: This should remain the last member so it'll be destroyed and
127 // invalidate its weak pointers before any other members are destroyed. 128 // invalidate its weak pointers before any other members are destroyed.
128 base::WeakPtrFactory<FakeShillServiceClient> weak_ptr_factory_; 129 base::WeakPtrFactory<FakeShillServiceClient> weak_ptr_factory_;
129 130
130 DISALLOW_COPY_AND_ASSIGN(FakeShillServiceClient); 131 DISALLOW_COPY_AND_ASSIGN(FakeShillServiceClient);
131 }; 132 };
132 133
133 } // namespace chromeos 134 } // namespace chromeos
134 135
135 #endif // CHROMEOS_DBUS_FAKE_SHILL_SERVICE_CLIENT_H_ 136 #endif // CHROMEOS_DBUS_FAKE_SHILL_SERVICE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698