blob: 7db89ce0c972e277bea4fcca4e0907f70958c2ed [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_profile.h"
#include <string>
#include <base/memory/ref_counted.h>
#include <gmock/gmock.h>
#include "shill/refptr_types.h"
using testing::ReturnRef;
namespace shill {
MockProfile::MockProfile(Manager* manager) : MockProfile(manager, "mock") {}
MockProfile::MockProfile(Manager* manager, const std::string& identifier)
: Profile(manager, Identifier(identifier), base::FilePath(), false) {
ON_CALL(*this, GetRpcIdentifier()).WillByDefault(ReturnRef(rpcid_));
}
MockProfile::~MockProfile() = default;
} // namespace shill