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

Unified Diff: base/clipboard_unittest.cc

Issue 194052: Clipboard:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fixes Created 11 years, 3 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/clipboard_mac.mm ('k') | base/clipboard_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/clipboard_unittest.cc
===================================================================
--- base/clipboard_unittest.cc (revision 25821)
+++ base/clipboard_unittest.cc (working copy)
@@ -258,10 +258,11 @@
TEST_F(ClipboardTest, HyperlinkTest) {
Clipboard clipboard;
- string16 title(ASCIIToUTF16("The Example Company")), title_result;
+ std::string title("The Example Company");
std::string url("http://www.example.com/"), url_result;
- string16 html(ASCIIToUTF16("<a href=\"http://www.example.com/\">"
- "The Example Company</a>")), html_result;
+ std::string html("<a href=\"http://www.example.com/\">"
+ "The Example Company</a>");
+ string16 html_result;
{
ScopedClipboardWriter clipboard_writer(&clipboard);
@@ -272,11 +273,8 @@
Clipboard::BUFFER_STANDARD));
EXPECT_TRUE(clipboard.IsFormatAvailable(Clipboard::GetHtmlFormatType(),
Clipboard::BUFFER_STANDARD));
- clipboard.ReadBookmark(&title_result, &url_result);
- EXPECT_EQ(title, title_result);
- EXPECT_EQ(url, url_result);
clipboard.ReadHTML(Clipboard::BUFFER_STANDARD, &html_result, &url_result);
- EXPECT_EQ(html, html_result);
+ EXPECT_EQ(UTF8ToUTF16(html), html_result);
}
TEST_F(ClipboardTest, WebSmartPasteTest) {
« no previous file with comments | « base/clipboard_mac.mm ('k') | base/clipboard_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698