WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 107455
[chromium] move spell checking mocks to TestRunner library
https://bugs.webkit.org/show_bug.cgi?id=107455
Summary
[chromium] move spell checking mocks to TestRunner library
jochen
Reported
2013-01-21 08:11:20 PST
[chromium] move spell checking mocks to TestRunner library
Attachments
Patch
(64.57 KB, patch)
2013-01-21 08:12 PST
,
jochen
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
jochen
Comment 1
2013-01-21 08:12:12 PST
Created
attachment 183790
[details]
Patch
WebKit Review Bot
Comment 2
2013-01-21 08:16:11 PST
Please wait for approval from
abarth@webkit.org
,
dglazkov@chromium.org
,
fishd@chromium.org
,
jamesr@chromium.org
or
tkent@chromium.org
before submitting, as this patch contains changes to the Chromium public API. See also
https://trac.webkit.org/wiki/ChromiumWebKitAPI
.
Kent Tamura
Comment 3
2013-01-21 22:28:16 PST
Comment on
attachment 183790
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=183790&action=review
> Tools/DumpRenderTree/chromium/TestRunner/public/WebTestDelegate.h:57 > - virtual void fillSpellingSuggestionList(const WebKit::WebString& word, WebKit::WebVector<WebKit::WebString>* suggestions) = 0; > + virtual void fillSpellingSuggestionList(const WebKit::WebString&, WebKit::WebVector<WebKit::WebString>*) { }
nit: You don't need to remove the argument names. "word" "suggestions" have additional information.
> Tools/DumpRenderTree/chromium/TestRunner/src/WebTestProxy.cpp:200 > + , m_spellcheck(new SpellCheckClient) > { > } > > WebTestProxyBase::~WebTestProxyBase() > { > + delete m_spellcheck;
We should avoid manual memory management. Can you use OwnPtr<>?
jochen
Comment 4
2013-01-21 22:38:35 PST
Won't I get an unused arguments warning when I don't remove the names? I can't used OwnPtr in a public API header, and I can't use WebPrivatePtr since the TestRunner's implementation doesn't define WEBKIT_IMPLEMENTATION. Therefore, we use raw pointers, see e.g. WebTestInterfaces
Kent Tamura
Comment 5
2013-01-21 22:41:40 PST
Ah, I understand.
WebKit Review Bot
Comment 6
2013-01-22 01:02:07 PST
Comment on
attachment 183790
[details]
Patch Clearing flags on attachment: 183790 Committed
r140396
: <
http://trac.webkit.org/changeset/140396
>
WebKit Review Bot
Comment 7
2013-01-22 01:02:12 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug