1 // 2 // Copyright (C) 2013 The Android Open Source Project 3 // 4 // Licensed under the Apache License, Version 2.0 (the "License"); 5 // you may not use this file except in compliance with the License. 6 // You may obtain a copy of the License at 7 // 8 // http://www.apache.org/licenses/LICENSE-2.0 9 // 10 // Unless required by applicable law or agreed to in writing, software 11 // distributed under the License is distributed on an "AS IS" BASIS, 12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 // See the License for the specific language governing permissions and 14 // limitations under the License. 15 // 16 17 #ifndef SHILL_SERVICE_PROPERTY_CHANGE_TEST_H_ 18 #define SHILL_SERVICE_PROPERTY_CHANGE_TEST_H_ 19 20 #include "shill/refptr_types.h" 21 22 namespace shill { 23 24 class MockManager; 25 class ServiceMockAdaptor; 26 27 // Test property change notifications that are implemented by all 28 // Services. 29 void TestCommonPropertyChanges(ServiceRefPtr service, 30 ServiceMockAdaptor* adaptor); 31 // Test AutoConnect property change notification. Implemented by 32 // all Services except EthernetService. 33 void TestAutoConnectPropertyChange(ServiceRefPtr service, 34 ServiceMockAdaptor* adaptor); 35 // Test Name property change notification. Only VPNService allows 36 // changing the name property. 37 void TestNamePropertyChange(ServiceRefPtr service, 38 ServiceMockAdaptor* adaptor); 39 // Test that the common customer setters (for all Services) return 40 // false if setting to the same as the current value. 41 void TestCommonCustomSetterNoopChange(ServiceRefPtr service, 42 MockManager* mock_manager); 43 } // namespace shill 44 45 #endif // SHILL_SERVICE_PROPERTY_CHANGE_TEST_H_ 46