| Index: ash/launcher/launcher_unittest.cc
|
| diff --git a/ash/launcher/launcher_unittest.cc b/ash/launcher/launcher_unittest.cc
|
| index bdb92fc60211dbb919bdbe600c8fb07f1ceaec19..2a0c1eb6d20572a4df4f4005893ab5aa9ac473be 100644
|
| --- a/ash/launcher/launcher_unittest.cc
|
| +++ b/ash/launcher/launcher_unittest.cc
|
| @@ -19,15 +19,16 @@ using ash::internal::LauncherButton;
|
|
|
| namespace ash {
|
|
|
| -// Makes sure invoking SetStatusWidth on the launcher changes the size of the
|
| +// Makes sure invoking SetStatusSize on the launcher changes the size of the
|
| // LauncherView.
|
| -TEST_F(LauncherTest, SetStatusWidth) {
|
| +TEST_F(LauncherTest, SetStatusSize) {
|
| Launcher* launcher = Shell::GetInstance()->launcher();
|
| LauncherView* launcher_view = launcher->GetLauncherViewForTest();
|
|
|
| - int total_width = launcher->widget()->GetWindowScreenBounds().width();
|
| + gfx::Size launcher_size = launcher->widget()->GetWindowScreenBounds().size();
|
| + int total_width = launcher_size.width();
|
| ASSERT_GT(total_width, 0);
|
| - launcher->SetStatusWidth(total_width / 2);
|
| + launcher->SetStatusSize(gfx::Size(total_width / 2, launcher_size.height()));
|
| EXPECT_EQ(total_width - total_width / 2, launcher_view->width());
|
| }
|
|
|
|
|