diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-06 01:03:05 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-06 01:03:05 +0000 |
commit | 2e58cbde90c00896dcfdf2b553624a50eb7d808b (patch) | |
tree | ed936dea01bcbffe92cb0d37844d3743f4038370 /base/system_monitor/system_monitor_unittest.cc | |
parent | d5067663db522660f8148ccdccc13f9ddaa77389 (diff) | |
download | chromium_src-2e58cbde90c00896dcfdf2b553624a50eb7d808b.zip chromium_src-2e58cbde90c00896dcfdf2b553624a50eb7d808b.tar.gz chromium_src-2e58cbde90c00896dcfdf2b553624a50eb7d808b.tar.bz2 |
base: Fix minor warnings reported by cppcheck.
Found with:
$ cppcheck --enable=all -j4 --force base 2> base-errors
R=jar@chromium.org
NOTRY=True
Review URL: https://chromiumcodereview.appspot.com/10827112
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150059 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/system_monitor/system_monitor_unittest.cc')
-rw-r--r-- | base/system_monitor/system_monitor_unittest.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/base/system_monitor/system_monitor_unittest.cc b/base/system_monitor/system_monitor_unittest.cc index e724e83..2f6ddb5f 100644 --- a/base/system_monitor/system_monitor_unittest.cc +++ b/base/system_monitor/system_monitor_unittest.cc @@ -18,8 +18,7 @@ namespace { class PowerTest : public SystemMonitor::PowerObserver { public: PowerTest() - : battery_(false), - power_state_changes_(0), + : power_state_changes_(0), suspends_(0), resumes_(0) { } @@ -38,13 +37,11 @@ class PowerTest : public SystemMonitor::PowerObserver { } // Test status counts. - bool battery() { return battery_; } int power_state_changes() { return power_state_changes_; } int suspends() { return suspends_; } int resumes() { return resumes_; } private: - bool battery_; // Do we currently think we're on battery power. int power_state_changes_; // Count of OnPowerStateChange notifications. int suspends_; // Count of OnSuspend notifications. int resumes_; // Count of OnResume notifications. |