chromium/ash/public/cpp/test/mock_projector_client.cc

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ash/public/cpp/test/mock_projector_client.h"

#include "base/check.h"

namespace ash {

MockProjectorClient::MockProjectorClient() {
  const bool result = screencast_container_path_.CreateUniqueTempDir();
  DCHECK(result);
}

MockProjectorClient::~MockProjectorClient() = default;

bool MockProjectorClient::GetBaseStoragePath(base::FilePath* result) const {
  *result = screencast_container_path_.GetPath();
  return true;
}

}  // namespace ash