| OLD | NEW |
| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 virtual void AddManagerService(const std::string& service_path, | 61 virtual void AddManagerService(const std::string& service_path, |
| 62 bool add_to_visible_list, | 62 bool add_to_visible_list, |
| 63 bool add_to_watch_list) = 0; | 63 bool add_to_watch_list) = 0; |
| 64 virtual void RemoveManagerService(const std::string& service_path) = 0; | 64 virtual void RemoveManagerService(const std::string& service_path) = 0; |
| 65 virtual void ClearManagerServices() = 0; | 65 virtual void ClearManagerServices() = 0; |
| 66 | 66 |
| 67 // Called by ShillServiceClient when a service's State property changes. | 67 // Called by ShillServiceClient when a service's State property changes. |
| 68 // Services are sorted first by Active vs. Inactive State, then by Type. | 68 // Services are sorted first by Active vs. Inactive State, then by Type. |
| 69 virtual void SortManagerServices() = 0; | 69 virtual void SortManagerServices() = 0; |
| 70 | 70 |
| 71 // Sets up the default fake environment based on default initial states |
| 72 // or states provided by the command line. |
| 73 virtual void SetupDefaultEnvironment() = 0; |
| 74 |
| 75 // Returns the interactive delay specified on the command line, 0 for none. |
| 76 virtual int GetInteractiveDelay() const = 0; |
| 77 |
| 78 // Returns the initial state value for the default network matching |type|. |
| 79 // Note: these do not map directly to Service.State values, see |
| 80 // FakeShillManagerClient::ParseOption for details. Defaults to |
| 81 // shill::kStateOffline (unavailable). |
| 82 virtual std::string GetInitialState(const std::string& type) const = 0; |
| 83 |
| 71 protected: | 84 protected: |
| 72 virtual ~TestInterface() {} | 85 virtual ~TestInterface() {} |
| 73 }; | 86 }; |
| 74 | 87 |
| 75 // Properties used to verify the origin device. | 88 // Properties used to verify the origin device. |
| 76 struct VerificationProperties { | 89 struct VerificationProperties { |
| 77 VerificationProperties(); | 90 VerificationProperties(); |
| 78 ~VerificationProperties(); | 91 ~VerificationProperties(); |
| 79 | 92 |
| 80 // A string containing a PEM-encoded X.509 certificate for use in verifying | 93 // A string containing a PEM-encoded X.509 certificate for use in verifying |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 // Create() should be used instead. | 223 // Create() should be used instead. |
| 211 ShillManagerClient(); | 224 ShillManagerClient(); |
| 212 | 225 |
| 213 private: | 226 private: |
| 214 DISALLOW_COPY_AND_ASSIGN(ShillManagerClient); | 227 DISALLOW_COPY_AND_ASSIGN(ShillManagerClient); |
| 215 }; | 228 }; |
| 216 | 229 |
| 217 } // namespace chromeos | 230 } // namespace chromeos |
| 218 | 231 |
| 219 #endif // CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ | 232 #endif // CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ |
| OLD | NEW |