Commit ef7a3da7 authored by John Abd-El-Malek's avatar John Abd-El-Malek Committed by Commit Bot

Fix power monitor tests with network service.

Bug: 729848
Change-Id: Ic1fc3f01184585c79f75cd060d4ce94226affb29
Reviewed-on: https://chromium-review.googlesource.com/1027205Reviewed-by: default avatarHan Leon <leon.han@intel.com>
Commit-Queue: John Abd-El-Malek <jam@chromium.org>
Cr-Commit-Position: refs/heads/master@{#553530}
parent e77a9686
......@@ -119,10 +119,12 @@ class PowerMonitorTest : public ContentBrowserTest {
DCHECK(RenderProcessHostImpl::GetSpareRenderProcessHostForTesting());
}
} else if (source_info.identity.name() == mojom::kUtilityServiceName) {
// If the network service is enabled, it will create utility processes
// without a utility closure.
if (utility_bound_closure_) {
++request_count_from_utility_;
DCHECK(utility_bound_closure_);
std::move(utility_bound_closure_).Run();
}
} else if (source_info.identity.name() == mojom::kGpuServiceName) {
++request_count_from_gpu_;
......
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