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

Unified Diff: chrome/common/os_exchange_data_unittest.cc

Issue 40226: Fix files with lines > 80 cols. Part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 10 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 | « chrome/common/notification_service_unittest.cc ('k') | chrome/common/pref_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/os_exchange_data_unittest.cc
===================================================================
--- chrome/common/os_exchange_data_unittest.cc (revision 11111)
+++ chrome/common/os_exchange_data_unittest.cc (working copy)
@@ -259,7 +259,8 @@
// File contents access via COM
CComPtr<IDataObject> com_data(data);
{
- CLIPFORMAT cfstr_file_contents = RegisterClipboardFormat(CFSTR_FILECONTENTS);
+ CLIPFORMAT cfstr_file_contents =
+ RegisterClipboardFormat(CFSTR_FILECONTENTS);
FORMATETC format_etc =
{ cfstr_file_contents, NULL, DVASPECT_CONTENT, -1, TYMED_HGLOBAL };
EXPECT_EQ(S_OK, com_data->QueryGetData(&format_etc));
@@ -268,7 +269,9 @@
EXPECT_EQ(S_OK, com_data->GetData(&format_etc, &medium));
ScopedHGlobal<char> glob(medium.hGlobal);
std::string output(glob.get(), glob.Size());
- std::string file_contents = "[InternetShortcut]\r\nURL=" + url_spec + "\r\n";
+ std::string file_contents = "[InternetShortcut]\r\nURL=";
+ file_contents += url_spec;
+ file_contents += "\r\n";
EXPECT_EQ(file_contents, output);
ReleaseStgMedium(&medium);
}
« no previous file with comments | « chrome/common/notification_service_unittest.cc ('k') | chrome/common/pref_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698