blob: e0b4777122731084de4f0ca161d9a2d35a1c9a78 [file] [log] [blame]
// Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SHILL_TEST_COMMON_H_
#define SHILL_TEST_COMMON_H_
#include "shill/refptr_types.h"
namespace shill {
class MockManager;
class ServiceMockAdaptor;
// Test property change notifications that are implemented by all
// Services.
void TestCommonPropertyChanges(ServiceRefPtr service,
ServiceMockAdaptor *adaptor);
// Test AutoConnect property change notification. Implemented by
// all Services except EthernetService.
void TestAutoConnectPropertyChange(ServiceRefPtr service,
ServiceMockAdaptor *adaptor);
// Test Name property change notification. Only VPNService allows
// changing the name property.
void TestNamePropertyChange(ServiceRefPtr service,
ServiceMockAdaptor *adaptor);
// Test that the common customer setters (for all Services) return
// false if setting to the same as the current value.
void TestCommonCustomSetterNoopChange(ServiceRefPtr service,
MockManager *mock_manager);
} // namespace shill
#endif // SHILL_TEST_COMMON_H_