Chromium Code Reviews| Index: views/view_unittest.cc |
| diff --git a/views/view_unittest.cc b/views/view_unittest.cc |
| index fe5effe563fe3f55c461abfea898f4bfa9950c68..991743efc888e5939a680cdd730c8c1298bb7aa9 100644 |
| --- a/views/view_unittest.cc |
| +++ b/views/view_unittest.cc |
| @@ -29,6 +29,7 @@ |
| #if defined(OS_WIN) |
| #include "views/widget/widget_win.h" |
| #include "views/controls/button/native_button_win.h" |
| +#include "views/test/test_views_delegate.h" |
| #elif defined(OS_LINUX) |
| #include "views/widget/widget_gtk.h" |
| #include "views/window/window_gtk.h" |
| @@ -810,44 +811,6 @@ TEST_F(ViewTest, Textfield) { |
| } |
| #if defined(OS_WIN) |
| -class TestViewsDelegate : public views::ViewsDelegate { |
| - public: |
| - TestViewsDelegate() {} |
| - virtual ~TestViewsDelegate() {} |
| - |
| - // Overridden from views::ViewsDelegate: |
| - virtual Clipboard* GetClipboard() const { |
| - if (!clipboard_.get()) { |
| - // Note that we need a MessageLoop for the next call to work. |
| - clipboard_.reset(new Clipboard); |
| - } |
| - return clipboard_.get(); |
| - } |
| - virtual void SaveWindowPlacement(const std::wstring& window_name, |
| - const gfx::Rect& bounds, |
| - bool maximized) { |
| - } |
| - virtual bool GetSavedWindowBounds(const std::wstring& window_name, |
| - gfx::Rect* bounds) const { |
| - return false; |
| - } |
| - virtual bool GetSavedMaximizedState(const std::wstring& window_name, |
| - bool* maximized) const { |
| - return false; |
| - } |
| - virtual void NotifyAccessibilityEvent( |
| - views::View* view, AccessibilityTypes::Event event_type) {} |
| - virtual HICON GetDefaultWindowIcon() const { |
| - return NULL; |
| - } |
| - virtual void AddRef() {} |
| - virtual void ReleaseRef() {} |
| - |
| - private: |
| - mutable scoped_ptr<Clipboard> clipboard_; |
| - |
| - DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate); |
| -}; |
|
oshima
2011/01/05 18:50:30
There are more in
bookmark_bar_view_test.cc, acces
|
| // Tests that the Textfield view respond appropiately to cut/copy/paste. |
| TEST_F(ViewTest, TextfieldCutCopyPaste) { |