Commit d6736d5a authored by Oleh Lamzin's avatar Oleh Lamzin Committed by Commit Bot

[Telemetry SWX] Fill disk infos in a separate block

Fill disk infos in a separate logical block. It helps to avoid name
collisions and looks simpler.

Bug: b:158658869
Change-Id: I82a27cff9660e5540a3dfee90aae5f530c72a5dc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2277991
Commit-Queue: Oleh Lamzin <lamzin@google.com>
Reviewed-by: default avatarMahmoud Gawad <mgawad@google.com>
Reviewed-by: default avatarRoland Bock <rbock@google.com>
Cr-Commit-Position: refs/heads/master@{#786462}
parent b525cbdc
...@@ -212,15 +212,17 @@ TEST(ProbeServiceConvertors, NonRemovableBlockDeviceResultPtrInfo) { ...@@ -212,15 +212,17 @@ TEST(ProbeServiceConvertors, NonRemovableBlockDeviceResultPtrInfo) {
constexpr char kPath1[] = "Path1"; constexpr char kPath1[] = "Path1";
constexpr char kPath2[] = "Path2"; constexpr char kPath2[] = "Path2";
auto info1 = cros_healthd::mojom::NonRemovableBlockDeviceInfo::New(); std::vector<cros_healthd::mojom::NonRemovableBlockDeviceInfoPtr> infos;
info1->path = kPath1; {
auto info1 = cros_healthd::mojom::NonRemovableBlockDeviceInfo::New();
info1->path = kPath1;
auto info2 = cros_healthd::mojom::NonRemovableBlockDeviceInfo::New(); auto info2 = cros_healthd::mojom::NonRemovableBlockDeviceInfo::New();
info2->path = kPath2; info2->path = kPath2;
std::vector<cros_healthd::mojom::NonRemovableBlockDeviceInfoPtr> infos; infos.push_back(std::move(info1));
infos.push_back(std::move(info1)); infos.push_back(std::move(info2));
infos.push_back(std::move(info2)); }
const health::mojom::NonRemovableBlockDeviceResultPtr output = ConvertPtr( const health::mojom::NonRemovableBlockDeviceResultPtr output = ConvertPtr(
cros_healthd::mojom::NonRemovableBlockDeviceResult::NewBlockDeviceInfo( cros_healthd::mojom::NonRemovableBlockDeviceResult::NewBlockDeviceInfo(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment