OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <stddef.h> |
| 6 |
5 #include <vector> | 7 #include <vector> |
6 | 8 |
7 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
| 10 #include "base/macros.h" |
8 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
9 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
10 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
11 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
| 15 #include "build/build_config.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "ui/base/clipboard/clipboard.h" | 17 #include "ui/base/clipboard/clipboard.h" |
14 #include "ui/base/clipboard/scoped_clipboard_writer.h" | 18 #include "ui/base/clipboard/scoped_clipboard_writer.h" |
15 #include "ui/gfx/range/range.h" | 19 #include "ui/gfx/range/range.h" |
16 #include "ui/gfx/render_text.h" | 20 #include "ui/gfx/render_text.h" |
17 #include "ui/views/controls/textfield/textfield.h" | 21 #include "ui/views/controls/textfield/textfield.h" |
18 #include "ui/views/controls/textfield/textfield_model.h" | 22 #include "ui/views/controls/textfield/textfield_model.h" |
19 #include "ui/views/test/test_views_delegate.h" | 23 #include "ui/views/test/test_views_delegate.h" |
20 #include "ui/views/test/views_test_base.h" | 24 #include "ui/views/test/views_test_base.h" |
21 | 25 |
(...skipping 1556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1578 // Test 7 | 1582 // Test 7 |
1579 // Clipboard text with lots of spaces between words should have all spaces | 1583 // Clipboard text with lots of spaces between words should have all spaces |
1580 // replaced with a single space. | 1584 // replaced with a single space. |
1581 ui::ScopedClipboardWriter(ui::CLIPBOARD_TYPE_COPY_PASTE) | 1585 ui::ScopedClipboardWriter(ui::CLIPBOARD_TYPE_COPY_PASTE) |
1582 .WriteText(base::ASCIIToUTF16("FOO BAR")); | 1586 .WriteText(base::ASCIIToUTF16("FOO BAR")); |
1583 EXPECT_TRUE(model.Paste()); | 1587 EXPECT_TRUE(model.Paste()); |
1584 EXPECT_STR_EQ("FOO BAR", model.text()); | 1588 EXPECT_STR_EQ("FOO BAR", model.text()); |
1585 } | 1589 } |
1586 | 1590 |
1587 } // namespace views | 1591 } // namespace views |
OLD | NEW |