Commit 1c8c58b1 authored by Oleh Lamzin's avatar Oleh Lamzin Committed by Commit Bot

[Telemetry SWX] add fan info browser test

Bug: b:158658869
Change-Id: I46bfbe9c0f3776be67c45c4d3541fcaaf3381ffe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2386727
Commit-Queue: Oleh Lamzin <lamzin@google.com>
Reviewed-by: default avatarMahmoud Gawad <mgawad@google.com>
Cr-Commit-Position: refs/heads/master@{#803643}
parent 6476277e
...@@ -287,6 +287,16 @@ void TelemetryExtensionUiBrowserTest::SetUpOnMainThread() { ...@@ -287,6 +287,16 @@ void TelemetryExtensionUiBrowserTest::SetUpOnMainThread() {
chromeos::cros_healthd::mojom::BacklightResult::NewBacklightInfo( chromeos::cros_healthd::mojom::BacklightResult::NewBacklightInfo(
std::move(infos)); std::move(infos));
} }
{
auto fan_info = chromeos::cros_healthd::mojom::FanInfo::New();
fan_info->speed_rpm = 999880912;
std::vector<chromeos::cros_healthd::mojom::FanInfoPtr> infos;
infos.push_back(std::move(fan_info));
telemetry_info->fan_result =
chromeos::cros_healthd::mojom::FanResult::NewFanInfo(std::move(infos));
}
DCHECK(chromeos::cros_healthd::FakeCrosHealthdClient::Get()); DCHECK(chromeos::cros_healthd::FakeCrosHealthdClient::Get());
......
...@@ -240,6 +240,11 @@ UNTRUSTED_TEST('UntrustedRequestTelemetryInfo', async () => { ...@@ -240,6 +240,11 @@ UNTRUSTED_TEST('UntrustedRequestTelemetryInfo', async () => {
maxBrightness: 536880912, maxBrightness: 536880912,
brightness: 436880912, brightness: 436880912,
}] }]
},
fanResult: {
fanInfo: [{
speedRpm: 999880912,
}]
} }
}); });
}); });
......
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