| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #import "chrome/browser/autocomplete/autocomplete_edit_view_mac.h" | 5 #import "chrome/browser/autocomplete/autocomplete_edit_view_mac.h" |
| 6 | 6 |
| 7 #include "app/clipboard/clipboard.h" | 7 #include "app/clipboard/clipboard.h" |
| 8 #include "app/clipboard/scoped_clipboard_writer.h" | 8 #include "app/clipboard/scoped_clipboard_writer.h" |
| 9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
| 10 #include "base/sys_string_conversions.h" | 10 #include "base/sys_string_conversions.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 { | 60 { |
| 61 const string16 markup(ASCIIToUTF16("<strong>Hi!</string>")); | 61 const string16 markup(ASCIIToUTF16("<strong>Hi!</string>")); |
| 62 ScopedClipboardWriter clipboard_writer(&clipboard); | 62 ScopedClipboardWriter clipboard_writer(&clipboard); |
| 63 clipboard_writer.WriteHTML(markup, url); | 63 clipboard_writer.WriteHTML(markup, url); |
| 64 } | 64 } |
| 65 | 65 |
| 66 text = AutocompleteEditViewMac::GetClipboardText(&clipboard); | 66 text = AutocompleteEditViewMac::GetClipboardText(&clipboard); |
| 67 EXPECT_TRUE(text.empty()); | 67 EXPECT_TRUE(text.empty()); |
| 68 } | 68 } |
| 69 | 69 |
| 70 TEST(AutocompleteEditViewMacTest, GetFieldFont) { |
| 71 EXPECT_TRUE(AutocompleteEditViewMac::GetFieldFont()); |
| 72 } |
| 73 |
| 70 } // namespace | 74 } // namespace |
| OLD | NEW |