Index: extensions/browser/api/power/power_api_unittest.cc |
diff --git a/extensions/browser/api/power/power_api_unittest.cc b/extensions/browser/api/power/power_api_unittest.cc |
index 06e4d8f37b2eec7cb6780c239f7eb722479c77cf..54b8403d9e42ed92388f68b215a5e987fd82f776 100644 |
--- a/extensions/browser/api/power/power_api_unittest.cc |
+++ b/extensions/browser/api/power/power_api_unittest.cc |
@@ -11,7 +11,7 @@ |
#include "base/macros.h" |
#include "base/memory/ref_counted.h" |
#include "base/memory/weak_ptr.h" |
-#include "device/power_save_blocker/power_save_blocker.h" |
+#include "content/public/browser/power_save_blocker.h" |
#include "extensions/browser/api_test_utils.h" |
#include "extensions/browser/api_unittest.h" |
#include "extensions/common/extension.h" |
@@ -38,9 +38,9 @@ |
NONE, |
}; |
-// Stub implementation of device::PowerSaveBlocker that just runs a callback on |
-// destruction. |
-class PowerSaveBlockerStub : public device::PowerSaveBlocker { |
+// Stub implementation of content::PowerSaveBlocker that just runs a |
+// callback on destruction. |
+class PowerSaveBlockerStub : public content::PowerSaveBlocker { |
public: |
explicit PowerSaveBlockerStub(base::Closure unblock_callback) |
: unblock_callback_(unblock_callback) { |
@@ -88,24 +88,22 @@ |
private: |
// Creates a new PowerSaveBlockerStub of type |type|. |
- std::unique_ptr<device::PowerSaveBlocker> CreateStub( |
- device::PowerSaveBlocker::PowerSaveBlockerType type, |
- device::PowerSaveBlocker::Reason reason, |
- const std::string& description, |
- scoped_refptr<base::SequencedTaskRunner> ui_task_runner, |
- scoped_refptr<base::SingleThreadTaskRunner> file_task_runner) { |
+ std::unique_ptr<content::PowerSaveBlocker> CreateStub( |
+ content::PowerSaveBlocker::PowerSaveBlockerType type, |
+ content::PowerSaveBlocker::Reason reason, |
+ const std::string& description) { |
Request unblock_request = NONE; |
switch (type) { |
- case device::PowerSaveBlocker::kPowerSaveBlockPreventAppSuspension: |
+ case content::PowerSaveBlocker::kPowerSaveBlockPreventAppSuspension: |
requests_.push_back(BLOCK_APP_SUSPENSION); |
unblock_request = UNBLOCK_APP_SUSPENSION; |
break; |
- case device::PowerSaveBlocker::kPowerSaveBlockPreventDisplaySleep: |
+ case content::PowerSaveBlocker::kPowerSaveBlockPreventDisplaySleep: |
requests_.push_back(BLOCK_DISPLAY_SLEEP); |
unblock_request = UNBLOCK_DISPLAY_SLEEP; |
break; |
} |
- return std::unique_ptr<device::PowerSaveBlocker>(new PowerSaveBlockerStub( |
+ return std::unique_ptr<content::PowerSaveBlocker>(new PowerSaveBlockerStub( |
base::Bind(&PowerSaveBlockerStubManager::AppendRequest, |
weak_ptr_factory_.GetWeakPtr(), unblock_request))); |
} |