mukesh agrawal | cbfb34e | 2013-04-17 19:33:25 -0700 | [diff] [blame] | 1 | // Copyright (c) 2013 The Chromium OS Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef SHILL_TEST_COMMON_H_ |
| 6 | #define SHILL_TEST_COMMON_H_ |
| 7 | |
| 8 | #include "shill/refptr_types.h" |
| 9 | |
| 10 | namespace shill { |
| 11 | |
mukesh agrawal | bebf1b8 | 2013-04-23 15:06:33 -0700 | [diff] [blame] | 12 | class MockManager; |
mukesh agrawal | cbfb34e | 2013-04-17 19:33:25 -0700 | [diff] [blame] | 13 | class ServiceMockAdaptor; |
| 14 | |
| 15 | // Test property change notifications that are implemented by all |
| 16 | // Services. |
| 17 | void TestCommonPropertyChanges(ServiceRefPtr service, |
| 18 | ServiceMockAdaptor *adaptor); |
| 19 | // Test AutoConnect property change notification. Implemented by |
| 20 | // all Services except EthernetService. |
| 21 | void TestAutoConnectPropertyChange(ServiceRefPtr service, |
| 22 | ServiceMockAdaptor *adaptor); |
| 23 | // Test Name property change notification. Only VPNService allows |
| 24 | // changing the name property. |
| 25 | void TestNamePropertyChange(ServiceRefPtr service, |
| 26 | ServiceMockAdaptor *adaptor); |
mukesh agrawal | bebf1b8 | 2013-04-23 15:06:33 -0700 | [diff] [blame] | 27 | // Test that the common customer setters (for all Services) return |
| 28 | // false if setting to the same as the current value. |
| 29 | void TestCommonCustomSetterNoopChange(ServiceRefPtr service, |
| 30 | MockManager *mock_manager); |
mukesh agrawal | cbfb34e | 2013-04-17 19:33:25 -0700 | [diff] [blame] | 31 | } // namespace shill |
| 32 | |
| 33 | #endif // SHILL_TEST_COMMON_H_ |