Index: unclean_shutdown_collector.h |
diff --git a/unclean_shutdown_collector.h b/unclean_shutdown_collector.h |
index e7d8cef95948793b77e70bed873812a36a558ba0..0e01b32fd183520aa5867b25d0b6dee9fe7cf7e7 100644 |
--- a/unclean_shutdown_collector.h |
+++ b/unclean_shutdown_collector.h |
@@ -30,10 +30,19 @@ class UncleanShutdownCollector : public CrashCollector { |
private: |
friend class UncleanShutdownCollectorTest; |
FRIEND_TEST(UncleanShutdownCollectorTest, EnableCannotWrite); |
+ FRIEND_TEST(UncleanShutdownCollectorTest, CollectDeadBatteryRunningLow); |
+ FRIEND_TEST(UncleanShutdownCollectorTest, CollectDeadBatterySuspended); |
- bool DeleteUncleanShutdownFile(); |
+ bool DeleteUncleanShutdownFiles(); |
+ |
+ // Check for unclean shutdown due to battery running out by analyzing powerd |
+ // trace files. |
+ bool CheckForDeadBatteryUncleanShutdown(); |
const char *unclean_shutdown_file_; |
+ FilePath powerd_trace_path_; |
+ FilePath powerd_suspended_file_; |
+ FilePath powerd_low_battery_file_; |
}; |
#endif // _CRASH_REPORTER_UNCLEAN_SHUTDOWN_COLLECTOR_H_ |