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

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

Issue 299403012: Clean up shill fake implementations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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_DEVICE_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_SHILL_DEVICE_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_SHILL_DEVICE_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_SHILL_DEVICE_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 const std::string& operation, 81 const std::string& operation,
82 const std::string& peer, 82 const std::string& peer,
83 const StringCallback& callback, 83 const StringCallback& callback,
84 const ErrorCallback& error_callback) OVERRIDE; 84 const ErrorCallback& error_callback) OVERRIDE;
85 85
86 virtual ShillDeviceClient::TestInterface* GetTestInterface() OVERRIDE; 86 virtual ShillDeviceClient::TestInterface* GetTestInterface() OVERRIDE;
87 87
88 // ShillDeviceClient::TestInterface overrides. 88 // ShillDeviceClient::TestInterface overrides.
89 virtual void AddDevice(const std::string& device_path, 89 virtual void AddDevice(const std::string& device_path,
90 const std::string& type, 90 const std::string& type,
91 const std::string& object_path) OVERRIDE; 91 const std::string& name) OVERRIDE;
stevenjb 2014/05/28 22:47:22 I'm not sure why we were ever passing a separate "
92 virtual void RemoveDevice(const std::string& device_path) OVERRIDE; 92 virtual void RemoveDevice(const std::string& device_path) OVERRIDE;
93 virtual void ClearDevices() OVERRIDE; 93 virtual void ClearDevices() OVERRIDE;
94 virtual void SetDeviceProperty(const std::string& device_path, 94 virtual void SetDeviceProperty(const std::string& device_path,
95 const std::string& name, 95 const std::string& name,
96 const base::Value& value) OVERRIDE; 96 const base::Value& value) OVERRIDE;
97 virtual std::string GetDevicePathForType(const std::string& type) OVERRIDE; 97 virtual std::string GetDevicePathForType(const std::string& type) OVERRIDE;
98 98
99 void set_tdls_busy_count(int count) { tdls_busy_count_ = count; } 99 void set_tdls_busy_count(int count) { tdls_busy_count_ = count; }
100 100
101 private: 101 private:
(...skipping 22 matching lines...) Expand all
124 // Note: This should remain the last member so it'll be destroyed and 124 // Note: This should remain the last member so it'll be destroyed and
125 // invalidate its weak pointers before any other members are destroyed. 125 // invalidate its weak pointers before any other members are destroyed.
126 base::WeakPtrFactory<FakeShillDeviceClient> weak_ptr_factory_; 126 base::WeakPtrFactory<FakeShillDeviceClient> weak_ptr_factory_;
127 127
128 DISALLOW_COPY_AND_ASSIGN(FakeShillDeviceClient); 128 DISALLOW_COPY_AND_ASSIGN(FakeShillDeviceClient);
129 }; 129 };
130 130
131 } // namespace chromeos 131 } // namespace chromeos
132 132
133 #endif // CHROMEOS_DBUS_FAKE_SHILL_DEVICE_CLIENT_H_ 133 #endif // CHROMEOS_DBUS_FAKE_SHILL_DEVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chromeos/dbus/fake_shill_device_client.cc » ('j') | chromeos/dbus/fake_shill_manager_client.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698