blob: 52eac12d764d7e0ffaabac823854d3c03e8d6c19 [file] [log] [blame]
// Copyright 2021 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 "cryptohome/fake_platform/real_fake_mount_mapping_redirect_factory.h"
#include <base/files/file_path.h>
#include <base/files/file_util.h>
#include "cryptohome/util/get_random_suffix.h"
namespace cryptohome {
base::FilePath RealFakeMountMappingRedirectFactory::Create() {
base::FilePath redirect;
base::GetTempDir(&redirect);
redirect = redirect.Append(GetRandomSuffix());
CHECK(base::CreateDirectory(redirect));
return redirect;
}
} // namespace cryptohome