Commit 97b0f9fb authored by Oleh Lamzin's avatar Oleh Lamzin Committed by Commit Bot

[Telemetry SWX] add timezone info browser test

Bug: b:158658869
Change-Id: Ic920541850a6e29f9db04b84e333709cb74d5827
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2387642Reviewed-by: default avatarMahmoud Gawad <mgawad@google.com>
Commit-Queue: Oleh Lamzin <lamzin@google.com>
Cr-Commit-Position: refs/heads/master@{#803629}
parent 34ead5bc
...@@ -254,6 +254,15 @@ void TelemetryExtensionUiBrowserTest::SetUpOnMainThread() { ...@@ -254,6 +254,15 @@ void TelemetryExtensionUiBrowserTest::SetUpOnMainThread() {
chromeos::cros_healthd::mojom::CpuResult::NewCpuInfo( chromeos::cros_healthd::mojom::CpuResult::NewCpuInfo(
std::move(cpu_info)); std::move(cpu_info));
} }
{
auto timezone_info = chromeos::cros_healthd::mojom::TimezoneInfo::New();
timezone_info->posix = "MST7MDT,M3.2.0,M11.1.0";
timezone_info->region = "America/Denver";
telemetry_info->timezone_result =
chromeos::cros_healthd::mojom::TimezoneResult::NewTimezoneInfo(
std::move(timezone_info));
}
DCHECK(chromeos::cros_healthd::FakeCrosHealthdClient::Get()); DCHECK(chromeos::cros_healthd::FakeCrosHealthdClient::Get());
......
...@@ -219,6 +219,12 @@ UNTRUSTED_TEST('UntrustedRequestTelemetryInfo', async () => { ...@@ -219,6 +219,12 @@ UNTRUSTED_TEST('UntrustedRequestTelemetryInfo', async () => {
{modelName: 'i9-low-powered', logicalCpus: []} {modelName: 'i9-low-powered', logicalCpus: []}
] ]
} }
},
timezoneResult: {
timezoneInfo: {
posix: 'MST7MDT,M3.2.0,M11.1.0',
region: 'America/Denver',
}
} }
}); });
}); });
......
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