summaryrefslogtreecommitdiffstats
path: root/chrome/views/view_unittest.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-16 23:51:38 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-16 23:51:38 +0000
commitc2dacc9ec41232903ba700c6aef5ef98bfcb8af8 (patch)
tree4aa4d7100862c64bdd92d70e6323001beb19edb7 /chrome/views/view_unittest.cc
parentd66e710ec668e34271def44d7f0416260657171c (diff)
downloadchromium_src-c2dacc9ec41232903ba700c6aef5ef98bfcb8af8.zip
chromium_src-c2dacc9ec41232903ba700c6aef5ef98bfcb8af8.tar.gz
chromium_src-c2dacc9ec41232903ba700c6aef5ef98bfcb8af8.tar.bz2
Rename ChromeViews namespace to views
http://crbug.com/2188 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3495 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views/view_unittest.cc')
-rw-r--r--chrome/views/view_unittest.cc28
1 files changed, 14 insertions, 14 deletions
diff --git a/chrome/views/view_unittest.cc b/chrome/views/view_unittest.cc
index 9599c34..6d95d35 100644
--- a/chrome/views/view_unittest.cc
+++ b/chrome/views/view_unittest.cc
@@ -28,7 +28,7 @@ class ViewTest : public testing::Test {
};
// Paints the RootView.
-void PaintRootView(ChromeViews::RootView* root, bool empty_paint) {
+void PaintRootView(views::RootView* root, bool empty_paint) {
if (!empty_paint) {
root->PaintNow();
} else {
@@ -90,7 +90,7 @@ class EmptyWindow : public CWindowImpl<EmptyWindow,
*/
}
-using namespace ChromeViews;
+using namespace views;
////////////////////////////////////////////////////////////////////////////////
//
@@ -283,7 +283,7 @@ TEST_F(ViewTest, MouseEvent) {
TestView* v2 = new TestView();
v2->SetBounds (100, 100, 100, 100);
- ChromeViews::ContainerWin window;
+ views::ContainerWin window;
window.set_delete_on_destroy(false);
window.set_window_style(WS_OVERLAPPEDWINDOW);
window.Init(NULL, gfx::Rect(50, 50, 650, 650), false);
@@ -357,7 +357,7 @@ TEST_F(ViewTest, Painting) {
RDW_UPDATENOW | RDW_INVALIDATE | RDW_ALLCHILDREN);
bool empty_paint = paint_window.empty_paint();
- ChromeViews::ContainerWin window;
+ views::ContainerWin window;
window.set_delete_on_destroy(false);
window.set_window_style(WS_OVERLAPPEDWINDOW);
window.Init(NULL, gfx::Rect(50, 50, 650, 650), NULL);
@@ -426,10 +426,10 @@ public:
void Observe(NotificationType type, const NotificationSource& source,
const NotificationDetails& details) {
ASSERT_TRUE(type == NOTIFY_VIEW_REMOVED);
- removed_views_.push_back(Source<ChromeViews::View>(source).ptr());
+ removed_views_.push_back(Source<views::View>(source).ptr());
}
- bool WasRemoved(ChromeViews::View* view) {
+ bool WasRemoved(views::View* view) {
return std::find(removed_views_.begin(), removed_views_.end(), view) !=
removed_views_.end();
}
@@ -444,8 +444,8 @@ TEST_F(ViewTest, RemoveNotification) {
NotificationService::current()->AddObserver(
observer.get(), NOTIFY_VIEW_REMOVED, NotificationService::AllSources());
- ChromeViews::ContainerWin* window = new ChromeViews::ContainerWin;
- ChromeViews::RootView* root_view = window->GetRootView();
+ views::ContainerWin* window = new views::ContainerWin;
+ views::RootView* root_view = window->GetRootView();
View* v1 = new View;
root_view->AddChildView(v1);
@@ -508,7 +508,7 @@ TEST_F(ViewTest, RemoveNotification) {
}
namespace {
-class HitTestView : public ChromeViews::View {
+class HitTestView : public views::View {
public:
explicit HitTestView(bool has_hittest_mask)
: has_hittest_mask_(has_hittest_mask) {
@@ -516,7 +516,7 @@ class HitTestView : public ChromeViews::View {
virtual ~HitTestView() {}
protected:
- // Overridden from ChromeViews::View:
+ // Overridden from views::View:
virtual bool HasHitTestMask() const {
return has_hittest_mask_;
}
@@ -540,16 +540,16 @@ class HitTestView : public ChromeViews::View {
DISALLOW_COPY_AND_ASSIGN(HitTestView);
};
-gfx::Point ConvertPointToView(ChromeViews::View* view, const gfx::Point& p) {
+gfx::Point ConvertPointToView(views::View* view, const gfx::Point& p) {
gfx::Point tmp(p);
- ChromeViews::View::ConvertPointToView(view->GetRootView(), view, &tmp);
+ views::View::ConvertPointToView(view->GetRootView(), view, &tmp);
return tmp;
}
}
TEST_F(ViewTest, HitTestMasks) {
- ChromeViews::ContainerWin window;
- ChromeViews::RootView* root_view = window.GetRootView();
+ views::ContainerWin window;
+ views::RootView* root_view = window.GetRootView();
root_view->SetBounds(0, 0, 500, 500);
gfx::Rect v1_bounds = gfx::Rect(0, 0, 100, 100);