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

Side by Side Diff: views/controls/textfield/textfield_views_model_unittest.cc

Issue 8581003: views: Move ime and test directories to ui/views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix linux Created 9 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <vector> 5 #include <vector>
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 #include "ui/base/clipboard/clipboard.h" 12 #include "ui/base/clipboard/clipboard.h"
13 #include "ui/base/clipboard/scoped_clipboard_writer.h" 13 #include "ui/base/clipboard/scoped_clipboard_writer.h"
14 #include "ui/base/range/range.h" 14 #include "ui/base/range/range.h"
15 #include "ui/gfx/render_text.h" 15 #include "ui/gfx/render_text.h"
16 #include "ui/views/test/test_views_delegate.h"
17 #include "ui/views/test/views_test_base.h"
16 #include "views/controls/textfield/textfield.h" 18 #include "views/controls/textfield/textfield.h"
17 #include "views/controls/textfield/textfield_views_model.h" 19 #include "views/controls/textfield/textfield_views_model.h"
18 #include "views/test/test_views_delegate.h"
19 #include "views/test/views_test_base.h"
20 #include "views/views_delegate.h" 20 #include "views/views_delegate.h"
21 21
22 namespace { 22 namespace {
23 23
24 struct WordAndCursor { 24 struct WordAndCursor {
25 WordAndCursor(const wchar_t* w, size_t c) 25 WordAndCursor(const wchar_t* w, size_t c)
26 : word(w), 26 : word(w),
27 cursor(c) { 27 cursor(c) {
28 } 28 }
29 29
(...skipping 1495 matching lines...) Expand 10 before | Expand all | Expand 10 after
1525 EXPECT_TRUE(model.Undo()); 1525 EXPECT_TRUE(model.Undo());
1526 EXPECT_STR_EQ("ABCDE", model.GetText()); 1526 EXPECT_STR_EQ("ABCDE", model.GetText());
1527 EXPECT_TRUE(model.Redo()); 1527 EXPECT_TRUE(model.Redo());
1528 EXPECT_STR_EQ("1234", model.GetText()); 1528 EXPECT_STR_EQ("1234", model.GetText());
1529 EXPECT_FALSE(model.Redo()); 1529 EXPECT_FALSE(model.Redo());
1530 1530
1531 // TODO(oshima): We need MockInputMethod to test the behavior with IME. 1531 // TODO(oshima): We need MockInputMethod to test the behavior with IME.
1532 } 1532 }
1533 1533
1534 } // namespace views 1534 } // namespace views
OLDNEW
« no previous file with comments | « views/controls/textfield/native_textfield_views_unittest.cc ('k') | views/focus/accelerator_handler_touch.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698