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

Issue 3317016: Implement layoutTestController.dumpResourceResponseMIMETypes in test_shell... (Closed)

Created:
10 years, 3 months ago by Mihai Parparita -not on Chrome
Modified:
9 years, 6 months ago
Reviewers:
tony
CC:
chromium-reviews, darin-cc_chromium.org, dpranke+watch_chromium.org, pam+watch_chromium.org
Visibility:
Public.

Description

Implement layoutTestController.dumpResourceResponseMIMETypes in test_shell (Chromium DRT side of this is in http://webkit.org/b/45479). BUG=46872 TEST=fast/preloader and other layout tests now pass Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=58994

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -4 lines) Patch
M webkit/tools/test_shell/layout_test_controller.h View 3 chunks +8 lines, -0 lines 0 comments Download
M webkit/tools/test_shell/layout_test_controller.cc View 5 chunks +10 lines, -1 line 0 comments Download
M webkit/tools/test_shell/test_shell.h View 3 chunks +7 lines, -3 lines 0 comments Download
M webkit/tools/test_shell/test_webview_delegate.cc View 1 chunk +10 lines, -0 lines 1 comment Download

Messages

Total messages: 3 (0 generated)
Mihai Parparita -not on Chrome
10 years, 3 months ago (2010-09-09 18:15:32 UTC) #1
tony
LGTM, just a small nit http://codereview.chromium.org/3317016/diff/1/5 File webkit/tools/test_shell/test_webview_delegate.cc (right): http://codereview.chromium.org/3317016/diff/1/5#newcode1062 webkit/tools/test_shell/test_webview_delegate.cc:1062: "application/octet-stream" : mimeType.utf8().data()); Is ...
10 years, 3 months ago (2010-09-09 18:36:29 UTC) #2
Mihai Parparita -not on Chrome
10 years, 3 months ago (2010-09-09 19:26:22 UTC) #3
On 2010/09/09 18:36:29, tony wrote:
> http://codereview.chromium.org/3317016/diff/1/5#newcode1062
> webkit/tools/test_shell/test_webview_delegate.cc:1062:
> "application/octet-stream" : mimeType.utf8().data());
> Is mimeType.utf8().data() null terminated (looking in
> JavaScriptCore/wtf/text/CString.h, it doesn't look like it)?   Should we
convert
> to std::string and use c_str() instead?

The utf8().data() pattern shows up elsewhere in the file too, and so it seemed
safe. From looking at CString::init, it always null-terminates m_buffer based on
the length (and data() just returns the contents of the data).

Powered by Google App Engine
This is Rietveld 408576698