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

Issue 10703141: End-to-end browser tests for speech recognition. (Closed)

Created:
8 years, 5 months ago by Primiano Tucci (use gerrit)
Modified:
8 years, 2 months ago
Reviewers:
Satish, jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, Satish
Visibility:
Public.

Description

End-to-end browser tests for speech recognition. (Speech CL2.9) - Performing end-to-end browser tests, currently only on one-shot speech recognition, putting all the speech recognition infrastructure together and mocking at the very far endpoints (audio controller and URL fetcher). - Moved speech_recognition_browsertest.cc from /content to /chrome due to its dependency with speech_recognition_bubble_controller.cc BUG=116954 TEST=SpeechRecognitionBrowserTest

Patch Set 1 : #

Total comments: 2

Patch Set 2 : Fixed DEPS issues + minor fixes #

Patch Set 3 : Moved test to /chrome/test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1129 lines, -330 lines) Patch
M chrome/browser/speech/speech_recognition_bubble_controller.h View 1 3 chunks +22 lines, -0 lines 0 comments Download
M chrome/browser/speech/speech_recognition_bubble_controller.cc View 3 chunks +31 lines, -1 line 0 comments Download
M chrome/chrome_tests.gypi View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M chrome/test/base/ui_test_utils.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/base/ui_test_utils.cc View 1 2 chunks +9 lines, -3 lines 0 comments Download
M chrome/test/data/speech/basic_recognition.html View 1 chunk +1 line, -0 lines 0 comments Download
D chrome/test/data/speech/grammar_attribute.html View 1 chunk +0 lines, -24 lines 0 comments Download
A chrome/test/speech/mock_google_one_shot_server.h View 1 2 1 chunk +68 lines, -0 lines 0 comments Download
A chrome/test/speech/mock_google_one_shot_server.cc View 1 2 1 chunk +143 lines, -0 lines 0 comments Download
A chrome/test/speech/speech_recognition_browsertest.cc View 1 2 1 chunk +823 lines, -0 lines 0 comments Download
M content/browser/speech/google_one_shot_remote_engine_unittest.cc View 1 chunk +3 lines, -1 line 0 comments Download
D content/browser/speech/speech_recognition_browsertest.cc View 1 chunk +0 lines, -299 lines 0 comments Download
M content/browser/speech/speech_recognition_manager_impl.cc View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M content/browser/speech/speech_recognizer.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/public/browser/speech_recognition_manager.h View 1 2 2 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Primiano Tucci (use gerrit)
8 years, 5 months ago (2012-07-11 15:41:07 UTC) #1
Primiano Tucci (use gerrit)
Note: this CL depends on (is diff-ed from): http://codereview.chromium.org/10702141 and http://codereview.chromium.org/10704154
8 years, 5 months ago (2012-07-11 15:46:08 UTC) #2
jam
> - Moved speech_recognition_browsertest.cc from /content to /chrome due to its dependency with speech_recognition_bubble_controller.cc content ...
8 years, 5 months ago (2012-07-11 15:58:59 UTC) #3
jam
https://chromiumcodereview.appspot.com/10703141/diff/2001/chrome/browser/speech/speech_recognition_bubble_controller.h File chrome/browser/speech/speech_recognition_bubble_controller.h (right): https://chromiumcodereview.appspot.com/10703141/diff/2001/chrome/browser/speech/speech_recognition_bubble_controller.h#newcode39 chrome/browser/speech/speech_recognition_bubble_controller.h:39: class DelegateForTests { I haven't seen this pattern before. ...
8 years, 5 months ago (2012-07-11 15:59:04 UTC) #4
Primiano Tucci (use gerrit)
On 2012/07/11 15:58:59, John Abd-El-Malek wrote: > > - Moved speech_recognition_browsertest.cc from /content to /chrome ...
8 years, 5 months ago (2012-07-11 16:15:34 UTC) #5
Primiano Tucci (use gerrit)
https://chromiumcodereview.appspot.com/10703141/diff/2001/chrome/browser/speech/speech_recognition_bubble_controller.h File chrome/browser/speech/speech_recognition_bubble_controller.h (right): https://chromiumcodereview.appspot.com/10703141/diff/2001/chrome/browser/speech/speech_recognition_bubble_controller.h#newcode39 chrome/browser/speech/speech_recognition_bubble_controller.h:39: class DelegateForTests { On 2012/07/11 15:59:04, John Abd-El-Malek wrote: ...
8 years, 5 months ago (2012-07-11 16:15:49 UTC) #6
jam
On 2012/07/11 16:15:34, Primiano Tucci wrote: > On 2012/07/11 15:58:59, John Abd-El-Malek wrote: > > ...
8 years, 5 months ago (2012-07-11 16:33:24 UTC) #7
Primiano Tucci (use gerrit)
8 years, 5 months ago (2012-07-11 16:46:04 UTC) #8
On 2012/07/11 16:33:24, John Abd-El-Malek wrote:
> On 2012/07/11 16:15:34, Primiano Tucci wrote:
> > On 2012/07/11 15:58:59, John Abd-El-Malek wrote:
> > > > - Moved speech_recognition_browsertest.cc from /content to /chrome due
to
> > its
> > > dependency with speech_recognition_bubble_controller.cc 
> > > 
> > > content should have tests that live in content (i.e. just like we don't
want
> > to
> > > test base module inside of chrome), so moving this test from content to
> chrome
> > > is something that's to be avoided.
> > > 
> > > if there are chrome specific tests for this area, i.e. those that want to
> > ensure
> > > that the chrome UI works as expected, it's fine that those are in chrome.
> > 
> > Well, the only file moved to /chrome is speech_recognition_browsertests. All
> its
> > test fixtures are end-to-end tests which check the correctness of the speech
> > recognition by looking at the evolution of the bubble, thus why it has been
> > moved to /chrome.
> 
> 
> That file that's currently in content has 3 tests, and those currently don't
> depend on the speech bubble. Those tests are being deleted, with other tests
now
> in chrome that test stuff using the bubble.
> 
> Am I missing something?

No, it's correct.

Powered by Google App Engine
This is Rietveld 408576698