Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Unified Diff: webkit/glue/dom_operations_unittest.cc

Issue 10959020: SystemMonitor refactoring: move power state monitor into a separate class called PowerMonitor (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: add power notifier Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
+#endif
+}
void DomOperationsTests::GetSavableResourceLinksForPage(
const FilePath& page_file_path,

Powered by Google App Engine
This is Rietveld 408576698