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

Unified Diff: ash/launcher/launcher_tooltip_manager_unittest.cc

Issue 12313118: Refactor: Shelf Widget (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 10 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: ash/launcher/launcher_tooltip_manager_unittest.cc
diff --git a/ash/launcher/launcher_tooltip_manager_unittest.cc b/ash/launcher/launcher_tooltip_manager_unittest.cc
index a4b50cdbffb071cf9cbdec9d8e9ab704b899471f..e71e6233cf560fd91ab7433b0e9063ba9448ba0f 100644
--- a/ash/launcher/launcher_tooltip_manager_unittest.cc
+++ b/ash/launcher/launcher_tooltip_manager_unittest.cc
@@ -5,10 +5,11 @@
#include "ash/launcher/launcher_tooltip_manager.h"
#include "ash/root_window_controller.h"
+#include "ash/shelf/shelf_layout_manager.h"
+#include "ash/shelf/shelf_widget.h"
#include "ash/shell.h"
#include "ash/shell_window_ids.h"
#include "ash/test/ash_test_base.h"
-#include "ash/wm/shelf_layout_manager.h"
#include "ash/wm/window_util.h"
#include "base/string16.h"
#include "base/time.h"
@@ -42,8 +43,8 @@ class LauncherTooltipManagerTest : public AshTestBase {
internal::RootWindowController* controller =
Shell::GetPrimaryRootWindowController();
tooltip_manager_.reset(new internal::LauncherTooltipManager(
- controller->shelf(),
- controller->launcher()->GetLauncherViewForTest()));
+ controller->shelf_layout_manager(),
+ controller->shelf()->launcher()->GetLauncherViewForTest()));
}
virtual void TearDown() OVERRIDE {
@@ -93,7 +94,7 @@ class LauncherTooltipManagerTest : public AshTestBase {
params.ownership = views::Widget::InitParams::WIDGET_OWNS_NATIVE_WIDGET;
params.parent = Shell::GetContainer(
Shell::GetPrimaryRootWindow(),
- ash::internal::kShellWindowId_LauncherContainer);
+ ash::internal::kShellWindowId_ShelfContainer);
widget_->Init(params);
widget_->SetContentsView(dummy_anchor_.get());
@@ -129,7 +130,8 @@ TEST_F(LauncherTooltipManagerTest, HideWhenShelfIsHidden) {
// Once the shelf is hidden, the tooltip should be invisible.
ASSERT_EQ(
SHELF_HIDDEN,
- Shell::GetPrimaryRootWindowController()->shelf()->visibility_state());
+ Shell::GetPrimaryRootWindowController()->
+ shelf_layout_manager()->visibility_state());
EXPECT_FALSE(TooltipIsVisible());
// Do not show the view if the shelf is hidden.
@@ -154,7 +156,7 @@ TEST_F(LauncherTooltipManagerTest, HideWhenShelfIsAutoHide) {
ASSERT_TRUE(TooltipIsVisible());
internal::ShelfLayoutManager* shelf =
- Shell::GetPrimaryRootWindowController()->shelf();
+ Shell::GetPrimaryRootWindowController()->shelf_layout_manager();
shelf->SetAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS);
shelf->UpdateAutoHideState();
ASSERT_EQ(SHELF_AUTO_HIDE_HIDDEN, shelf->auto_hide_state());

Powered by Google App Engine
This is Rietveld 408576698