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

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

Issue 12381002: Improve network stub behavior (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/res/enabled Created 7 years, 9 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
« no previous file with comments | « chromeos/dbus/shill_device_client_stub.cc ('k') | chromeos/dbus/shill_manager_client_stub.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_SHILL_MANAGER_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_
6 #define CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ 6 #define CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 22 matching lines...) Expand all
33 typedef ShillClientHelper::ErrorCallback ErrorCallback; 33 typedef ShillClientHelper::ErrorCallback ErrorCallback;
34 typedef ShillClientHelper::StringCallback StringCallback; 34 typedef ShillClientHelper::StringCallback StringCallback;
35 typedef ShillClientHelper::BooleanCallback BooleanCallback; 35 typedef ShillClientHelper::BooleanCallback BooleanCallback;
36 36
37 // Interface for setting up devices, services, and technologies for testing. 37 // Interface for setting up devices, services, and technologies for testing.
38 // Accessed through GetTestInterface(), only implemented in the Stub Impl. 38 // Accessed through GetTestInterface(), only implemented in the Stub Impl.
39 class TestInterface { 39 class TestInterface {
40 public: 40 public:
41 virtual void AddDevice(const std::string& device_path) = 0; 41 virtual void AddDevice(const std::string& device_path) = 0;
42 virtual void RemoveDevice(const std::string& device_path) = 0; 42 virtual void RemoveDevice(const std::string& device_path) = 0;
43 virtual void ResetDevices() = 0; 43 virtual void ClearDevices() = 0;
44 virtual void AddService(const std::string& service_path, 44 virtual void AddService(const std::string& service_path,
45 bool add_to_watch_list) = 0; 45 bool add_to_watch_list) = 0;
46 virtual void AddServiceAtIndex(const std::string& service_path, 46 virtual void AddServiceAtIndex(const std::string& service_path,
47 size_t index, 47 size_t index,
48 bool add_to_watch_list) = 0; 48 bool add_to_watch_list) = 0;
49 virtual void RemoveService(const std::string& service_path) = 0; 49 virtual void RemoveService(const std::string& service_path) = 0;
50 virtual void AddTechnology(const std::string& type, bool enabled) = 0; 50 virtual void AddTechnology(const std::string& type, bool enabled) = 0;
51 virtual void RemoveTechnology(const std::string& type) = 0; 51 virtual void RemoveTechnology(const std::string& type) = 0;
52 virtual void AddGeoNetwork(const std::string& technology, 52 virtual void AddGeoNetwork(const std::string& technology,
53 const base::DictionaryValue& network) = 0; 53 const base::DictionaryValue& network) = 0;
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 // Create() should be used instead. 171 // Create() should be used instead.
172 ShillManagerClient(); 172 ShillManagerClient();
173 173
174 private: 174 private:
175 DISALLOW_COPY_AND_ASSIGN(ShillManagerClient); 175 DISALLOW_COPY_AND_ASSIGN(ShillManagerClient);
176 }; 176 };
177 177
178 } // namespace chromeos 178 } // namespace chromeos
179 179
180 #endif // CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ 180 #endif // CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/shill_device_client_stub.cc ('k') | chromeos/dbus/shill_manager_client_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698