blob: 7f20ec69ed8f20f4d2378c688f67ba36fe76cb76 [file] [log] [blame]
// Copyright 2018 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.
#include "shill/mock_manager.h"
#include <vector>
#include <gmock/gmock.h>
using std::string;
using std::vector;
using testing::_;
using testing::Invoke;
using testing::Return;
namespace shill {
MockManager::MockManager(ControlInterface* control_interface,
EventDispatcher* dispatcher,
Metrics* metrics)
: Manager(control_interface, dispatcher, metrics, "", "", ""),
mock_device_info_(nullptr) {
const int64_t kSuspendDurationUsecs = 1000000;
EXPECT_CALL(*this, device_info())
.WillRepeatedly(Invoke(this, &MockManager::mock_device_info));
ON_CALL(*this, FilterPrependDNSServersByFamily(_))
.WillByDefault(Return(vector<string>()));
ON_CALL(*this, GetSuspendDurationUsecs())
.WillByDefault(Return(kSuspendDurationUsecs));
}
MockManager::~MockManager() {}
} // namespace shill