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

Unified Diff: device/power_monitor/power_monitor_message_broadcaster_unittest.cc

Issue 2460823002: Decouple Power Monitor from //content. (Closed)
Patch Set: code rebase Created 4 years, 1 month 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
« no previous file with comments | « device/power_monitor/power_monitor_message_broadcaster.cc ('k') | device/power_monitor/public/cpp/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/power_monitor/power_monitor_message_broadcaster_unittest.cc
diff --git a/content/browser/power_monitor_message_broadcaster_unittest.cc b/device/power_monitor/power_monitor_message_broadcaster_unittest.cc
similarity index 93%
rename from content/browser/power_monitor_message_broadcaster_unittest.cc
rename to device/power_monitor/power_monitor_message_broadcaster_unittest.cc
index 4d661d5730da8ec9a38fe9ba6bd1e31fefbb09fe..fe198265ebf0a39e890a17a52d64c58a99318991 100644
--- a/content/browser/power_monitor_message_broadcaster_unittest.cc
+++ b/device/power_monitor/power_monitor_message_broadcaster_unittest.cc
@@ -6,11 +6,11 @@
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "base/test/power_monitor_test_base.h"
-#include "content/browser/power_monitor_message_broadcaster.h"
+#include "device/power_monitor/power_monitor_message_broadcaster.h"
#include "mojo/public/cpp/bindings/binding.h"
#include "testing/gtest/include/gtest/gtest.h"
-namespace content {
+namespace device {
class FakePowerMonitorClient : public device::mojom::PowerMonitorClient {
public:
@@ -36,8 +36,8 @@ class FakePowerMonitorClient : public device::mojom::PowerMonitorClient {
private:
mojo::Binding<device::mojom::PowerMonitorClient> binding_;
int power_state_changes_; // Count of OnPowerStateChange notifications.
- int suspends_; // Count of OnSuspend notifications.
- int resumes_; // Count of OnResume notifications.
+ int suspends_; // Count of OnSuspend notifications.
+ int resumes_; // Count of OnResume notifications.
};
class PowerMonitorMessageBroadcasterTest : public testing::Test {
@@ -108,4 +108,4 @@ TEST_F(PowerMonitorMessageBroadcasterTest, PowerMessageBroadcast) {
EXPECT_EQ(client.power_state_changes(), 3);
}
-} // namespace base
+} // namespace device
« no previous file with comments | « device/power_monitor/power_monitor_message_broadcaster.cc ('k') | device/power_monitor/public/cpp/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698