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

Unified Diff: chromeos/dbus/fake_shill_manager_client.h

Issue 175243004: Chrome OS: Use Manager.DefaultService for Default Network (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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
Index: chromeos/dbus/fake_shill_manager_client.h
diff --git a/chromeos/dbus/fake_shill_manager_client.h b/chromeos/dbus/fake_shill_manager_client.h
index 65f449eb55262aa1e60afb0bd5b5b2ac919e6fb5..c75410ebd65ca16f54ee39f2caa1ccd65ed7c85d 100644
--- a/chromeos/dbus/fake_shill_manager_client.h
+++ b/chromeos/dbus/fake_shill_manager_client.h
@@ -17,8 +17,8 @@ namespace chromeos {
// A fake implementation of ShillManagerClient. This works in close coordination
// with FakeShillServiceClient. FakeShillDeviceClient, and
// FakeShillProfileClient, and is not intended to be used independently.
-class CHROMEOS_EXPORT FakeShillManagerClient :
- public ShillManagerClient,
+class CHROMEOS_EXPORT FakeShillManagerClient
+ : public ShillManagerClient,
public ShillManagerClient::TestInterface {
public:
FakeShillManagerClient();
@@ -91,6 +91,8 @@ class CHROMEOS_EXPORT FakeShillManagerClient :
const base::DictionaryValue& network) OVERRIDE;
virtual void AddProfile(const std::string& profile_path) OVERRIDE;
virtual void ClearProperties() OVERRIDE;
+ virtual void SetManagerProperty(const std::string& key,
+ const base::Value& value) OVERRIDE;
virtual void AddManagerService(const std::string& service_path,
bool add_to_visible_list,
bool add_to_watch_list) OVERRIDE;
@@ -126,6 +128,9 @@ class CHROMEOS_EXPORT FakeShillManagerClient :
// invalidate its weak pointers before any other members are destroyed.
base::WeakPtrFactory<FakeShillManagerClient> weak_ptr_factory_;
+ // Track the default service for signaling Manager.DefaultService.
+ std::string default_service_;
+
DISALLOW_COPY_AND_ASSIGN(FakeShillManagerClient);
};
« no previous file with comments | « no previous file | chromeos/dbus/fake_shill_manager_client.cc » ('j') | chromeos/network/network_state_handler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698