blob: 1c7c9d3be5c6741f77d43349099ad1db7de19280 [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/cellular/mock_dbus_objectmanager_proxy.h"
#include "shill/testing.h"
using ::testing::_;
using ::testing::AnyNumber;
namespace shill {
MockDBusObjectManagerProxy::MockDBusObjectManagerProxy() {
ON_CALL(*this, GetManagedObjects(_, _, _))
.WillByDefault(SetOperationFailedInArgumentAndWarn<0>());
}
MockDBusObjectManagerProxy::~MockDBusObjectManagerProxy() = default;
void MockDBusObjectManagerProxy::IgnoreSetCallbacks() {
EXPECT_CALL(*this, set_interfaces_added_callback(_)).Times(AnyNumber());
EXPECT_CALL(*this, set_interfaces_removed_callback(_)).Times(AnyNumber());
}
} // namespace shill