summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/status/power_menu_button_browsertest.cc
diff options
context:
space:
mode:
authorchocobo@chromium.org <chocobo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-26 23:45:00 +0000
committerchocobo@chromium.org <chocobo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-26 23:45:00 +0000
commitc9310561dcb25c863beaf7b76e8da89bd14fd757 (patch)
treec96873f6da415996203f914bd526e877bf60e0e6 /chrome/browser/chromeos/status/power_menu_button_browsertest.cc
parent02468668f05673052602812d9a9b1846f97bfad3 (diff)
downloadchromium_src-c9310561dcb25c863beaf7b76e8da89bd14fd757.zip
chromium_src-c9310561dcb25c863beaf7b76e8da89bd14fd757.tar.gz
chromium_src-c9310561dcb25c863beaf7b76e8da89bd14fd757.tar.bz2
New statusbar images for ChromeOS.
Cleaned up hacks for positioning statusbar icons. Changed network connecting animation to fading in and out of network bars. BUG=chromium-os:8135 TEST=manual Review URL: http://codereview.chromium.org/4154002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63984 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/status/power_menu_button_browsertest.cc')
-rw-r--r--chrome/browser/chromeos/status/power_menu_button_browsertest.cc20
1 files changed, 14 insertions, 6 deletions
diff --git a/chrome/browser/chromeos/status/power_menu_button_browsertest.cc b/chrome/browser/chromeos/status/power_menu_button_browsertest.cc
index 66042fd..9e383bc 100644
--- a/chrome/browser/chromeos/status/power_menu_button_browsertest.cc
+++ b/chrome/browser/chromeos/status/power_menu_button_browsertest.cc
@@ -93,7 +93,7 @@ IN_PROC_BROWSER_TEST_F(PowerMenuButtonTest, BatteryChargedTest) {
}
IN_PROC_BROWSER_TEST_F(PowerMenuButtonTest, BatteryChargingTest) {
- const int NUM_TIMES = 12; // 6 + 8*12 = 102
+ const int NUM_TIMES = 16;
EXPECT_CALL(*mock_power_library_, battery_is_present())
.Times(NUM_TIMES)
.WillRepeatedly((Return(true)))
@@ -115,7 +115,7 @@ IN_PROC_BROWSER_TEST_F(PowerMenuButtonTest, BatteryChargingTest) {
.WillRepeatedly((Return(base::TimeDelta::FromMinutes(24))))
.RetiresOnSaturation();
- // Test the 12 battery charging states.
+ // Test the 16 battery charging states.
// NOTE: Use an array rather than just calculating a resource number to avoid
// creating implicit ordering dependencies on the resource values.
static const int kChargingImages[] = {
@@ -131,9 +131,13 @@ IN_PROC_BROWSER_TEST_F(PowerMenuButtonTest, BatteryChargingTest) {
IDR_STATUSBAR_BATTERY_CHARGING_10,
IDR_STATUSBAR_BATTERY_CHARGING_11,
IDR_STATUSBAR_BATTERY_CHARGING_12,
+ IDR_STATUSBAR_BATTERY_CHARGING_13,
+ IDR_STATUSBAR_BATTERY_CHARGING_14,
+ IDR_STATUSBAR_BATTERY_CHARGING_15,
+ IDR_STATUSBAR_BATTERY_CHARGING_16,
};
size_t id = 0;
- for (float percent = 6.0; percent < 100.0; percent += 8.0) {
+ for (float percent = 6.0; percent < 100.0; percent += 6.0) {
EXPECT_CALL(*mock_power_library_, battery_percentage())
.WillOnce((Return(percent)))
.RetiresOnSaturation();
@@ -144,7 +148,7 @@ IN_PROC_BROWSER_TEST_F(PowerMenuButtonTest, BatteryChargingTest) {
}
IN_PROC_BROWSER_TEST_F(PowerMenuButtonTest, BatteryDischargingTest) {
- const int NUM_TIMES = 12; // 6 + 8*12 = 102
+ const int NUM_TIMES = 16;
EXPECT_CALL(*mock_power_library_, battery_is_present())
.Times(NUM_TIMES)
.WillRepeatedly((Return(true)))
@@ -166,7 +170,7 @@ IN_PROC_BROWSER_TEST_F(PowerMenuButtonTest, BatteryDischargingTest) {
.WillRepeatedly((Return(base::TimeDelta::FromMinutes(24))))
.RetiresOnSaturation();
- // Test the 12 battery discharing states.
+ // Test the 16 battery discharing states.
// NOTE: Use an array rather than just calculating a resource number to avoid
// creating implicit ordering dependencies on the resource values.
static const int kDischargingImages[] = {
@@ -182,9 +186,13 @@ IN_PROC_BROWSER_TEST_F(PowerMenuButtonTest, BatteryDischargingTest) {
IDR_STATUSBAR_BATTERY_DISCHARGING_10,
IDR_STATUSBAR_BATTERY_DISCHARGING_11,
IDR_STATUSBAR_BATTERY_DISCHARGING_12,
+ IDR_STATUSBAR_BATTERY_DISCHARGING_13,
+ IDR_STATUSBAR_BATTERY_DISCHARGING_14,
+ IDR_STATUSBAR_BATTERY_DISCHARGING_15,
+ IDR_STATUSBAR_BATTERY_DISCHARGING_16,
};
size_t id = 0;
- for (float percent = 6.0; percent < 100.0; percent += 8.0) {
+ for (float percent = 6.0; percent < 100.0; percent += 6.0) {
EXPECT_CALL(*mock_power_library_, battery_percentage())
.WillOnce((Return(percent)))
.RetiresOnSaturation();