Chromium Code Reviews| Index: webkit/glue/dom_operations_unittest.cc |
| diff --git a/webkit/glue/dom_operations_unittest.cc b/webkit/glue/dom_operations_unittest.cc |
| index 05aeb760d5e590d036ad890075741fc25537f4cf..adcdecfae57d2acfc3faabe7ca54f311b670114f 100644 |
| --- a/webkit/glue/dom_operations_unittest.cc |
| +++ b/webkit/glue/dom_operations_unittest.cc |
| @@ -13,10 +13,15 @@ |
| #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" |
| #include "webkit/tools/test_shell/test_shell_test.h" |
| +#if defined(OS_MACOSX) |
| +#include "base/power_monitor/power_monitor.h" |
| +#endif |
| + |
| namespace { |
| class DomOperationsTests : public TestShellTest { |
| public: |
| + DomOperationsTests(); |
| // Test function GetAllSavableResourceLinksForCurrentPage with a web page. |
| // We expect result of GetAllSavableResourceLinksForCurrentPage exactly |
| // matches expected_resources_set. |
| @@ -34,6 +39,11 @@ class DomOperationsTests : public TestShellTest { |
| } |
| }; |
| +DomOperationsTests::DomOperationsTests() { |
| +#if defined(OS_MACOSX) |
| + base::PowerMonitor::AllocateSystemIOPorts(); |
|
Hongbo Min
2012/10/16 14:14:40
Because the DomOperationTests indirectly has a dep
|
| +#endif |
| +} |
| void DomOperationsTests::GetSavableResourceLinksForPage( |
| const FilePath& page_file_path, |