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

Unified Diff: ash/launcher/launcher_view_unittest.cc

Issue 10388036: Adds the option of aligning the launcher to the left or right. There (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile Created 8 years, 7 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
« no previous file with comments | « ash/launcher/launcher_view.cc ('k') | ash/shell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/launcher/launcher_view_unittest.cc
diff --git a/ash/launcher/launcher_view_unittest.cc b/ash/launcher/launcher_view_unittest.cc
index fa90f970036258ae5ffe89162f616e2e391f50f9..73c9d861b6fb13fb025b5e0d2398ec40df955519 100644
--- a/ash/launcher/launcher_view_unittest.cc
+++ b/ash/launcher/launcher_view_unittest.cc
@@ -97,9 +97,10 @@ TEST_F(LauncherViewIconObserverTest, AddRemove) {
TEST_F(LauncherViewIconObserverTest, BoundsChanged) {
Launcher* launcher = Shell::GetInstance()->launcher();
- int total_width = launcher->widget()->GetWindowScreenBounds().width();
+ gfx::Size launcher_size = launcher->widget()->GetWindowScreenBounds().size();
+ int total_width = launcher_size.width() / 2;
ASSERT_GT(total_width, 0);
- launcher->SetStatusWidth(total_width / 2);
+ launcher->SetStatusSize(gfx::Size(total_width, launcher_size.height()));
EXPECT_EQ(1, observer()->count());
observer()->Reset();
}
« no previous file with comments | « ash/launcher/launcher_view.cc ('k') | ash/shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698