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

Unified Diff: chromeos/dbus/fake_shill_device_client.h

Issue 156353002: Implement networkingPrivate.setWifiTDLSEnabledState (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable TDLS tests on non-chromeos Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/data/extensions/api_test/networking/test.js ('k') | chromeos/dbus/fake_shill_device_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/fake_shill_device_client.h
diff --git a/chromeos/dbus/fake_shill_device_client.h b/chromeos/dbus/fake_shill_device_client.h
index cb5b859ead35a5805c9f2d00a54f8c4716737da9..ac8f565463397630aad519408faa875c01de9eb8 100644
--- a/chromeos/dbus/fake_shill_device_client.h
+++ b/chromeos/dbus/fake_shill_device_client.h
@@ -76,6 +76,13 @@ class CHROMEOS_EXPORT FakeShillDeviceClient
virtual void Reset(const dbus::ObjectPath& device_path,
const base::Closure& callback,
const ErrorCallback& error_callback) OVERRIDE;
+ virtual void PerformTDLSOperation(
+ const dbus::ObjectPath& device_path,
+ const std::string& operation,
+ const std::string& peer,
+ const StringCallback& callback,
+ const ErrorCallback& error_callback) OVERRIDE;
+
virtual ShillDeviceClient::TestInterface* GetTestInterface() OVERRIDE;
// ShillDeviceClient::TestInterface overrides.
@@ -89,6 +96,8 @@ class CHROMEOS_EXPORT FakeShillDeviceClient
const base::Value& value) OVERRIDE;
virtual std::string GetDevicePathForType(const std::string& type) OVERRIDE;
+ void set_tdls_busy_count(int count) { tdls_busy_count_ = count; }
+
private:
typedef ObserverList<ShillPropertyChangedObserver> PropertyObserverList;
@@ -110,6 +119,8 @@ class CHROMEOS_EXPORT FakeShillDeviceClient
// Observer list for each device.
std::map<dbus::ObjectPath, PropertyObserverList*> observer_list_;
+ int tdls_busy_count_; // Number of times to return InProgress for TDLS.
+
// Note: This should remain the last member so it'll be destroyed and
// invalidate its weak pointers before any other members are destroyed.
base::WeakPtrFactory<FakeShillDeviceClient> weak_ptr_factory_;
« no previous file with comments | « chrome/test/data/extensions/api_test/networking/test.js ('k') | chromeos/dbus/fake_shill_device_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698