Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 1 | // Copyright (c) 2011 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 | #include "shill/mock_ipconfig.h" |
| 6 | |
Thieu Le | 0302666 | 2013-04-04 10:45:11 -0700 | [diff] [blame] | 7 | using testing::Invoke; |
| 8 | |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 9 | namespace shill { |
| 10 | |
| 11 | MockIPConfig::MockIPConfig(ControlInterface *control_interface, |
| 12 | const std::string &device_name) |
Thieu Le | 0302666 | 2013-04-04 10:45:11 -0700 | [diff] [blame] | 13 | : IPConfig(control_interface, device_name) { |
| 14 | ON_CALL(*this, properties()) |
| 15 | .WillByDefault(Invoke(this, &MockIPConfig::real_properties)); |
| 16 | } |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 17 | |
| 18 | MockIPConfig::~MockIPConfig() {} |
| 19 | |
| 20 | } // namespace shill |