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

Unified Diff: chrome/browser/chromeos/cros/cros_mock.cc

Issue 8347016: chromeos: Simplify power supply info in PowerLibrary (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add observer, added TODO Created 9 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/cros/cros_mock.cc
diff --git a/chrome/browser/chromeos/cros/cros_mock.cc b/chrome/browser/chromeos/cros/cros_mock.cc
index 95ce0eced83e88dc1c014d476a7ff87b3539d109..051b31d02cdf82e466663ddfddcc4c095f52eaa7 100644
--- a/chrome/browser/chromeos/cros/cros_mock.cc
+++ b/chrome/browser/chromeos/cros/cros_mock.cc
@@ -224,30 +224,6 @@ void CrosMock::SetPowerLibraryStatusAreaExpectations() {
EXPECT_CALL(*mock_power_library_, AddObserver(_))
.Times(3)
.RetiresOnSaturation();
- EXPECT_CALL(*mock_power_library_, IsBatteryFullyCharged())
- .Times(1)
- .WillRepeatedly((Return(false)))
- .RetiresOnSaturation();
- EXPECT_CALL(*mock_power_library_, IsBatteryPresent())
- .Times(1)
- .WillOnce((Return(true)))
- .RetiresOnSaturation();
- EXPECT_CALL(*mock_power_library_, GetBatteryPercentage())
- .Times(1)
- .WillRepeatedly((Return(42.0)))
- .RetiresOnSaturation();
- EXPECT_CALL(*mock_power_library_, IsLinePowerOn())
- .Times(1)
- .WillRepeatedly((Return(false)))
- .RetiresOnSaturation();
- EXPECT_CALL(*mock_power_library_, GetBatteryTimeToEmpty())
- .Times(1)
- .WillRepeatedly((Return(base::TimeDelta::FromMinutes(42))))
- .RetiresOnSaturation();
- EXPECT_CALL(*mock_power_library_, GetBatteryTimeToFull())
- .Times(1)
- .WillRepeatedly((Return(base::TimeDelta::FromMinutes(24))))
- .RetiresOnSaturation();
EXPECT_CALL(*mock_power_library_, RemoveObserver(_))
.Times(3)
.RetiresOnSaturation();

Powered by Google App Engine
This is Rietveld 408576698