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

Issue 2525933002: Handle overlapping uses of MockWebSpeechRecognizer (Closed)

Created:
4 years ago by sof
Modified:
4 years ago
CC:
chromium-reviews, einbinder+watch-test-runner_chromium.org, mlamouri+watch-test-runner_chromium.org, jochen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Handle overlapping uses of MockWebSpeechRecognizer. More than one speech recognition object may exist at the same time, all sharing a single MockWebSpeechRecognizer underneath when running layout tests. Overlapping uses of speech recognizer objects weren't something the mock object was designed to gracefully handle, hence fuzzer inputs would leave the mock object in an invalid state and crash, when they attempted to do so. Rather than try to ignore and prevent overlapping uses from going ahed, we extend MockWebSpeechRecognizer with support for handling them, queueing recognizer context switching tasks that will run upon completion of the currently ongoing sequence of tasks that a speech recognizer object expects. R= BUG=668019 Committed: https://crrev.com/879066620c73422866ee6022415e8b436af12a9c Cr-Commit-Position: refs/heads/master@{#434777}

Patch Set 1 #

Patch Set 2 : add test #

Total comments: 6

Patch Set 3 : address style issues #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -12 lines) Patch
M components/test_runner/mock_web_speech_recognizer.h View 1 chunk +4 lines, -0 lines 0 comments Download
M components/test_runner/mock_web_speech_recognizer.cc View 1 2 5 chunks +51 lines, -12 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/speech/scripted/start-multiple.html View 1 1 chunk +29 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/speech/scripted/start-multiple-expected.txt View 1 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (16 generated)
sof
please take a look. fuzzer-induced, i don't see a way around removing the "single use" ...
4 years ago (2016-11-23 15:50:55 UTC) #7
dmazzoni
The subject should be MockWebSpeechRecognizer, not Synthesizer I'm happy to rubberstamp the test_runner change, but ...
4 years ago (2016-11-23 22:10:48 UTC) #11
sof
On 2016/11/23 22:10:48, dmazzoni wrote: > The subject should be MockWebSpeechRecognizer, not Synthesizer > oops, ...
4 years ago (2016-11-24 07:13:00 UTC) #13
hans
lgtm This seems fine to me. Please expand the CL description a little, though.
4 years ago (2016-11-28 16:49:34 UTC) #14
dmazzoni
lgtm https://codereview.chromium.org/2525933002/diff/20001/components/test_runner/mock_web_speech_recognizer.cc File components/test_runner/mock_web_speech_recognizer.cc (right): https://codereview.chromium.org/2525933002/diff/20001/components/test_runner/mock_web_speech_recognizer.cc#newcode140 components/test_runner/mock_web_speech_recognizer.cc:140: , handle_(handle) nit: in Chromium code the comma ...
4 years ago (2016-11-28 16:58:02 UTC) #15
sof
On 2016/11/28 16:49:34, hans wrote: > lgtm > > This seems fine to me. > ...
4 years ago (2016-11-28 21:39:51 UTC) #17
sof
https://codereview.chromium.org/2525933002/diff/20001/components/test_runner/mock_web_speech_recognizer.cc File components/test_runner/mock_web_speech_recognizer.cc (right): https://codereview.chromium.org/2525933002/diff/20001/components/test_runner/mock_web_speech_recognizer.cc#newcode140 components/test_runner/mock_web_speech_recognizer.cc:140: , handle_(handle) On 2016/11/28 16:58:02, dmazzoni wrote: > nit: ...
4 years ago (2016-11-28 21:40:05 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2525933002/40001
4 years ago (2016-11-28 21:41:04 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-11-28 23:38:55 UTC) #24
commit-bot: I haz the power
4 years ago (2016-11-28 23:40:51 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/879066620c73422866ee6022415e8b436af12a9c
Cr-Commit-Position: refs/heads/master@{#434777}

Powered by Google App Engine
This is Rietveld 408576698