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 { ...@@ -119,10 +119,12 @@ class PowerMonitorTest : public ContentBrowserTest {
DCHECK(RenderProcessHostImpl::GetSpareRenderProcessHostForTesting()); DCHECK(RenderProcessHostImpl::GetSpareRenderProcessHostForTesting());
} }
} else if (source_info.identity.name() == mojom::kUtilityServiceName) { } else if (source_info.identity.name() == mojom::kUtilityServiceName) {
++request_count_from_utility_; // If the network service is enabled, it will create utility processes
// without a utility closure.
DCHECK(utility_bound_closure_); if (utility_bound_closure_) {
std::move(utility_bound_closure_).Run(); ++request_count_from_utility_;
std::move(utility_bound_closure_).Run();
}
} else if (source_info.identity.name() == mojom::kGpuServiceName) { } else if (source_info.identity.name() == mojom::kGpuServiceName) {
++request_count_from_gpu_; ++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