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

Unified Diff: ash/touch/touch_observer_hud_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/touch/touch_observer_hud.cc ('k') | ash/wm/always_on_top_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/touch/touch_observer_hud_unittest.cc
diff --git a/ash/touch/touch_observer_hud_unittest.cc b/ash/touch/touch_observer_hud_unittest.cc
index 98fb385a2d782f142fc3eebb4f73389163ede214..e0e133ff6b5d4e0c9f622dd98412336236842410 100644
--- a/ash/touch/touch_observer_hud_unittest.cc
+++ b/ash/touch/touch_observer_hud_unittest.cc
@@ -19,7 +19,6 @@
#include "ui/aura/window.h"
namespace ash {
-namespace internal {
class TouchHudTestBase : public test::AshTestBase {
public:
@@ -163,22 +162,22 @@ class TouchHudTestBase : public test::AshTestBase {
return GetDisplayController()->GetRootWindowForDisplayId(display.id());
}
- internal::RootWindowController* GetInternalRootController() {
+ RootWindowController* GetInternalRootController() {
aura::Window* root = GetInternalRootWindow();
return GetRootWindowController(root);
}
- internal::RootWindowController* GetExternalRootController() {
+ RootWindowController* GetExternalRootController() {
aura::Window* root = GetExternalRootWindow();
return GetRootWindowController(root);
}
- internal::RootWindowController* GetPrimaryRootController() {
+ RootWindowController* GetPrimaryRootController() {
aura::Window* root = GetPrimaryRootWindow();
return GetRootWindowController(root);
}
- internal::RootWindowController* GetSecondaryRootController() {
+ RootWindowController* GetSecondaryRootController() {
aura::Window* root = GetSecondaryRootWindow();
return GetRootWindowController(root);
}
@@ -189,11 +188,11 @@ class TouchHudTestBase : public test::AshTestBase {
return info;
}
- aura::Window* GetRootWindowForTouchHud(internal::TouchObserverHUD* hud) {
+ aura::Window* GetRootWindowForTouchHud(TouchObserverHUD* hud) {
return hud->root_window_;
}
- views::Widget* GetWidgetForTouchHud(internal::TouchObserverHUD* hud) {
+ views::Widget* GetWidgetForTouchHud(TouchObserverHUD* hud) {
return hud->widget_;
}
@@ -224,8 +223,7 @@ class TouchHudDebugTest : public TouchHudTestBase {
}
void CheckInternalDisplay() {
- EXPECT_NE(static_cast<internal::TouchObserverHUD*>(NULL),
- GetInternalTouchHudDebug());
+ EXPECT_NE(static_cast<TouchObserverHUD*>(NULL), GetInternalTouchHudDebug());
EXPECT_EQ(internal_display_id(), GetInternalTouchHudDebug()->display_id());
EXPECT_EQ(GetInternalRootWindow(),
GetRootWindowForTouchHud(GetInternalTouchHudDebug()));
@@ -238,8 +236,7 @@ class TouchHudDebugTest : public TouchHudTestBase {
}
void CheckExternalDisplay() {
- EXPECT_NE(static_cast<internal::TouchHudDebug*>(NULL),
- GetExternalTouchHudDebug());
+ EXPECT_NE(static_cast<TouchHudDebug*>(NULL), GetExternalTouchHudDebug());
EXPECT_EQ(external_display_id(), GetExternalTouchHudDebug()->display_id());
EXPECT_EQ(GetExternalRootWindow(),
GetRootWindowForTouchHud(GetExternalTouchHudDebug()));
@@ -252,19 +249,19 @@ class TouchHudDebugTest : public TouchHudTestBase {
}
private:
- internal::TouchHudDebug* GetInternalTouchHudDebug() {
+ TouchHudDebug* GetInternalTouchHudDebug() {
return GetInternalRootController()->touch_hud_debug();
}
- internal::TouchHudDebug* GetExternalTouchHudDebug() {
+ TouchHudDebug* GetExternalTouchHudDebug() {
return GetExternalRootController()->touch_hud_debug();
}
- internal::TouchHudDebug* GetPrimaryTouchHudDebug() {
+ TouchHudDebug* GetPrimaryTouchHudDebug() {
return GetPrimaryRootController()->touch_hud_debug();
}
- internal::TouchHudDebug* GetSecondaryTouchHudDebug() {
+ TouchHudDebug* GetSecondaryTouchHudDebug() {
return GetSecondaryRootController()->touch_hud_debug();
}
@@ -284,7 +281,7 @@ class TouchHudProjectionTest : public TouchHudTestBase {
Shell::GetInstance()->SetTouchHudProjectionEnabled(false);
}
- internal::TouchHudProjection* GetInternalTouchHudProjection() {
+ TouchHudProjection* GetInternalTouchHudProjection() {
return GetInternalRootController()->touch_hud_projection();
}
@@ -498,7 +495,7 @@ TEST_F(TouchHudProjectionTest, TouchMoveRelease) {
EXPECT_EQ(NULL, GetInternalTouchHudProjection());
EnableTouchHudProjection();
- EXPECT_NE(static_cast<internal::TouchHudProjection*>(NULL),
+ EXPECT_NE(static_cast<TouchHudProjection*>(NULL),
GetInternalTouchHudProjection());
EXPECT_EQ(0, GetInternalTouchPointsCount());
@@ -523,7 +520,7 @@ TEST_F(TouchHudProjectionTest, TouchMoveCancel) {
EXPECT_EQ(NULL, GetInternalTouchHudProjection());
EnableTouchHudProjection();
- EXPECT_NE(static_cast<internal::TouchHudProjection*>(NULL),
+ EXPECT_NE(static_cast<TouchHudProjection*>(NULL),
GetInternalTouchHudProjection());
EXPECT_EQ(0, GetInternalTouchPointsCount());
@@ -547,7 +544,7 @@ TEST_F(TouchHudProjectionTest, DoubleTouch) {
EXPECT_EQ(NULL, GetInternalTouchHudProjection());
EnableTouchHudProjection();
- EXPECT_NE(static_cast<internal::TouchHudProjection*>(NULL),
+ EXPECT_NE(static_cast<TouchHudProjection*>(NULL),
GetInternalTouchHudProjection());
EXPECT_EQ(0, GetInternalTouchPointsCount());
@@ -581,7 +578,7 @@ TEST_F(TouchHudProjectionTest, DisableWhileTouching) {
EXPECT_EQ(NULL, GetInternalTouchHudProjection());
EnableTouchHudProjection();
- EXPECT_NE(static_cast<internal::TouchHudProjection*>(NULL),
+ EXPECT_NE(static_cast<TouchHudProjection*>(NULL),
GetInternalTouchHudProjection());
EXPECT_EQ(0, GetInternalTouchPointsCount());
@@ -593,5 +590,4 @@ TEST_F(TouchHudProjectionTest, DisableWhileTouching) {
EXPECT_EQ(NULL, GetInternalTouchHudProjection());
}
-} // namespace internal
} // namespace ash
« no previous file with comments | « ash/touch/touch_observer_hud.cc ('k') | ash/wm/always_on_top_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698