blob: e0b4777122731084de4f0ca161d9a2d35a1c9a78 [file] [log] [blame]
mukesh agrawalcbfb34e2013-04-17 19:33:25 -07001// 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
10namespace shill {
11
mukesh agrawalbebf1b82013-04-23 15:06:33 -070012class MockManager;
mukesh agrawalcbfb34e2013-04-17 19:33:25 -070013class ServiceMockAdaptor;
14
15// Test property change notifications that are implemented by all
16// Services.
17void TestCommonPropertyChanges(ServiceRefPtr service,
18 ServiceMockAdaptor *adaptor);
19// Test AutoConnect property change notification. Implemented by
20// all Services except EthernetService.
21void TestAutoConnectPropertyChange(ServiceRefPtr service,
22 ServiceMockAdaptor *adaptor);
23// Test Name property change notification. Only VPNService allows
24// changing the name property.
25void TestNamePropertyChange(ServiceRefPtr service,
26 ServiceMockAdaptor *adaptor);
mukesh agrawalbebf1b82013-04-23 15:06:33 -070027// Test that the common customer setters (for all Services) return
28// false if setting to the same as the current value.
29void TestCommonCustomSetterNoopChange(ServiceRefPtr service,
30 MockManager *mock_manager);
mukesh agrawalcbfb34e2013-04-17 19:33:25 -070031} // namespace shill
32
33#endif // SHILL_TEST_COMMON_H_