| OLD | NEW |
| 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 #ifndef BASE_TEST_POWER_MONITOR_TEST_BASE_H_ | 5 #ifndef BASE_TEST_POWER_MONITOR_TEST_BASE_H_ |
| 6 #define BASE_TEST_POWER_MONITOR_TEST_BASE_H_ | 6 #define BASE_TEST_POWER_MONITOR_TEST_BASE_H_ |
| 7 | 7 |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "base/power_monitor/power_monitor.h" | 9 #include "base/power_monitor/power_monitor.h" |
| 10 #include "base/power_monitor/power_monitor_source.h" | 10 #include "base/power_monitor/power_monitor_source.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 private: | 46 private: |
| 47 bool last_power_state_; // Last power state we were notified of. | 47 bool last_power_state_; // Last power state we were notified of. |
| 48 int power_state_changes_; // Count of OnPowerStateChange notifications. | 48 int power_state_changes_; // Count of OnPowerStateChange notifications. |
| 49 int suspends_; // Count of OnSuspend notifications. | 49 int suspends_; // Count of OnSuspend notifications. |
| 50 int resumes_; // Count of OnResume notifications. | 50 int resumes_; // Count of OnResume notifications. |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 } // namespace base | 53 } // namespace base |
| 54 | 54 |
| 55 #endif // BASE_TEST_POWER_MONITOR_TEST_BASE_H_ | 55 #endif // BASE_TEST_POWER_MONITOR_TEST_BASE_H_ |
| OLD | NEW |