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 5fc8099df953eec2a225be57dca0132b6eaa231e..773e0ae74b92a5b203d5dce621cea20d3ed296ce 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(); |
Hongbo Min
2012/10/16 14:14:40
ProxyScriptFetcherImplTest indirectly has a depend
|
+#endif |
context_.set_network_delegate(&network_delegate_); |
} |