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

Unified Diff: ash/wm/lock_state_controller_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/lock_state_controller.cc ('k') | ash/wm/maximize_mode/maximize_mode_window_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/lock_state_controller_unittest.cc
diff --git a/ash/wm/lock_state_controller_unittest.cc b/ash/wm/lock_state_controller_unittest.cc
index b950fe1c2fac8d2a355b3c77ddafd3ea2bac0145..8b683b3d078458c26f5e8333ffba666a0372ebf1 100644
--- a/ash/wm/lock_state_controller_unittest.cc
+++ b/ash/wm/lock_state_controller_unittest.cc
@@ -36,11 +36,7 @@
#endif
namespace ash {
-
-using internal::SessionStateAnimator;
-
namespace test {
-
namespace {
bool cursor_visible() {
@@ -58,16 +54,16 @@ aura::Window* GetContainer(int container ) {
}
bool IsBackgroundHidden() {
- return !GetContainer(internal::kShellWindowId_DesktopBackgroundContainer)->
- IsVisible();
+ return !GetContainer(kShellWindowId_DesktopBackgroundContainer)->IsVisible();
}
void HideBackground() {
ui::ScopedLayerAnimationSettings settings(
- GetContainer(internal::kShellWindowId_DesktopBackgroundContainer)->
- layer()->GetAnimator());
+ GetContainer(kShellWindowId_DesktopBackgroundContainer)
+ ->layer()
+ ->GetAnimator());
settings.SetTransitionDuration(base::TimeDelta());
- GetContainer(internal::kShellWindowId_DesktopBackgroundContainer)->Hide();
+ GetContainer(kShellWindowId_DesktopBackgroundContainer)->Hide();
}
} // namespace
@@ -396,8 +392,8 @@ class LockStateControllerTest : public AshTestBase {
window_->SetType(ui::wm::WINDOW_TYPE_NORMAL);
window_->Init(aura::WINDOW_LAYER_TEXTURED);
window_->SetName("WINDOW");
- aura::Window* container = Shell::GetContainer(Shell::GetPrimaryRootWindow(),
- internal::kShellWindowId_LockScreenContainer);
+ aura::Window* container = Shell::GetContainer(
+ Shell::GetPrimaryRootWindow(), kShellWindowId_LockScreenContainer);
ASSERT_TRUE(container);
container->AddChild(window_.get());
window_->Show();
@@ -617,8 +613,7 @@ TEST_F(LockStateControllerTest, DISABLED_LockAndCancel) {
AdvancePartially(SessionStateAnimator::ANIMATION_SPEED_UNDOABLE, 0.5f);
gfx::Transform transform_before_button_released =
- GetContainer(internal::kShellWindowId_DefaultContainer)->
- layer()->transform();
+ GetContainer(kShellWindowId_DefaultContainer)->layer()->transform();
// Release the button before the lock timer fires.
ReleasePowerButton();
@@ -626,8 +621,7 @@ TEST_F(LockStateControllerTest, DISABLED_LockAndCancel) {
ExpectPreLockAnimationCancel();
gfx::Transform transform_after_button_released =
- GetContainer(internal::kShellWindowId_DefaultContainer)->
- layer()->transform();
+ GetContainer(kShellWindowId_DefaultContainer)->layer()->transform();
// Expect no flickering, animation should proceed from mid-state.
EXPECT_EQ(transform_before_button_released, transform_after_button_released);
« no previous file with comments | « ash/wm/lock_state_controller.cc ('k') | ash/wm/maximize_mode/maximize_mode_window_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698