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

Issue 414623005: PrintPreviewPdfGeneratedBrowserTest properly listens to messages and exits correctly. (Closed)

Created:
6 years, 5 months ago by ivandavid
Modified:
6 years, 5 months ago
Reviewers:
Lei Zhang
CC:
chromium-reviews, Dan Beam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

PrintPreviewPdfGeneratedBrowserTest now properly reads from |std::cin| removing an edge case where |std::cin.eof()| is false, but |input.empty()| is true. The test also properly exits and doesn't wait for SIGKILL anymore. BUG=388517 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285459

Patch Set 1 #

Total comments: 1

Patch Set 2 : Test now properly exits by listening for a message from the layout test framework. #

Total comments: 2

Patch Set 3 : Changed condition for exiting the browser test. Removed comment. Flipped std::cin clear and read. #

Total comments: 1

Patch Set 4 : Added comment on exit condition for the test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -14 lines) Patch
M chrome/browser/printing/print_preview_pdf_generated_browsertest.cc View 1 2 3 1 chunk +8 lines, -14 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
ivandavid
https://codereview.chromium.org/414623005/diff/1/chrome/browser/printing/print_preview_pdf_generated_browsertest.cc File chrome/browser/printing/print_preview_pdf_generated_browsertest.cc (left): https://codereview.chromium.org/414623005/diff/1/chrome/browser/printing/print_preview_pdf_generated_browsertest.cc#oldcode655 chrome/browser/printing/print_preview_pdf_generated_browsertest.cc:655: std::getline(std::cin, input); The error would occur after at least ...
6 years, 5 months ago (2014-07-23 03:33:57 UTC) #1
Lei Zhang
lgtm It's more descriptive if you say PrintPreviewPdfGeneratedBrowserTest instead of MANUAL_LayoutTestDriver. If someone glances at ...
6 years, 5 months ago (2014-07-23 17:11:43 UTC) #2
ivandavid
I added another fix to this patch. The test exits correctly now and cleans itself ...
6 years, 5 months ago (2014-07-24 01:09:38 UTC) #3
Lei Zhang
Can you point me to the layout test Python code that emits the QUIT command? ...
6 years, 5 months ago (2014-07-24 01:30:33 UTC) #4
Lei Zhang
https://codereview.chromium.org/414623005/diff/20001/chrome/browser/printing/print_preview_pdf_generated_browsertest.cc File chrome/browser/printing/print_preview_pdf_generated_browsertest.cc (right): https://codereview.chromium.org/414623005/diff/20001/chrome/browser/printing/print_preview_pdf_generated_browsertest.cc#newcode661 chrome/browser/printing/print_preview_pdf_generated_browsertest.cc:661: if (input.find("QUIT") != std::string::npos) If you do this, shouldn't ...
6 years, 5 months ago (2014-07-24 21:06:52 UTC) #5
ivandavid
https://codereview.chromium.org/414623005/diff/20001/chrome/browser/printing/print_preview_pdf_generated_browsertest.cc File chrome/browser/printing/print_preview_pdf_generated_browsertest.cc (right): https://codereview.chromium.org/414623005/diff/20001/chrome/browser/printing/print_preview_pdf_generated_browsertest.cc#newcode661 chrome/browser/printing/print_preview_pdf_generated_browsertest.cc:661: if (input.find("QUIT") != std::string::npos) On 2014/07/24 21:06:52, Lei Zhang ...
6 years, 5 months ago (2014-07-24 21:39:38 UTC) #6
Lei Zhang
Still need to update the CL description. Otherwise LGTM
6 years, 5 months ago (2014-07-24 21:47:30 UTC) #7
ivandavid
The CQ bit was checked by ivandavid@chromium.org
6 years, 5 months ago (2014-07-24 22:30:26 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ivandavid@chromium.org/414623005/60001
6 years, 5 months ago (2014-07-24 22:31:40 UTC) #9
commit-bot: I haz the power
6 years, 5 months ago (2014-07-25 02:37:53 UTC) #10
Message was sent while issue was closed.
Change committed as 285459

Powered by Google App Engine
This is Rietveld 408576698