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

Side by Side Diff: content/browser/power_monitor_message_broadcaster_unittest.cc

Issue 22482002: Moved power_monitor_test_base to a more appropriate location (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/power_monitor/power_monitor_test_base.h" 5 #include "base/test/power_monitor_test_base.h"
6 #include "content/browser/power_monitor_message_broadcaster.h" 6 #include "content/browser/power_monitor_message_broadcaster.h"
7 #include "content/common/power_monitor_messages.h" 7 #include "content/common/power_monitor_messages.h"
8 #include "ipc/ipc_sender.h" 8 #include "ipc/ipc_sender.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 class PowerMonitorMessageSender : public IPC::Sender { 13 class PowerMonitorMessageSender : public IPC::Sender {
14 public: 14 public:
15 PowerMonitorMessageSender() 15 PowerMonitorMessageSender()
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 // Pretend the device has gone off battery power 100 // Pretend the device has gone off battery power
101 source()->GeneratePowerStateEvent(false); 101 source()->GeneratePowerStateEvent(false);
102 EXPECT_EQ(sender.power_state_changes(), 2); 102 EXPECT_EQ(sender.power_state_changes(), 2);
103 103
104 // Repeated indications the device is off battery power should be suppressed. 104 // Repeated indications the device is off battery power should be suppressed.
105 source()->GeneratePowerStateEvent(false); 105 source()->GeneratePowerStateEvent(false);
106 EXPECT_EQ(sender.power_state_changes(), 2); 106 EXPECT_EQ(sender.power_state_changes(), 2);
107 } 107 }
108 108
109 } // namespace base 109 } // namespace base
OLDNEW
« no previous file with comments | « base/test/power_monitor_test_base.cc ('k') | content/child/power_monitor_broadcast_source_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698