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

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

Issue 2843813002: Remove SetWithoutPathExpansion (Closed)
Patch Set: Fix CrOS Error Created 3 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
« no previous file with comments | « chromeos/dbus/fake_shill_ipconfig_client.cc ('k') | chromeos/dbus/fake_shill_manager_client.cc » ('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 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_MANAGER_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_
7 7
8 #include <memory>
8 #include <string> 9 #include <string>
9 10
10 #include "base/callback.h" 11 #include "base/callback.h"
11 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/values.h"
12 #include "chromeos/chromeos_export.h" 14 #include "chromeos/chromeos_export.h"
13 #include "chromeos/dbus/shill_manager_client.h" 15 #include "chromeos/dbus/shill_manager_client.h"
14 16
15 namespace chromeos { 17 namespace chromeos {
16 18
17 // A fake implementation of ShillManagerClient. This works in close coordination 19 // A fake implementation of ShillManagerClient. This works in close coordination
18 // with FakeShillServiceClient. FakeShillDeviceClient, and 20 // with FakeShillServiceClient. FakeShillDeviceClient, and
19 // FakeShillProfileClient, and is not intended to be used independently. 21 // FakeShillProfileClient, and is not intended to be used independently.
20 class CHROMEOS_EXPORT FakeShillManagerClient 22 class CHROMEOS_EXPORT FakeShillManagerClient
21 : public ShillManagerClient, 23 : public ShillManagerClient,
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 void SetDefaultProperties(); 112 void SetDefaultProperties();
111 void PassStubProperties(const DictionaryValueCallback& callback) const; 113 void PassStubProperties(const DictionaryValueCallback& callback) const;
112 void PassStubGeoNetworks(const DictionaryValueCallback& callback) const; 114 void PassStubGeoNetworks(const DictionaryValueCallback& callback) const;
113 void CallNotifyObserversPropertyChanged(const std::string& property); 115 void CallNotifyObserversPropertyChanged(const std::string& property);
114 void NotifyObserversPropertyChanged(const std::string& property); 116 void NotifyObserversPropertyChanged(const std::string& property);
115 base::ListValue* GetListProperty(const std::string& property); 117 base::ListValue* GetListProperty(const std::string& property);
116 bool TechnologyEnabled(const std::string& type) const; 118 bool TechnologyEnabled(const std::string& type) const;
117 void SetTechnologyEnabled(const std::string& type, 119 void SetTechnologyEnabled(const std::string& type,
118 const base::Closure& callback, 120 const base::Closure& callback,
119 bool enabled); 121 bool enabled);
120 base::ListValue* GetEnabledServiceList(const std::string& property) const; 122 std::unique_ptr<base::ListValue> GetEnabledServiceList(
123 const std::string& property) const;
121 void ScanCompleted(const std::string& device_path, 124 void ScanCompleted(const std::string& device_path,
122 const base::Closure& callback); 125 const base::Closure& callback);
123 126
124 // Parses the command line for Shill stub switches and sets initial states. 127 // Parses the command line for Shill stub switches and sets initial states.
125 // Uses comma-separated name-value pairs (see SplitStringIntoKeyValuePairs): 128 // Uses comma-separated name-value pairs (see SplitStringIntoKeyValuePairs):
126 // interactive={delay} - sets delay in seconds for interactive UI 129 // interactive={delay} - sets delay in seconds for interactive UI
127 // {wifi,cellular,etc}={on,off,disabled,none} - sets initial state for type 130 // {wifi,cellular,etc}={on,off,disabled,none} - sets initial state for type
128 void ParseCommandLineSwitch(); 131 void ParseCommandLineSwitch();
129 bool ParseOption(const std::string& arg0, const std::string& arg1); 132 bool ParseOption(const std::string& arg0, const std::string& arg1);
130 bool SetInitialNetworkState(std::string type_arg, 133 bool SetInitialNetworkState(std::string type_arg,
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 // Note: This should remain the last member so it'll be destroyed and 168 // Note: This should remain the last member so it'll be destroyed and
166 // invalidate its weak pointers before any other members are destroyed. 169 // invalidate its weak pointers before any other members are destroyed.
167 base::WeakPtrFactory<FakeShillManagerClient> weak_ptr_factory_; 170 base::WeakPtrFactory<FakeShillManagerClient> weak_ptr_factory_;
168 171
169 DISALLOW_COPY_AND_ASSIGN(FakeShillManagerClient); 172 DISALLOW_COPY_AND_ASSIGN(FakeShillManagerClient);
170 }; 173 };
171 174
172 } // namespace chromeos 175 } // namespace chromeos
173 176
174 #endif // CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_ 177 #endif // CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_shill_ipconfig_client.cc ('k') | chromeos/dbus/fake_shill_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698