Index: net/proxy/proxy_script_fetcher_impl_unittest.cc |
diff --git a/net/proxy/proxy_script_fetcher_impl_unittest.cc b/net/proxy/proxy_script_fetcher_impl_unittest.cc |
index c12f829493239f38bf2628a2166ad819a5d200b5..cb0a0be8a6bc6a3596f5661c3ed4f40a41bc2a67 100644 |
--- a/net/proxy/proxy_script_fetcher_impl_unittest.cc |
+++ b/net/proxy/proxy_script_fetcher_impl_unittest.cc |
@@ -28,6 +28,10 @@ |
#include "testing/gtest/include/gtest/gtest.h" |
#include "testing/platform_test.h" |
+#if defined(OS_MACOSX) |
+#include "base/power_monitor/power_monitor.h" |
+#endif |
+ |
namespace net { |
// TODO(eroman): |
@@ -210,6 +214,10 @@ class ProxyScriptFetcherImplTest : public PlatformTest { |
: test_server_(TestServer::TYPE_HTTP, |
net::TestServer::kLocalhost, |
FilePath(kDocRoot)) { |
+#if defined(OS_MACOSX) |
+ // Must be called before PowerMonitor's ctor. |
+ base::PowerMonitor::AllocateSystemIOPorts(); |
+#endif |
context_.set_network_delegate(&network_delegate_); |
} |