#include "components/device_signals/core/system_signals/file_system_service.h"
#include <array>
#include <vector>
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/memory/raw_ptr.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "components/device_signals/core/common/common_types.h"
#include "components/device_signals/core/system_signals/executable_metadata_service.h"
#include "components/device_signals/core/system_signals/mock_executable_metadata_service.h"
#include "components/device_signals/core/system_signals/mock_platform_delegate.h"
#include "components/device_signals/core/system_signals/platform_delegate.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
_;
Invoke;
Return;
namespace device_signals {
namespace {
GetFileSystemInfoOptions CreateOptions(const base::FilePath& path,
bool compute_sha256,
bool compute_executable_metadata) { … }
std::string HexEncodeHash(const std::string& hashed_data) { … }
std::optional<size_t> FindItemIndexByFilePath(
const base::FilePath& expected_file_path,
const std::vector<FileSystemItem>& items) { … }
}
class FileSystemServiceTest : public testing::Test { … };
TEST_F(FileSystemServiceTest, GetSignals_Presence) { … }
TEST_F(FileSystemServiceTest, GetSignals_Hash_Success) { … }
TEST_F(FileSystemServiceTest, GetSignals_ExecutableMetadata) { … }
}