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

Unified Diff: ash/wm/workspace/workspace_layout_manager_unittest.cc

Issue 224113005: Eliminate ash::internal namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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/wm/workspace/workspace_layout_manager_delegate.h ('k') | ash/wm/workspace/workspace_window_resizer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace/workspace_layout_manager_unittest.cc
diff --git a/ash/wm/workspace/workspace_layout_manager_unittest.cc b/ash/wm/workspace/workspace_layout_manager_unittest.cc
index 1765b09e09fbe9b4cde6bb7e8c4ec10a6ca0bee8..4af3056e519062664c5b204f174b9204714dc0f7 100644
--- a/ash/wm/workspace/workspace_layout_manager_unittest.cc
+++ b/ash/wm/workspace/workspace_layout_manager_unittest.cc
@@ -371,8 +371,7 @@ TEST_F(WorkspaceLayoutManagerTest, MaximizeWithEmptySize) {
NULL));
wm::GetWindowState(window.get())->Maximize();
aura::Window* default_container = Shell::GetContainer(
- Shell::GetPrimaryRootWindow(),
- internal::kShellWindowId_DefaultContainer);
+ Shell::GetPrimaryRootWindow(), kShellWindowId_DefaultContainer);
default_container->AddChild(window.get());
window->Show();
gfx::Rect work_area(
@@ -518,10 +517,9 @@ class WorkspaceLayoutManagerSoloTest : public test::AshTestBase {
test::AshTestBase::SetUp();
UpdateDisplay("800x600");
aura::Window* default_container = Shell::GetContainer(
- Shell::GetPrimaryRootWindow(),
- internal::kShellWindowId_DefaultContainer);
- default_container->SetLayoutManager(new internal::WorkspaceLayoutManager(
- Shell::GetPrimaryRootWindow()));
+ Shell::GetPrimaryRootWindow(), kShellWindowId_DefaultContainer);
+ default_container->SetLayoutManager(
+ new WorkspaceLayoutManager(Shell::GetPrimaryRootWindow()));
}
aura::Window* CreateTestWindow(const gfx::Rect& bounds) {
@@ -754,8 +752,7 @@ TEST_F(WorkspaceLayoutManagerSoloTest, NotResizeWhenScreenIsLocked) {
window->SetProperty(aura::client::kAlwaysOnTopKey, true);
window->Show();
- internal::ShelfLayoutManager* shelf =
- internal::ShelfLayoutManager::ForShelf(window.get());
+ ShelfLayoutManager* shelf = ShelfLayoutManager::ForShelf(window.get());
shelf->SetAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS);
window->SetBounds(ScreenUtil::GetMaximizedWindowBoundsInParent(window.get()));
@@ -787,9 +784,8 @@ class WorkspaceLayoutManagerBackdropTest : public test::AshTestBase {
virtual void SetUp() OVERRIDE {
test::AshTestBase::SetUp();
UpdateDisplay("800x600");
- default_container_ = Shell::GetContainer(
- Shell::GetPrimaryRootWindow(),
- internal::kShellWindowId_DefaultContainer);
+ default_container_ = Shell::GetContainer(Shell::GetPrimaryRootWindow(),
+ kShellWindowId_DefaultContainer);
// We set the size to something smaller then the display to avoid resizing
// issues with the shelf.
default_container_->SetBounds(gfx::Rect(0, 0, 800, 500));
@@ -802,14 +798,12 @@ class WorkspaceLayoutManagerBackdropTest : public test::AshTestBase {
// Turn the top window back drop on / off.
void ShowTopWindowBackdrop(bool show) {
- scoped_ptr<ash::internal::WorkspaceLayoutManagerDelegate> backdrop;
+ scoped_ptr<ash::WorkspaceLayoutManagerDelegate> backdrop;
if (show) {
- backdrop.reset(new ash::internal::WorkspaceBackdropDelegate(
- default_container_));
+ backdrop.reset(new ash::WorkspaceBackdropDelegate(default_container_));
}
- (static_cast<internal::WorkspaceLayoutManager*>
- (default_container_->layout_manager()))->SetMaximizeBackdropDelegate(
- backdrop.Pass());
+ (static_cast<WorkspaceLayoutManager*>(default_container_->layout_manager()))
+ ->SetMaximizeBackdropDelegate(backdrop.Pass());
// Closing and / or opening can be a delayed operation.
base::MessageLoop::current()->RunUntilIdle();
}
« no previous file with comments | « ash/wm/workspace/workspace_layout_manager_delegate.h ('k') | ash/wm/workspace/workspace_window_resizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698